Two Plus Two Newer Archives  

Go Back   Two Plus Two Newer Archives > General Gambling > Probability
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 02-28-2007, 07:27 PM
jason1990 jason1990 is offline
Senior Member
 
Join Date: Sep 2004
Posts: 932
Default 100 Prisoners

I think this is a very nice puzzle which got buried under a pile of crap. So here it is with its own thread.

A prison contains 100 prisoners. In a special room are 100 boxes. Each box contains the name of one of the prisoners. Tomorrow, each prisoner will be compelled to enter the room and select 50 boxes, hoping to find the box with his or her name in it. They need not select all 50 at once. They can select one, open it, then select the next, open it, and so on. If every prisoner succeeds, they are all set free. If even one prisoner fails to find his name, they are all executed. The prisoners may not communicate tomorrow, but they may communicate today. That is, they may discuss and decide upon a selection strategy. Find a strategy which guarantees they will have at least a 30% chance of being freed.

I can tell you that this puzzle is related to the stick breaking puzzle. The strategy I am thinking of will give them a probability of being executed which is very close to ln(2). It will work even if I add more boxes to the puzzle. As the number of boxes goes to infinity, their probability of being executed converges to ln(2).
Reply With Quote
  #2  
Old 02-28-2007, 11:42 PM
PairTheBoard PairTheBoard is offline
Senior Member
 
Join Date: Dec 2003
Posts: 3,460
Default Re: 100 Prisoners

I assume the boxes are labeled by number or kept in a fixed order? In other words, the prisoners won't go into the room and find 100 unlabled boxes scattered willy nilly all over the place.

PairTheBoard
Reply With Quote
  #3  
Old 02-28-2007, 11:52 PM
PairTheBoard PairTheBoard is offline
Senior Member
 
Join Date: Dec 2003
Posts: 3,460
Default Re: 100 Prisoners

I'm thinking that in the strategy they develop, they assume that all previous prisoners have been successful in their search. There should be some way that should help. They should search in a way that tends to avoid searching boxes that have already been searched and eliminated.

PairTheBoard
Reply With Quote
  #4  
Old 03-01-2007, 12:33 AM
jason1990 jason1990 is offline
Senior Member
 
Join Date: Sep 2004
Posts: 932
Default Re: 100 Prisoners

Yes, you can assume that they are arranged in a neat row from left to right.
Reply With Quote
  #5  
Old 03-01-2007, 12:39 AM
jason1990 jason1990 is offline
Senior Member
 
Join Date: Sep 2004
Posts: 932
Default Re: 100 Prisoners

To be clear, each prisoner will be compelled to play the game, so the game will continue even after a failure. In other words, the n-th prisoner will not know whether or not the previous prisoners succeeded.
Reply With Quote
  #6  
Old 03-01-2007, 01:02 AM
jay_shark jay_shark is offline
Senior Member
 
Join Date: Sep 2006
Posts: 2,277
Default Re: 100 Prisoners

Here is what I think so far . I thought of a well balanced strategy so that each box gets selected by exactly 50 people . Keep in mind , I'm assuming that each prisoner enters the room one at a time . Please clarify this if that's not the case .

Player 1 chooses box 1 through 50
player 2 chooses box 2 through 51
player 3 chooses box 3 through 52
.
.
player 99 chooses box 99,100,1...48
player 100 chooses box 100,1,2...49
Reply With Quote
  #7  
Old 03-01-2007, 02:14 AM
PairTheBoard PairTheBoard is offline
Senior Member
 
Join Date: Dec 2003
Posts: 3,460
Default Re: 100 Prisoners

[ QUOTE ]
To be clear, each prisoner will be compelled to play the game, so the game will continue even after a failure. In other words, the n-th prisoner will not know whether or not the previous prisoners succeeded.

[/ QUOTE ]

ok. So I think that makes my point more pertinent. They might as well proceed as if all previous prisoners succeeded because if one has failed it doesn't matter what they do anyway because they will all be killed.

PairTheBoard
Reply With Quote
  #8  
Old 03-01-2007, 03:45 AM
PairTheBoard PairTheBoard is offline
Senior Member
 
Join Date: Dec 2003
Posts: 3,460
Default Re: 100 Prisoners

ok I'm stumped. Suppose Prisoner 1 (P1) chooses boxes 1-50. Now going by the principle of avoiding boxes where you know you are not because someone else already is, the best P2 can hope to do is choose boxes 51-100. Assuming P1 has succeeded, P2 now has 50/99 to succeed. But now, the probability that both P1 and P2 succeed is,

(50/100)(50/99) = 25.25%

That means the probability that at least one will fail is 74.7%. That's already way over ln(2) and we're just getting started. I don't see how the first two prisoners can do any better than that.

PairTheBoard
Reply With Quote
  #9  
Old 03-01-2007, 03:53 AM
PairTheBoard PairTheBoard is offline
Senior Member
 
Join Date: Dec 2003
Posts: 3,460
Default Re: 100 Prisoners

Are the prisoners allowed to rearrange the boxes according to the names they see inside?

PairTheBoard
Reply With Quote
  #10  
Old 03-01-2007, 09:45 AM
jason1990 jason1990 is offline
Senior Member
 
Join Date: Sep 2004
Posts: 932
Default Re: 100 Prisoners

[ QUOTE ]
Are the prisoners allowed to rearrange the boxes according to the names they see inside?

[/ QUOTE ]
I suppose the very fact that you are asking this question means I owe Aaron an apology. Okay, Aaron, sorry. Perhaps this question is not as silly as I thought.

No. You may assume the boxes are firmly secured to a surface and cannot be moved. They are made of wood and the names are carved into the inside of the boxes.
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 09:32 PM.


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