Death row is overcrowded, so the warden proposes a radical solution. He places 100 boxes in a sealed room. Each contains a slip of paper bearing the name of one of the 100 prisoners on the row.
Each prisoner will enter the room by one door, open 50 boxes, and exit by another door. Unless every prisoner can discover his own name, all 100 will be executed.
The prisoners will be supervised by a guard. They cannot communicate with one another, and they must leave the room as they found it, but the group can prepare a plan in advance and post it on the wall of the room.
If they proceed at random, their chance of succeeding is 1/2100, or about 0.00000000000000000000000000000008. What should they do?
|
SelectClick for Answer> |
The written plan assigns one box to each prisoner. When he enters the room, he opens his assigned box, reads the name on the slip, and opens the box assigned to that prisoner. He continues in this way until he’s opened 50 boxes or found his own name.
Remarkably, this strategy raises the chance of success to 31.18 percent. Peter Winkler discusses the idea here; the puzzle originated with Danish computer scientist Peter Bro Miltersen.
(Thanks, Steve.)
|