You have 64 identical-looking boxes numbered from 1 to 64, each weighing a distinct amount. On a turn, you can tell your friend two numbers between 1 and 64, and she will tell you which of the corresponding boxes is heavier.
a) What is the minimum number of turns needed to determine the heaviest box?
b) What is the min number of turns needed to determine the heaviest and lightest box?
c) What is the min number of turns needed to determine the second heaviest box?
I'm not sure but these are the answers I got
- a) n - 1 or 63
- b) n - 1 or 63
- c) n - 1 or 63
I took smaller n's for e.g. 4, 6 and 8 and tried based on these
e.g. for n = 6, we can have (1,2), (3,4), (5,6), assuming 1,3,5 are the heaviest without loss of generality then we can have (1,3) and finally (1,5) to determine 1 is the heaviest giving us n-1
For part b) and c) we can have (1,2), (2,3), (3,4), (4,5), (5,6) assuming 1,2,3,4,5 are the heaviest without loss of generality then we easily find out the heaviest and 2nd heaviest in n-1 turns again