A group of 7 prisoners are captured, and taken before the warden. Being the sporting type, he proposes a game by which they may all escape. Being also the sadistic type, the consequences of them losing is that they will all be executed.
"First, you must choose a prisoner to serve as your representative. Afterward, you will all be taken to individual cells, including your representative.
Then, for the next seven weeks, we will play the following game.
For the first six days of each week, I will select a single prisoner at random each day, excluding your representative, and bring him from his cell into a room. The choice is completely random, so the same prisoner may be brought to the room zero, one or multiple times during the six days. In this room are two on / off switches labelled A and B, one and only one of which MUST be chosen and toggled by the prisoner. Then, the prisoner will be taken back to his cell. The prisoner may not leave notes, belongings, etc in the room, nor modify the room in any way besides manipulating a switch.
On the last day of each week, your representative will be brought into the same room, where he must also choose and toggle one and only one of the switches. Afterwards he too will be brought back to his cell. The same rules prohibitting modifications to the room apply to the representative; only one of the switches may be manipulated.
Neither the prisoners nor their representative may communicate in any way with each other while in their cells or in transit to or from them. Any attempt to do so will result in you all being executed.
This will continue for seven weeks. On the first day of the following week, your representative will be brought before me and asked whether all his fellow prisoners have visited the room at least once during the previous seven weeks. If he answers correctly, you will all be set free. If he answers incorrectly, you will all be shot."
The prisoners are given a day to select their representative and plan their strategy. What strategy should they employ to ensure that they are all set free ? They may safely assume both switches are off before the game begins, and that the warden will not swap the labels or otherwise manipulate the switches during the game.
NOTE: unlike the original problem, every prisoner brought to the room MUST press one of the switches.
Question
Guest
Hi gang.
This is a variation on the lightbulb escape problem posted in:
http://brainden.com/forum/index.php?showtopic=4004
A group of 7 prisoners are captured, and taken before the warden. Being the sporting type, he proposes a game by which they may all escape. Being also the sadistic type, the consequences of them losing is that they will all be executed.
"First, you must choose a prisoner to serve as your representative. Afterward, you will all be taken to individual cells, including your representative.
Then, for the next seven weeks, we will play the following game.
For the first six days of each week, I will select a single prisoner at random each day, excluding your representative, and bring him from his cell into a room. The choice is completely random, so the same prisoner may be brought to the room zero, one or multiple times during the six days. In this room are two on / off switches labelled A and B, one and only one of which MUST be chosen and toggled by the prisoner. Then, the prisoner will be taken back to his cell. The prisoner may not leave notes, belongings, etc in the room, nor modify the room in any way besides manipulating a switch.
On the last day of each week, your representative will be brought into the same room, where he must also choose and toggle one and only one of the switches. Afterwards he too will be brought back to his cell. The same rules prohibitting modifications to the room apply to the representative; only one of the switches may be manipulated.
Neither the prisoners nor their representative may communicate in any way with each other while in their cells or in transit to or from them. Any attempt to do so will result in you all being executed.
This will continue for seven weeks. On the first day of the following week, your representative will be brought before me and asked whether all his fellow prisoners have visited the room at least once during the previous seven weeks. If he answers correctly, you will all be set free. If he answers incorrectly, you will all be shot."
The prisoners are given a day to select their representative and plan their strategy. What strategy should they employ to ensure that they are all set free ? They may safely assume both switches are off before the game begins, and that the warden will not swap the labels or otherwise manipulate the switches during the game.
NOTE: unlike the original problem, every prisoner brought to the room MUST press one of the switches.
Edited by ShawnInTorontoLink to comment
Share on other sites
12 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.