How Many Comparisons Are Necessary To Find The Largest And Smallest Of A Set Of

How many comparisons are necessary to find the largest and smallest of a set of n distinct elements? Do not assume the answer must involve sorting. It could but does not need to do so. Try to be as efficient as you can.

 
"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"
ORDER NOW