There is a game in which someone thinks of a number between 1 and x, and you have to guess the number. They respond with either "too low," "too high," or "correct."
A strategy is to keep guessing halfway between the lowest and highest known guesses.
This is called a binary search, and it is the optimal strategy when you receive a reliable "too high" or "too low" response. You continually eliminate half of the remaining possibilities with each guess.
It is surprisingly efficient, where one can find the answer in a range of 1 to 1000 with only 10 guesses.
How many guesses would it take to get the answer in a range from 1 to a million? A billion? A trillion?
Try it here 
Guess a number between 1 and x
#1



