Is it me or does this solution rely on the belief in a certain order to the random picking of prisoners? If the counter switches to an off state 44 times, that doesn't tell him that all 22 other prisoners gave toured through the room. A guard (random algorithm) could have just selected the same two prisoners -- the counter and another guy -- 22 times. Am I missing something?
Prison Switcharoo
51–60 of 81 posts
Re: Prison Switcharoo
#52In the version where one prisoner is taken in per day, the solution can be drastically simplified if it is agreed that the prisoner who is taken into the first day is the counter. That case only requires flipping switch a off 22 times after the first day. Obviously, removing that single bit of information makes the solution much harder to find, but adding then later removing it makes discovering the solution a more i…
You cannot know if you are the first to go into the switch room. Prisoners are taken to the room at arbitrary times.
Re: Prison Switcharoo
#53The answer: http://www.cartalk.com/content/prison-switcharoo-0?answer
Re: Prison Switcharoo
#54The answer: http://www.cartalk.com/content/prison-switcharoo-0?answer
Re: Prison Switcharoo
#55The answer: http://www.cartalk.com/content/prison-switcharoo-0?answer
Re: Prison Switcharoo
#56Since there's a password article on the front page too... This problem is very clever, and there is a very clever way to solve this, assuming everyone plays nice. However, that solution assumes perfect collusion. These are prisoners we're talking about, so at least in some cases, we have to assume there may be bad actors involved. I mean this is a cute problem assuming the following: 1. All the prisoners have perfect…
"In theory, there is no difference between theory and practice. In practice, there is"
Re: Prison Switcharoo
#57If you enjoy non-trivial puzzles such as this, I strongly recommend Peter Winkler’s book _Mathematical Puzzles: A Connoisseur’s Collection_. It contains two variants of this problem. The easier of the two, _The One-Bulb Room_, has essentially the same solution as this one. On the other hand, the harder one is really considerably harder! Here it is, _The Two-Bulb Room_: “Each of n prisoners will be sent alone into a r…
Re: Prison Switcharoo
#58If you enjoy non-trivial puzzles such as this, I strongly recommend Peter Winkler’s book _Mathematical Puzzles: A Connoisseur’s Collection_. It contains two variants of this problem. The easier of the two, _The One-Bulb Room_, has essentially the same solution as this one. On the other hand, the harder one is really considerably harder! Here it is, _The Two-Bulb Room_: “Each of n prisoners will be sent alone into a r…
Is this two-bulb room problem not identical to the OP's Prison Switcharoo problem?
... but this time, every prisoner must follow
the same set of rules.Re: Prison Switcharoo
#59The answer: http://www.cartalk.com/content/prison-switcharoo-0?answer
I don't see this working, if the prisoner who flipped the switch on is brought back into the room immediately after the counter turns it off, then that one prisoner will be assumed to be two different people.
Re: Prison Switcharoo
#60If you enjoy non-trivial puzzles such as this, I strongly recommend Peter Winkler’s book _Mathematical Puzzles: A Connoisseur’s Collection_. It contains two variants of this problem. The easier of the two, _The One-Bulb Room_, has essentially the same solution as this one. On the other hand, the harder one is really considerably harder! Here it is, _The Two-Bulb Room_: “Each of n prisoners will be sent alone into a r…
Is this two-bulb room problem not identical to the OP's Prison Switcharoo problem?
The second difference is the one that makes this problem genuinely difficult, though: “Ah, but this time, every prisoner must follow the same set of rules.” In other words, the agreed strategy has to be the SAME for every prisoner.