Just Adventure News : Addon: Endless Space: Disharmony will hit Steam on 26th of June Promotion: Her Interactive: Father's Day Weekend Sale Beta: Final Fantasy XIV: A Realm Reborn Beta Phase 3 Starts Today On PS3 & PC Press Release: First-ever early gameplay footage released for World of Diving Press Release: Master Reboot is now on Steam Greenlight! Press Release: MAGRUNNER DARK PULSE, a Lovecraftian screenshot and an exclusive early access Press Release: NeocoreGames Announces The Incredible Adventures of Van Helsing II Press Release: The Age Of Free-To-Play Has Dawned On Rift Gold: Jack Haunt - Pulp Mystery Point and Click Adventure released Press Release: DICE Heralds The Return Of Mirror's Edge
Home - Forum Home
Welcome Guest, please Login or Register!
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register or login before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Topic: 20 questions

    Page 1

All Forums : [General] : General Trivia > 20 questions
23 APR 2004 at 4:03pm
Deleted UserNo, we're not going to play that game now. What I'm asking for is another riddle:

Assume that the game of 20 questions is to be played between two individuals, and assume that the person to ask the question knows about all possible answers that the other person might decide on (for instance, if the cathegory is famous movie stars, both players would know about the exact same movie stars, so the guessing person will never find it impossible to guess the correct answer, simply not knowing about some star that the other one might have selected).

If this is the case, how big can the set of possible secret selections be and yet guarantee that 20 questions is always enough to find the secret answer, even if plain luck does not apply?

In other words, how many possible answers might there initially be such that not even the smartest possible 20 questions can determine the secret one without counting on luck?



23 APR 2004 at 7:33pm
Deleted UserThe "smartest" possible question is one which will eliminate half of all possibilities.  Let's look at this idea first.  You might have a question which could eliminate 95% of all possibilities.  For instance, using the "movie stars" category as an example, you could ask "Has this person starred in a movie released in 2004?"  An answer of "yes" would eliminate 95% of the possible movie stars.  However an answer of "no" would only eliminate 5% of the possibilities.  Following this logic, the "best" question will always eliminate half of the possibilities.

This means that if you only ask one question, there must be two possibile answers to "guarantee" that you don't hit the correct answer.  If you ask two questions, there must be four possibilities, half of which you will eliminate to leave two guesses on your final question.  Carry this series onward and you quickly see the obvious progression.

Thus in order to assure that the guesser never has better than a 50% chance of guessing the correct answer, there must be 2^20 or 1,048,576 possibile answers in the given category in order to assure that the guesser needs a little luck to win.

23 APR 2004 at 8:18pm
Deleted UserGreat answer, BacardiJim! You nailed it!
An information-theoretic approach that proves that you have to have to choose from a VERY big set of possibilities to stand a chance against 20 smart questions.

Knowing this, if anyone told you they were thinking of a secret number between one and one million, given 20 questions you can always find it. Your first question could be "is it less than half a million", and based on the answer you'd then ask "is it less than a quarter of a million" or "is it less than three quarters of a million" depending on the first answer, and so on... Maybe you could amaze someone you know that isn't so good in math with this simple fact. Let them select a number between 1 and 1000 (actually, up to 1024 would be ok) and you can find it in only 10 guesses, using the same idea. A number between 1 and 100 takes only 7 attempts. If the topic was movie stars, I suppose 100 actors would be a fair upper estimate of the possible answers. The problem would be to find the appropriate near-50/50 questions to find the answer in less than half of your questions...

The same tactics will enable you to find any entry in a phone book of one million numbers in less than 20 attempts (one attempt being to flip to any page and look at any name in the hope that it's the right one). In fact, knowing the alphabet and something about the statistical distribution of letters in your language, and given a phone book with names ordered alphabetically makes it worth the risk to split every search in other than (roughly) 50/50 halves, since the probability of reducing the smaller, unfavorable part would be pretty small. For instance, if you're looking for the number of Aaron Aaronson, you'd be pretty stupid to flip to the middle of the catalogue and start looking there, even though the "dumb" 50/50 split binary search wouldn't result in that many more attempts anyway.

Pretty obvious stuff I suppose... :


24 APR 2004 at 12:24am

MichalN

Grand Inquisitor
Grand Inquisitor



Posts : 7058
Joined: 14 SEP 2003

Status : Online
Originally Posted By Petter_Holmberg (23 APR 2004 8:18pm)
Maybe you could amaze someone you know that isn't so good in math with this simple fact.

Not my friends - they all heard of binary search

I forgot my sig.

Profile Search
24 APR 2004 at 1:04am
Deleted UserAnd mine all watch The Price is Right. lol

24 APR 2004 at 8:56pm
Deleted UserHehe, I see you need to choose who you hang out with carefully. :


So, does anyone know how to select the median of an unsorted set in linear time?
It's not a very obvious trick...

All Forums : [General] : General Trivia > 20 questions

    Page 1

Jump to:
0 Members Subscribed To This Topic