All about flooble | fun stuff | Get a free chatterbox | Free JavaScript | Avatars    
perplexus dot info

Home > Numbers
Warm/Cool Number Guessing (Posted on 2013-09-30) Difficulty: 3 of 5
Here's another number guessing game:

I randomly pick a number from 1 to 1000. After you make your first guess at the number I will only tell you whether it is warmer (closer) or cooler (farther) or neither, to a 'zeroth guess' of 500.

For successive guesses I will tell your warmer, colder, neither, to the closest of the previous guesses.

What is the minimum number of guesses that would guarantee that you win with an optimal strategy?

What is this strategy?

No Solution Yet Submitted by Jer    
No Rating

Comments: ( Back to comment list | You must be logged in to post comments.)
Some Thoughts re(2): A limit | Comment 3 of 6 |
(In reply to re: A limit by Jer)

My comment was a 'Thought' not an answer, Jer!

Here is a primitive method that guarantees a solution in no more that 16 steps:

Say I choose 2^8 as my first guess. If it is 'cooler' I then choose 2^9+2^8, 2^8+2^7, 2^9+2^8-2^7, etc. closing in on the 'pole' of 500 until I receive a 'warmer' result.

If and when I get a 'warmer' result, this becomes the new pole of the search, and I again successively subtract and add decreasing powers of 2 from that until I get another warmer result.

And so on until

(1) The next number to be added or subtracted is 0, in which case I am done; or
(2) I get a 'neither' result which provides the solution at once.

But 16 steps suggests that only 1/3 of the remaining possibilities are eliminated each turn -  I'd be dumbfounded if that figure couldn't be bettered. As you note, 1000*(1/2)^n=1 implies that n is around 10.



Edited on October 2, 2013, 3:49 am
  Posted by broll on 2013-10-02 02:31:18

Please log in:
Remember me:
Sign up! | Forgot password

Search body:
Forums (0)
Newest Problems
Random Problem
FAQ | About This Site
Site Statistics
New Comments (4)
Unsolved Problems
Top Rated Problems
This month's top
Most Commented On

Copyright © 2002 - 2019 by Animus Pactum Consulting. All rights reserved. Privacy Information