# What is the least number of comparison needed to find the 2nd smallest out of them?

+1 vote
343 views

You have 64 numbers. What is the least number of comparison needed to find the 2nd smallest out of them?

posted May 27, 2014

can be found using tournament method, answer is n+logn -2
i.e.,
68 comparisons needed.

Similar Puzzles

You have three mislabeled jars. one contains Apple jelly beans, another Orange jelly beans, and the third has a mix of both (not necessarily a 50/50 mix, could be a 1/99 mix or a 399/22 mix).

How many jelly beans would you have to pull out, and out of which jars, to find out how to fix the labels on the jars?

+1 vote

In order to complete the racing competition, the London racetrack has to submit its top and the most famous three horses to win the competition. Due to a electrical storm, all the records are cleared and no one knows which horse holds the record. They all look identical and it becomes even more difficult to differentiate the horses. There are 25 horses in the London racetrack. But there can be only five horses at a time on the track. Due to the electrical storm, time recording is impossible.
What will the least number of races that can be conducted to find out the three fastest horses?