Two Plus Two Newer Archives  

Go Back   Two Plus Two Newer Archives > Other Topics > Science, Math, and Philosophy
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #11  
Old 09-16-2007, 10:57 PM
ballin4life ballin4life is offline
Senior Member
 
Join Date: Jun 2006
Posts: 542
Default Re: Prisoner Dilemma #2

I think the solution should be something like:

If the first prisoner sees an even number of black hats, he calls black. If he sees an odd number of black hats he sayas white. The second prisoner uses the info that the first prisoner saw an even/odd number of black hats to deduce his hat color and so forth.
Reply With Quote
  #12  
Old 09-16-2007, 11:10 PM
m_the0ry m_the0ry is offline
Senior Member
 
Join Date: Aug 2006
Posts: 790
Default Re: Prisoner Dilemma #2

Some of you are taking some good stabs at it. I will give you some hints because this is not easy at all.

Regarding the ideal strategy, there is a way to ensure that all but one of the prisoners (99 in this case) are set free, and 50% of the time all 100 of them will be set free.

Second hint, keep in mind that every person can see all of the colors of hats in front of them. That means that the guy in the back of the line knows the most about the situation. His answer space consists of either a 'white' or a 'black'. Consider how we can convey the most information with 2 possible answers.


Hint 3 in white:
<font color="white"> mod2(#ofwhitehats) </font>
Reply With Quote
  #13  
Old 09-16-2007, 11:13 PM
dknightx dknightx is offline
Senior Member
 
Join Date: Apr 2005
Location: not dmk
Posts: 1,702
Default Re: Prisoner Dilemma #2

[ QUOTE ]
I think the solution should be something like:

If the first prisoner sees an even number of black hats, he calls black. If he sees an odd number of black hats he sayas white. The second prisoner uses the info that the first prisoner saw an even/odd number of black hats to deduce his hat color and so forth.

[/ QUOTE ]

this is the correct answer
Reply With Quote
  #14  
Old 09-16-2007, 11:15 PM
ZeeJustin ZeeJustin is offline
Senior Member
 
Join Date: Jul 2003
Posts: 4,381
Default Re: Prisoner Dilemma #2

[ QUOTE ]
I think the solution should be something like:

If the first prisoner sees an even number of black hats, he calls black. If he sees an odd number of black hats he sayas white. The second prisoner uses the info that the first prisoner saw an even/odd number of black hats to deduce his hat color and so forth.

[/ QUOTE ]

Pretty sure this is correct. 99.5/100 on average go free unless I'm missing something.
Reply With Quote
  #15  
Old 09-17-2007, 04:42 AM
Drag Drag is offline
Senior Member
 
Join Date: Oct 2006
Location: France
Posts: 117
Default Re: Prisoner Dilemma #2

I've got another solution, but it is worse than the one proposed.

Anyway:
First 7 prisoners, communicate in a binary code the number of black hats to the 93 prisoners left (saying black for 1 and 0 for white). Then they can easily deduce their color and correctly predict it.

This soultion can be improved a bit, if first 5 guys give in abinary code the smallest among the number of white hats, number of black hats or the difference between these numbers. This method will set free 97.5 prisoners on average.
Reply With Quote
  #16  
Old 09-17-2007, 12:37 PM
xxThe_Lebowskixx xxThe_Lebowskixx is offline
Senior Member
 
Join Date: Aug 2006
Location: Indeed.
Posts: 3,784
Default Re: Prisoner Dilemma #2

[ QUOTE ]
[ QUOTE ]
I think the solution should be something like:

If the first prisoner sees an even number of black hats, he calls black. If he sees an odd number of black hats he sayas white. The second prisoner uses the info that the first prisoner saw an even/odd number of black hats to deduce his hat color and so forth.

[/ QUOTE ]

Pretty sure this is correct. 99.5/100 on average go free unless I'm missing something.

[/ QUOTE ]
thats only if the hats are distributed 50/50.
Reply With Quote
  #17  
Old 09-17-2007, 01:24 PM
foal foal is offline
Senior Member
 
Join Date: Apr 2007
Posts: 1,019
Default Re: Prisoner Dilemma #2

[ QUOTE ]
[ QUOTE ]
[ QUOTE ]
I think the solution should be something like:

If the first prisoner sees an even number of black hats, he calls black. If he sees an odd number of black hats he sayas white. The second prisoner uses the info that the first prisoner saw an even/odd number of black hats to deduce his hat color and so forth.

[/ QUOTE ]

Pretty sure this is correct. 99.5/100 on average go free unless I'm missing something.

[/ QUOTE ]
thats only if the hats are distributed 50/50.

[/ QUOTE ]
No.. it should work no matter what. It's only the first guy who may or may not go free.
Reply With Quote
  #18  
Old 09-17-2007, 03:39 PM
m_the0ry m_the0ry is offline
Senior Member
 
Join Date: Aug 2006
Posts: 790
Default Re: Prisoner Dilemma #2

This solution (originally by ballin4life) is the ideal one

The first prisoner has no way of getting information about his own hat since the distribution is true random. You can convey the parity (even/odd) of the number of white hats with the first prisoner's answer. Black is odd, white is even. Once you have that information, the next prisoner counts up the number of hats and if the number has changed from even to odd or vice versa he knows for certain he has a white hat. If it has not changed he has a black hat. Every other prisoner keeps track of the parity as either even/odd alternating each time someone says 'white' and applying the same algorithm. An average of 99.5 prisoners go free.
Reply With Quote
  #19  
Old 09-17-2007, 03:54 PM
durron597 durron597 is offline
Senior Member
 
Join Date: Apr 2004
Location: Folding
Posts: 30,000
Default Re: Prisoner Dilemma #2

[ QUOTE ]
I think the solution should be something like:

If the first prisoner sees an even number of black hats, he calls black. If he sees an odd number of black hats he sayas white. The second prisoner uses the info that the first prisoner saw an even/odd number of black hats to deduce his hat color and so forth.

[/ QUOTE ]

this is the correct answer

btw this type of thread should probably be posted in POG (either in addition to or in place of here)
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:16 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.