Prisioner and warden puzzle – DESIGN YOUR STRATEGY
23 selected prisoners are summoned by the warden. He gives them a choice of playing a game with him that might ensure their escape from the prison or might as well lead them towards painful death. The prisoners think that this is the only chance for them to be free again and agrees to him.
The warden tell them that there is a room which has just two switches which are labelled 1 or 2. The switches may be up or down and the condition is not known at present. They are not connected to anything. The warden may select any prisoner on any day and send him to the switch room. The prisoner will have to select any one switch and reverse its position i.e. if it is up, he will turn it down and if it is down, he will turn it up. He can and must only flip one switch and then he will be confined to his cell again.
The warden may choose the same prisoner more than one time and he will be choosing completely randomly. But at a certain point of time, everyone will have visited the switch room. And at any time, the prisoners may declare that everyone has visited the room at least once. If they will be true, they will be set free but if they will be wrong, they will be killed.
The warden gives them an hour to plan any kind of strategy and then they will be confined to their respective cells and will never be allowed to meet. What strategy can help them be free?
Everyone will appoint any one person as a leader. Now everyone must follow some steps. Every prisoner will flip the first switch up at the first opportunity and also at the second opportunity. If the first switch is already up or they have flipped it up two times already, then they will flip the second switch. The leader however will have a different routine. He is the only one who will flip the switch down the first switch. Suppose if the switch is already down, he will flip the second switch. Also he will keep a count and when he has flipped the first switch down 44 times, he will declare that every prisoner has visited the room.
This is because once the leader has flipped down the switch 44 times, he will know that everyone has visited the room. If the switch was down initially, the other 22 prisoners will turn it up two times. If the first switch was already up, there will be one prisoner who will flip the switch up only once and the rest will do it twice.
Now this trick won’t work when the leader has flipped the switch 23 times. Consider the fact that it is possible that 12 prisoners randomly and the leader have been taken to the switch room 24 times and the rest have not been taken till then. Remember that the first switch might have been up in the beginning itself. Thus the prisoners must flip the switch up twice. If they do it just once, the leader will never know whether to count till 22 or 23.
Your Answer
More puzzles to try-
Band never play music
What kind of band never plays music?Read More »The Puzzle Fry Band
Five friends pooled their resources one day and pieced a CD together from songs they had written. They called their ...Read More »Steal but not caught
Jacob was caught stealing 27 times in one year, yet he was never arrested. How come?Read More »Alternating T-shirt colors
Ten friends walk into a room where each one of them receives a hat. On each hat is written a ...Read More »Money Distribution among Sons
A man had five children. He had $100 with him to give to his children. He decided to start with ...Read More »Translate into words from rebus puzzle
Translate into words from rebus puzzle-Read More »Camp Security
Two guards were guarding the camp.Guard-1 was looking towards the south to make sure no threat is coming from the ...Read More »Car Driver Eye Color
You are a cab driver who pools passengers. You pick 3 people from a destination and drop 1 after an ...Read More »SAVE THE MANKIND
A stark raving mad king tells his 100 wisest men he is about to line them up and that he ...Read More »10 Word Rebus
What word is identified by the below rebus? Your Your Your Your Your Your Your Your Your YourRead More »No voice, but it still cries riddle
No voice, but it still cries. No wings, but it still flutters. No teeth, but it still bites. No mouth, ...Read More »Stand Still
It\’s a 7-letter word. If we remove 1 letter from it, it remains the same. If we remove 2 letters ...Read More »Gold Room Puzzle
You are standing before two doors. One of the path leads to gold room and the other one leads to ...Read More »Come in Night
You see me at night, by day you tell everyone about me. I come back looking differently than before. I ...Read More »K=1! +2! +3! …+25!. What would be the last digit of K?
K=1! +2! +3! …….+25! What would be the last digit of K?Read More »Date on Dice
There are two dice with empty faces in front of you and a marker. You can mark any number on ...Read More »Use it after it breaks riddle
What has to be broken before you can use it?Read More »Always with me Riddle
I am with you from birth, I feel your every move, and I feel your every thought. Guess me who ...Read More »Murder or Suicide Puzzle
Jacob jumped off the top of building a suicide attempt not knowing that a safety net is already there near ...Read More »Knights Tour Chess Puzzle
In the picture, you can see a chess board. On the top left position, the K marks a knight. Now, ...Read More »