Talk:Prisoners and hats puzzle
|WikiProject Game theory|
|This page was nominated for deletion on 30 August 2014 (UTC). The result of the discussion was keep.|
At the suggestion of Ludraman, I looked over this article. Not being an expert in logic or logic puzzles, I can't speak much to that aspect. I will observe that the diagram characters have an amusing resemblance to Pacman (the yellow, probably) and that the hats might be colored in such a way as to indicate indeterminacy. Red and blue polka dots maybe?
- Ah, I was wondering why it looked familiar. Pacman, of course! Arvindn 17:19, 19 Apr 2004 (UTC)
There are other variants of this puzzle. What are some of their names?
The significance of the puzzle in logic history might be mentioned, as well as perhaps an amusing if not necessarily connected aside to the problem of self consciousness. That is, very few animals can be experimentally shown to be aware of themselves in the sense of noticing that something is wrong or changed about themselves as seen in a mirror reflection. At last count, my memory tells me, chimps (both bonobos and common??), dolphins, and homo sapiens have done so. For dogs, cats, parrots, ... and all others tested so far, no way of elicting a demonstration of such awareness has been found. The tempting inference is that no way can be found as all except the small group listed are incapable.
Thus the prisoners here should be limited to those from the listed species??
Minor wording nits, but nothing important.
Perhaps this may be of some help? ww 16:21, 19 Apr 2004 (UTC)
I've seen a variant with 5 hats and no screen, but can't remember the details. Arvindn 17:19, 19 Apr 2004 (UTC)
Do you know variant of 10-hat puzzle with 3,4,5 etc. colors? kknop 14:11, 29 May 2007
Is the diagram okay? (BTW its resemblance to pacman is not intentional). When I was writing the article I thought a diagram would help but I'm not much of an artist and scribbled something in Paint that would do for the time being. Would anyone be willing to make a better diagram? LUDRAMAN | T 02:16, 21 Apr 2004 (UTC)
- Has been fine for 8 years! Who would have thought your humble diagram would be doing the rounds in 2012 on the yet-to-be-invented Facebook? Proof enough that it's suitable, methinks. LightYear (talk) 05:22, 22 February 2012 (UTC)
Is waiting necessary?
I frequently fall into traps in logic puzzles, so I invite all and sundry to explain to me why I'm wrong. That said, is it necessary for B to determine whether or not C is going to act? Wouldn't B (or whichever person saw that the other two were wearing the same color hats, as two of them must be) immediately notice the other hats' colors, and act accordingly?
- Yep, it's necessary. Remember, B can only see A's hat. C is behind him (and the prisoners aren't able to look backwards--this is an important rule), and of course the fourth man is behind the screen. The crux of this game is that even with empirical evidence that doesn't seem strong enough to guarantee an answer, B can infer from C's (assumed completely rational) action what the answer must be. Thus the prisoners can always go free. --184.108.40.206 08:02, 18 July 2005 (UTC)
I was trying to solve this puzzle, and want to clarify something. It says "The prisoners can see the hats in front of them but not on themselves or behind." Now, based on the diagram, and the description, this means B can only see A's hat, A can see none (since he's in front), and I assume that C can only see B's hat, correct? This is not clarified, i.e. can C see B AND A's hat?
If C can only see B's hat, and B only A's, perhaps the wording should be: "The prisoners can see the hat of the prisoner directly in front of them, but not themselves or behind." Before I make the change, I want to be sure I'm interpreting the description correctly. GregTheVirus 23:25, 26 July 2007 (UTC)
- I think it's unambiguous in the current wording, particularly because each prisoner can see the hats in front of them. LightYear (talk) 05:22, 22 February 2012 (UTC)
A different hat puzzle
The variant with three hats fails to say that the prisoners are aware which color is used three times and which only one. This information is vital to make the case where all three (A, B and C) have the same color hat trivial. As far as I can tell, there is no solution, if they do not have this information. Correct me if I'm wrong.. or correct the example otherwise. —Preceding unsigned comment added by 220.127.116.11 (talk) 20:36, 16 February 2010 (UTC)
There are 3 prisoners, seated so that A can't see B or C, B can see A, C can see A & B. The villian shows the prisoners 2 white hats & 3 black hats, then blindfolds them and puts a hat on each head. He says "When I remove the blindfolds I will give you 30 minutes. If one of you, in 30 minutes can tell me the color of his own hat & prove it, you all go free, otherwise all die. If any more than one speaks you all die." When the blindfolds are removed, there is a 29 minute pause, then prisoner A says something, and they are all released. What does he say? -- Answer: "If C saw two white hats in front of him he would have known he had on a black hat. He said nothing, therefore either C & B both have on black hats, or one has a black hat and the other a white one. If B had seen a white hat, and heard nothing from C, he would have known that his own hat was black. Since he said nothing, I must have on a black hat."
I don't know how to include this puzzle in the article, since it is of a somewhat different type. Should I broaden the article, or start a new one? Will someone else help me? Too Old (talk) 04:55, 10 June 2008 (UTC)
I felt like I was "tricked" despite it claiming not to be a trick question. Shouldn't the problem mention that the men are aware of the position of their fellow prisoners? I assumed they were completely oblivious to what was behind them. Perhaps I am just being a sore loser, but it seems like not enough information is provided, and the problem should be edited to include this information. Any thoughts? 18.104.22.168 (talk) 05:53, 29 May 2009 (UTC)
- Clarified it a little so it now sounds like the jailer explains the important rules to the prisoners. So each of the prisoners know as much as the reader. LightYear (talk) 05:22, 22 February 2012 (UTC)
Ten hat puzzle
As this puzzle is stated, the prisoner could just say the color of the hat of the next prisoner, instead of all that binary - deduction stuff. That's my plan if I ever go to jail anyhow. —Preceding unsigned comment added by 22.214.171.124 (talk) 15:16, 20 May 2010 (UTC)
- That doesn't guarantee anything. The next prisoner will know his hat color, sure. But you only have a 50% chance of having that hat color yourself. But oh you, say: the prisoner behind me said my hat color too. But that doesn't help at all, because what if the color he said is different from the color of the hat in front of you(this will happen 50% of the time). Which color should you say then? If everyone is following the plan, then you are guaranteed to die if you say the color of the hat in front of you. But if you don't say the color of the person in front of you, then he will die. Knowing this, the logical decision would be to screw the guy in front of you and say your own hat color. Now assuming everyone can figure this much out, you can't trust that the person behind you is following the plan at all. That means your strategy would be completely useless. Assuming everyone followed your plan exactly, everyone would have exactly the same chance of survival as if they had no plan at all: 50%. With a slightly modified version of your method, you can guarantee that at least 50% of the people will survive as follows: The person in the back says the color of the hat in front of him. that person says this color. then the process repeats. That guarantees that half of the prisoners will survive and that the other half have a 50% chance of survival. And that's about the best you can do with anything close to the method you described. Maybe the article description needs to be written better to be more understandable. The back prisoner is just telling the others if there is an even(blue) or odd(red) number of red hats. Then the other prisoners just have to pay attention to how many people (ignoring the first) say they have a red hat. Then they know all the information they need in order to correctly decide their own hat color, because they know then how to interpret the line in front of them. If the running total of reds(excluding the first prisoner and including the hats they can see) is odd, then they say the opposite of the first prisoner, and if it is even, then they say the same as the first prisoner.--126.96.36.199 (talk) 04:21, 30 October 2010 (UTC)
Why can't B or A just ask the guy behind him? There's nothing in the puzzle description that says they can't converse. —Preceding unsigned comment added by 188.8.131.52 (talk) 19:46, 22 September 2010 (UTC)
- It is listed as a variant of the original puzzle, and that was a requirement of the original puzzle, so it has been assumed here as well. If the puzzle was being described on its own, then that would have to of course be stipulated.--184.108.40.206 (talk) 04:23, 30 October 2010 (UTC)
The part of the original article that says "better solution to the countably-infinite variant" is not really better at all!
Why ? Because the "better solution" allows the prisoners to HEAR what the first person says, but the variant being discussed explicitly disallows this, so it's toe tootly different things.
Countably Infinite Hat Problem with Hearing
As far as I can see, the solution to this variant does not need the "equivalence relation" solution, but can be solved in exactly the same way as the "Ten-Hat Variant" (with hearing). In fact, that solution will work for any number as long as they can hear the other answers. Everyone still to answer, must just keep track of when the number of red hats flips between odd and even by listening to the answers behind them.
It cannot be solved in the same way. If you have infinite number of red and blue hats, is their number even or odd? You can use the solution for an arbitrarily large finite constant, which has to be agreed upon beforehand, but everybody after that constant will have no idea of their hat color. — Preceding unsigned comment added by 220.127.116.11 (talk) 07:59, 10 December 2014 (UTC)