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

Home > Logic
The Plan (Posted on 2003-03-21) Difficulty: 3 of 5
There is an island with 10 inhabitants. One day a monster comes and says that he intends to eat every one of them but will give them a chance to survive in the following way:

In the morning, the monster will line up all the people - single file so that the last person sees the remaining 9, the next person sees the remaining 8, and so on until the first person that obviously sees no one in front of himself. The monster will then place black or white hats on their heads randomly (they can be all white, all black or any combination thereof). The monster will offer each person starting with the last one (who sees everyone else's hats) to guess the color of his/her own hat. The answer can only be one word: "white" or "black". The monster will eat him on the spot if he guessed wrong, and will leave him alive if he guessed right. All the remaining people will hear both the guess and the outcome of the guess. The monster will then go on to the next to last person (who only sees 8 people), and so on until the end. The monster gives them the whole night to think.

The Task:

Devise the optimal strategy that these poor natives could use to maximize their survival rate.

Assumptions:

  1. All the 10 people can easily understand your strategy, and will execute it with perfect precision.
  2. If the monster suspects that any of the people are giving away information to any of the remaining team members by intonation of words when answering, or any other signs, or by touch, he will eat everyone.
  3. The only allowed response is a short, unemotional "white" or "black".
  4. Having said that, I will add that you can put any value you like into each of these words.

  Submitted by Gautam    
Rating: 4.3000 (10 votes)
Solution: (Hide)
The first guy to guess (guy #10) will be the only one to assume the following value for the words "white" and "black": The answer "black" will mean that there are an odd number of black hats that he sees. The answer "white" will mean that there are an odd number of white hats that he sees. This way one by one all the other 9 people will know the color of their hats.

Let us say that guy #10 (first to speak, and sees the hats of the remaining 9) says "white". That should mean to everybody else that he sees an odd number of white hats. At this time guy #9 will either be wearing a white or a black hat. If he is wearing a white hat he will only see an even number of white hats, and since guy #10 said that there is and odd number of white hats, guy #9 will know that he is wearing white and will say it. But if guy #9 is wearing a black hat, he will see an odd number of white hats (just like #10 did), and thus will know that he is wearing a black hat and will say it. No matter what #9 answers, guy #8 (who heard guy #10 and guy #9) can now easily incorporate the color of hat on guy #9 into the original answer of guy #10. This will allow #8 to know if he should see an odd or even number of white hats in front of him to determine his own hat color. The same thing repeats with #7-1. And they all get it right except of course #10, though he may get lucky.

Comments: ( You must be logged in to post comments.)
  Subject Author Date
Homework plannerWilliam Backhem2024-03-29 12:37:49
SolutionThe PlanMath Man2012-07-25 19:41:45
Ive got the answerChaz2003-05-03 05:09:53
Solution9 persons could be saved!Manoj Nair2003-04-03 04:53:50
re(3): Addition to FernandoFernando2003-03-26 13:53:07
re(2): Addition to FernandoGautam2003-03-25 21:57:29
re: Addition to FernandoFernando2003-03-25 14:00:00
Addition to FernandoRyan2003-03-25 08:22:12
re(2): to a close answer.Fernando2003-03-25 07:41:20
re: to a close answer.Gautam2003-03-24 19:27:31
Odd / Even - 1's / 0'sFernando2003-03-24 17:56:09
re: just a guess!Alan2003-03-23 15:42:36
just a guess!Sarah2003-03-23 11:25:52
Solution, maybe?Goldfish2003-03-22 23:09:43
SolutionAnswer i thinkAlan2003-03-21 11:35:47
SolutionAnother solutionGamer2003-03-21 08:25:00
SolutionsolutionCharlie2003-03-21 08:02:16
Please log in:
Login:
Password:
Remember me:
Sign up! | Forgot password


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

Chatterbox:
Copyright © 2002 - 2024 by Animus Pactum Consulting. All rights reserved. Privacy Information