Binary Search Guessing Game
Your friend picks a number from
What is the minimum number of guesses $m$ that guarantees you can always identify the number, no matter what your friend picks? Give a formula for $m$ in terms of $n$, then compute the answer for $n = 8198$.
Hints
- Think about how much information each guess gives you -- after each response, how many candidates can you eliminate?
- With $m$ guesses you can distinguish at most