I am thinking of an integer in the interval [115]. You are to try to guess it by telling me intervals and I will tell you if my number lies in that interval.
For example if my number is 6 and you guess [69] I will tell yes but if you guess [711] I will tell you no but not if my number is higher or lower.
You win by guessing an interval of just one number and that number is my number. Find a strategy that minimizes the expected number of guesses.
The same sort of binary splitting would work in this guessing game as in the game where the guesser specifies one number and is told if it's too high or too low. Either way, the number of possibilities approximately halves in each turn.
In the onenumber higherlower game it's ambiguous when the remaining range is even, and it doesn't really matter whether you choose, say, 5 or 6 in a range of 1 to 10.
Similarly in the current case, the ambiguity arises when an odd number is in the range, such as the presented 1  15. You could choose initially, 17 or 18. (or likewise the complementary 815 or 915).
Asking, say 17, will either narrow the range to 17 or to 815. Say its the wider 815: then guess 811; if that gets a no then you know it's 1215 and you can guess 1213.
The expected number of guesses will be one or two above that for the higher/lower version, but no more, and it will be the best you can do.

Posted by Charlie
on 20191021 21:16:51 