Braingle Lite



Prisoners and 2 Switches - Scenario A

Category:Logic
Submitted By:biztycl
Fun:*** (2.93)
Difficulty:**** (3.22)



The warden meets with 23 new prisoners when they arrive. He tells them, "You may meet today and plan a strategy. But after today, you will be in isolated cells and will have no communication with one another.

"In the prison there is a switch room which contains two light switches labeled A and B, each of which can be in either the 'on' or the 'off' position. BOTH SWITCHES ARE IN THEIR OFF POSITIONS NOW.* The switches are not connected to anything.

"After today, from time to time whenever I feel so inclined, I will select one prisoner at random and escort him to the switch room. This prisoner will select one of the two switches and reverse its position. He must move one, but only one of the switches. He can't move both but he can't move none either. Then he'll be led back to his cell."

"No one else will enter the switch room until I lead the next prisoner there, and he'll be instructed to do the same thing. I'm going to choose prisoners at random. I may choose the same guy three times in a row, or I may jump around and come back."

"But, given enough time, everyone will eventually visit the switch room as many times as everyone else. At any time any one of you may declare to me, 'We have all visited the switch room.'

"If it is true, then you will all be set free. If it is false, and somebody has not yet visited the switch room, you will be fed to the alligators."

*note - the only difference from Scenario B, the original position of the 2 switches are known.

Show Hint Show Answer



Comments on this teaser


Posted by humoeba06/24/04
I like it!!! Cool :D

Posted by jimbo06/26/04
Interesting logic but I had in mind something that would take less time. Hope the scorekeeper doesn't die before the strategy carries through. :D

Posted by hersheykiss890806/27/04
that was really hard, and took a little too much time. i liked it though, and i would have never thought of the answer

Posted by crystalstar06/27/04
Hmm...It's okaaaaaaaay, I guess. But yeah, it's basically impossible for anyone to think of the answer to that, and also I didn't know what we had to figure out, so I think you should have made that clearer! :wink:

Posted by Varthen07/01/04
I dont like people who give me headaches...

Posted by rashad07/04/04
Ok i liked this 1 but the problem that there was no question...there is no point...the answer may be 15ducj=k and i have the right to say that cuz there is no question make it clearer the next time

Posted by kuya_kei07/13/04
This is very good. I liked the way it made my head ache.

Posted by sakirski07/13/04
Excellent Teaser in my opinion. It's perfectly logical, and it's perfectly solvable, though certainly not very easy. The question though not stated in the given is implied, so I don't think it to be a big deal that it's missing.

Posted by sakirski07/15/04
OK so I just found a problem with the solution (provided the current statement of the given) For the solution to work the prisoners will have to keep visiting the jail cell even after all of them visited it an equal number of times. You see nowhere in the problem does it say that the warden will keep pulling prisoners into the switch room indefinitely. Problem states that he will pick them randomly, and that everyone will visit the room as many times as everyone else. Well what if the luck of the draw happens that randomly they will all be picked only once and all 23 will visit the room only once? Then the counter can only do one flip of the switch, and then they will never be freed. So basically the problem needs an extra statement: “Assume that this exercise continues indefinitely until one of the prisoners speaks out.”

Posted by swordflame07/30/04
It seems to me that the answer is slightly incorrect. In part 3 of the answer, the second ON should read OFF.

Posted by biztycl07/30/04
Thanks Sakirski, the pre-condition you mentioned is stated in the hint section. I like those 3 teasers you posted too. :D

Posted by valeriy08/24/04
Assuming non of the prisoners died in the jail. Then they would stay there 4ever.

Posted by stormtrooper02/13/05
wha...wha...wha?

Posted by jacstop05/11/05
As a matter of fact or fiction, this scenario's countless improbabilities bequeath indistinct objectives to its foreseen populace. This is neither bad nor good :roll: :roll:

Posted by netgoof05/13/05
If the warden picked one random prisoner every day, it would take about 596 days on average.

Posted by sweetime05/16/05
I wasn't sure what the question was asking - i was trying to work out how the warden would know if they were lying or not...(for some reason i had a nice double blind going on, and the warden didn't know who he was taking out either...)

Posted by smarty_blondy11/07/05
What exactly are we supposed to find out? What does this teaser ask? I only see plain text with an explanation fallen from the sky. :-?

Posted by shenqiang11/15/05
Where is Scenario B?

Posted by HibsMax02/28/06
Unless I don't understand the problem correctly, I think there is a flaw. For ease let's say that the warden has already decided that he is going to pick each prisoner 5 times. What if the scorekeeper is picked to make the first 5 visits? Who keeps score then?

Posted by HibsMax02/28/06
Sorry, I'm new here. :) I guess I should have looked at the date of the problem first.

Posted by mercenary00704/01/06
I think this is a nice try... for those of you who say you didn't know what to do then something is wrong with you cuz anyone could figure out that the prisoners should devise a plan to get out... DUH!!!! OBVIOUSLY... now as for the answer... if the scorekeeper counts 1 for every time that he flicks off the switch B that would be incorrect. If 1 prisoner goes before him and flicks B on and then the scorekeeper goes and flicks it off and they alternate like that for 3 turns then the scorekeeper would count 3 when in fact only 1 of his fellow prisoners has been to the room. For this reason the answer is wrong in my mind. 8)

Posted by safire219104/14/06
what was the question?

Posted by calmsavior05/16/06
that solution makes a lot of sense... :oops:

Posted by Creshosk06/24/06
I have to agree with mercenary007. alternating between the scorekeeper and one other person multiple times would ruin the solution. As it stands the prisoners are alligator chow.

Posted by ztodd10/16/06
Read the problem again mercenary and cresh. Each transmitter only flips B to on if it's off one time, then only flips A after that, no matter whether they find B off again or not in later visits. I agree though that it's not totally clear if the warden is guaranteed to keep bring prisoners back or if he will stop after they've all had the same number of turns.

Posted by senther712/30/06
I think THINK that i foud a flaw. What happened if 2 transmitters go to the room, and neither of them have gone to the room, how does the reciver know that 2 people has gone, not one?Unless someone explaines the tatic, i think the answer is wrong :roll:

Posted by senther712/30/06
O wait, never mind :oops:

Posted by jesdexter03/25/07
i never knew the question

Posted by Odessius04/20/07
(sigh) well people, its to the alligators. Theres no way; we could have been in there for a hundred billion years. Still, yeah sure, the answer works out, and I was beat by the puzle... ih. :-? I tried to split em into 2's and 4's with 4 possible combinations, and clubbing the warden, nope wasn't gona solve that one. a transmitter... don't feel bad, a transmitter, dude! okay so what if we're in the planning stage, and someone says what if the transmitter dies. hmm... :roll:

Posted by notsosmart11106/11/07
OW!!! My head hurts how do you come up with this stuff!!! It's so brilliant!!!

Posted by spinnercat07/23/07
brilliant!!!!! My math teacher gave this to us, but never told us the answer. Thanks!!!!

Posted by 974999gec10/26/07
How do you come up with this stuff? I mean really! Does it just hit you? :-? :-? :roll: :wink:

Posted by plokolplok05/14/08
how 'bout flicking switch B on everytime a prisoner goes into the switch room for the first time, and flicking switch A if he/she already got there...then it's everybody's role to count the ons and offs of light B, because if they appoint only one 'counter', just one missed count could lead to dying old in prison...the counter would never reach 23...or is this what the solution suggests? ow. head achy achy...

Posted by Sorena88811/06/08
Yes it works. Every one could count. This is a better way.

Posted by MikeG10/31/11
I love this teaser. And I know it's 3 years later, but what plokolplok suggests doesn't work. If you have more than one person who counts, who turns off switch B? Only one person can turn off switch B, otherwise they could be staying in there a LOT longer than they would with the poster's solution. And if one person turns it off, you can't have other people counting; a counter could come in five times in a row, see the switch ON each time and add 5, even though nobody else came in.

Posted by YangL2106/14/13
I LOVE IT!!!!!!!! (little tricky though. Cut that out. not little, but A LOT!) :D :) I still love it though.

Posted by MichaelMaverick11/13/13
There is no 100% guaranteed solution, and it is in fact entirely hopeless. It's one thing for the warden to offer them a deadly game where he's the judge who doesn't have to play by the rules. But by giving it an element of randomness that only he controls, he's bluntly announcing that it's a trap to get all the prisoners killed. He won't ever pick anyone. It *looks* solvable and he's actually generous to give them a full day to think about it, but they'll probably come up with a flawed plan or nothing at all. Even if in the latter case they agree to do nothing, so long as they don't collectively realize that it's a trick, someone will inevitably try their luck. The idea of freedom is too tempting. Even suggesting to the sadistic warden that no solution exists still carries the risk of death. This puzzle is really creepy when you think about it.

Posted by Johnnylloyd02/24/14
Why does there not seem to be any logical solution here??? How can you with reasoned analytical deduction solve close to 46 random selections without a way to empirically verify that indeed all have flipped a switch? An electrician knows light switches: there are 4 screws. Electricians set the screw head slot to vertical which indicates 12. The first man sets the screw (top left) to 1 o'clock and men stop at setting 5 and go to bottom screw and do 5 more. 4 screws allow 20 people. When a man comes in and sees all set at 5, he starts over at top left screw. Ergo any man is both the recorder and counter. In this scenario each prisoner must cheat with his fingernail. Subterfuge is a dishonest mans calling. The 23 or 45 or 46 visit or any can be ascertained at any time by any man. All men should know how to tell time. How would any man know when he was 13th . He would simply count.

Posted by chemical03/02/14
the funny thing is all this thinking is unnecessary, the answer is simple. they hold their strategy meeting in the "switch room" and they each flip the switch. they are all free as soon as they all get back to their cells and one of them declares they have all been in the room.




Search:
Browse:

Most Popular | Hardest | Easiest




Privacy | Terms
Copyright © 2003