Soldato
- Joined
- 8 Mar 2007
- Posts
- 10,938
Read, Psiko's solution. It's probably the best of those posted so far.
kd
I did, I sort of understand it to a point but the more kids you add the more complex it gets and I'm still not convinced it works with more than a very small number of children. Tell me if I'm on the right lines....
If there was 1 Girl_(1 permutation)
(P1) Girl_1 has a red hat
So she knows obviously and I can see why the 'extra information' is vital here because if she knows there is 1 red hat and she is the only one with a hat then clearly she is wearing a red hat.
If there was 2 kids (3 permutations)
(P1) Girl_1 has a red hat and Girl_2 has a black hat
Girl_1 sees Girl_2 has a black hat and because she knows there is at least 1 red hat then she knows she must be wearing a red one and thus answers "red" (and knows the one left is black because she can see it).
(P2) Girl_1 has a black hat and Girl_2 has a red hat
Girl_1 sees Girl_2 has a red hat but this doesn't help her because she only knows there is 'at least 1' red hat which means there could be 2 so she has to say "I don't know". Girl_2 sees Girl_1 with a black hat so knows she must have the "at least 1" red hat and answers "red"
(P3) Girl_1 & Girl_2 both have a red hats
Once again as above Girl_1 sees Girl_2 has a red hat this doesn't help her because she only knows there is 'at least 1' red hat which means there could be 2 so she has to say "I don't know". Girl_2 sees Girl_1 with a red hat and can deduce that because Girl_1 said "I don't know" then P1 isn't possible (as under P1 Girl_1 knows her hat colour and answers 'red') thus leaving P2 and P3 as the only possibilities, both of which she is wearing a red hat so she answers "red".
------------------------------------------
So up to that point I understand Psiko's logic but I'm struggling to take it to the next stage because each kid you add to the group adds an exponential amount of permutations. 3 kids gives 7 possibilities, 4 gives you 15 and so on. I'm still struggling to reconcile what 'new' information is presented in scenario 2 as well even though the logic I've said above uses the "at least 1 hat" rule the first group of kids would also know there was at least 1 red hat, in fact they each would know there were at least 6 red hats (or 7 if the child is wearing a black one).
Argggh this is making my head hurt!
Last edited:

.
.
.