30. You are one of 20 prisoners on death row with the execution date set for tomorrow. Your king is a ruthless man who likes to toy with his people's miseries. He comes to your cell today and tells you:
“I’m gonna give you prisoners a chance to go free tomorrow. You will all stand in a row (queue) before the executioner and we will put a hat on your head, either a red or a black one. Of course you will not be able to see the color of your own hat; you will only be able to see the prisoners in front of you with their hats on; you will not be allowed to look back or communicate together in any way (talking, touching.....).
The prisoner in the back will be able to see the 19 prisoners in front of him. The one in front of him will be able to see 18…
Starting with the last person in the row, the one who can see everybody in front of him, he will be asked a simple question: WHAT IS THE COLOR OF YOUR HAT?
He will be only allowed to answer “BLACK” or “RED”. If he says anything else you will ALL be executed immediately.
If he guesses the right color of the hat on his head he is set free, otherwise he is put to death. And move on to the one in front of him and ask him the same question and so on…
Finally everyone managed to escape ....HOW???
HINT : The guy got questioned first was lucky..
Answer :
First guy is a coin toss - let's wish him good luck.
His job is to establish the parity of black hats visible to him.
He says "Black" if he sees an odd number of black hats; "Red" otherwise.
By paying attention to what has been said, each prisoner will know his hat's color.
Example:
Second to speak hears "Black" and sees an even number of black hats.
He knows his hat is black [odd changed to even - must be his is black] and says "black".
Third guy has heard "black" and "black" and sees an even number of black hats.
He knows his hat is red [even stayed even - his hat can't be black] and says "red".
And so on, to the front of the line.
“I’m gonna give you prisoners a chance to go free tomorrow. You will all stand in a row (queue) before the executioner and we will put a hat on your head, either a red or a black one. Of course you will not be able to see the color of your own hat; you will only be able to see the prisoners in front of you with their hats on; you will not be allowed to look back or communicate together in any way (talking, touching.....).
The prisoner in the back will be able to see the 19 prisoners in front of him. The one in front of him will be able to see 18…
Starting with the last person in the row, the one who can see everybody in front of him, he will be asked a simple question: WHAT IS THE COLOR OF YOUR HAT?
He will be only allowed to answer “BLACK” or “RED”. If he says anything else you will ALL be executed immediately.
If he guesses the right color of the hat on his head he is set free, otherwise he is put to death. And move on to the one in front of him and ask him the same question and so on…
Finally everyone managed to escape ....HOW???
HINT : The guy got questioned first was lucky..
Answer :
First guy is a coin toss - let's wish him good luck.
His job is to establish the parity of black hats visible to him.
He says "Black" if he sees an odd number of black hats; "Red" otherwise.
By paying attention to what has been said, each prisoner will know his hat's color.
Example:
Second to speak hears "Black" and sees an even number of black hats.
He knows his hat is black [odd changed to even - must be his is black] and says "black".
Third guy has heard "black" and "black" and sees an even number of black hats.
He knows his hat is red [even stayed even - his hat can't be black] and says "red".
And so on, to the front of the line.
No comments:
Post a Comment