Are You a Genius #3: Prisoners


Off-Topic Discussions

1 to 50 of 59 << first < prev | 1 | 2 | next > last >>
The Exchange RPG Superstar 2010 Top 16

Randall Munroe, the creator of the xkcd webcomic, maintains a wiki of very clever puzzles. This is one of my favorites, because the answer is difficult to arrive at, but blatantly obvious in retrospect. Which is, I suspect, a plausible operating definition of "genius".

Munroe wrote:

100 people are being held prisoner in a jail. They are told that in one hour, they will all be taken to separate windowless, soundproof cells. One at a time, and in a random order, they will be taken from their cells, interrogated, and then sent back to their cells. All interrogations will take place in the same room, which contains one light bulb and the switch that operates it. The light is initially off, but the inmates are free to toggle the switch as often as they want, whenever they are in the interrogation room, and the prison guards will not toggle the switch at all. No prisoner can see the light from his cell. Only one prisoner is interrogated at a time, each prisoner can be interrogated multiple times, and they have no way of communicating besides the light switch. The length and amount of time between interrogations is random, so no help there.

At any time, any prisoner under interrogation may state, "Everyone has been interrogated at least once." If this statement is true, everyone will be released. If it is false, all of the prisoners will be executed.

The prisoners have one hour to work out their strategy before they're isolated for good. How do they get released?

Note: The selection process for interrogations is random and fair; some prisoners may be interviewed multiple times before another prisoner is interrogated at all, and after any point in time, every prisoner will be interrogated an infinite number of times more.

Silver Crusade

I'm guessing it's not a dimmer switch?

Liberty's Edge

Are the prisoners allowed to kill the guards?

The Exchange RPG Superstar 2010 Top 16

(smile)
No.

And no.

Silver Crusade

Quote:
they have no way of communicating besides the light switch.

Also, this leads me to believe that any solutions not involving the light switch are invalid. In other words, signals like scuff marks on the floor are a no-go, right?

The Exchange RPG Superstar 2010 Top 16

That would be "a way of communication besides the light switch". But good thinking.


I think the solution will involve the average lifespan of a lightbulb.

So if the lightbulb has an expected lifespan of 1000h then every prisoner should turn on the lamp for the fist 10 hours he is interrogated.( and try once each session for 1 second if the bulb still works)
So if the bulb burns out during any interrogation it's pretty safe to assume that every prisoner has been interrogated at least around 10 hours.

Silver Crusade

Got it! Do not read if you are still trying to come up with the answer.

Spoiler:
One prisoner is designated the "leader".

Procedures for the leader: If he enters the room and the light is off, he does nothing. If he enters the room and the light is on, he turns it off and counts that as 1. When he enters the room and the light is on for the 99th time, he declares that everyone has been interrogated.

Other prisoners: If they enter the room and the light is on, they do nothing. If they enter the room and the light is off, they turn it on, but that is only for the first time they encounter the light being off. Any subsequent times they enter and the light is off, they do nothing.

Sovereign Court

Spoiler:
if the prisoners select a 'spokesprisoner' who turns the light on whenever he is interrogated (and it is not already on), and each other prisoner turns out the light the first time they are interrogated when it is on, the 'spokesprisoner' can announce that everyone has been interrogated at least once when he has turned on the light 100 times.

Edit: ninja'd by Celestial Healer, whose method is slightly quicker.

The Exchange RPG Superstar 2010 Top 16

Very nice, both of you.

Is there any solution if the prisoners are not sure of the initial position of the lightswitch? (That is, it might start either on or off.)

Silver Crusade

Chris Mortika wrote:

Very nice, both of you.

Is there any solution if the prisoners are not sure of the initial position of the lightswitch? (That is, it might start either on or off.)

Spoiler:

I would have to say no, but I'll give it more thought. The "leader" would have no way of knowing whether the switch was set to that position by one of the prisoners, or whether he is simply the first one in the room.

The Exchange RPG Superstar 2010 Top 16

Give it more thought.

Sovereign Court

Spoiler:
same as my answer above, but they switch the light the first and second times, and the spokesprisoner counts to 200?

never mind, that won't work...


For all "leader"-type strategies: What happens if they interrogate selected other more "suspicious" prisoners like 10,000 times before the leader ever gets called once? They could all die of old age or cumulative torture effects before ever being released. I assume part of any "correct" (i.e., workable) solution is that they get released within a reasonable time span?

The Exchange RPG Superstar 2010 Top 16

Kirth,

The choice of which prisoner to select is random, as in d100. So it's quite possible that it could take a very long time for the plan to work. But "after any point in time, every prisoner will be interrogated an infinite number of times more." So the determining process will terminate eventually.

Calixymenthillian wrote:
never mind, that won't work...

Not quite, but you're very close.

Sovereign Court

Chris Mortika wrote:

Kirth,

The choice of which prisoner to select is random, as in d100. So it's quite possible that it could take a very long time for the plan to work. But "after any point in time, every prisoner will be interrogated an infinite number of times more." So it will terminate eventually.

Calixymenthillian wrote:
never mind, that won't work...
Not quite, but you're very close.

Hah! I've just realised I'm an idiot!

Spoiler:
he just needs to count to 199, since 99x2=198.

Shadow Lodge

I like this my answer.

Spoiler:
One prisoner looks at the wall and sees something. He asks another prisoner if she sees what he saw. When she sees the saw, she takes it, cuts the door off it's hinges, and all the prisoners overrun the guards.

The Exchange RPG Superstar 2010 Top 16

Calixymenthillian, there you go!

Dragonborn 3, very clever.

Shadow Lodge

Chris Mortika wrote:
Dragonborn 3, very clever.

You thought so? Neat.


Since one prisoner could theoretically be interrogated an infinite amount of times, this is technically impossible. Correct me if I'm wrong, I'm pretty sure I am. Has the answer been stated yet?

The Exchange RPG Superstar 2010 Top 16

Kobold Cleaver, prisoners are interrogated at random. The phrase "after any point in time, every prisoner will be interrogated an infinite number of times more" may be taken to mean that every prisoner will eventually be interrogated after some (perhaps very long but) finite time.

And yes, good answers have been posted.


Chris Mortika wrote:
The choice of which prisoner to select is random, as in d100.

Ugh. The applied scientist in me hates these "ethereal plane" scenarios. Switches that are invisible to employees; light bulbs that never burn out; random generation of prisoners to interrogate... I always prefer scenarios where I can take advantage of the laws of physics, circumstances outside the puzzle designer's radar, and/or of flaws in human nature.


Chris Mortika wrote:

Kobold Cleaver, prisoners are interrogated at random. The phrase "after any point in time, every prisoner will be interrogated an infinite number of times more" may be taken to mean that every prisoner will eventually be interrogated after some (perhaps very long but) finite time.

And yes, good answers have been posted.

Meh. I'm probably biased, since I flunked here, but it seems to me that there has been nothing in this puzzle which would indicate that there is any set point at which every prisoner has to have been interrogated. I can't figure out any way for them to count, either. I've even read the spoilers people posted, but none of them seemed 'obvious' to me, which probably proves that I am not a genius.


Kirth Gersen wrote:
Chris Mortika wrote:
The choice of which prisoner to select is random, as in d100.
Ugh. The applied scientist in me hates these "ethereal plane" scenarios. Switches that are invisible to employees; light bulbs that never burn out; random generation of prisoners to interrogate... I always prefer scenarios where I can take advantage of the laws of physics, circumstances outside the puzzle designer's radar, and/or of flaws in human nature.

{sighs... puts away radioactive isotope, Geiger counter, and hydrocyanic acid for Kirth-based experiment}

The Exchange RPG Superstar 2010 Top 16

Kirth wrote:


Ugh. The applied scientist in me hates these "ethereal plane" scenarios. Switches that are invisible to employees; light bulbs that never burn out; random generation of prisoners to interrogate... I always prefer scenarios where I can take advantage of the laws of physics, circumstances outside the puzzle designer's radar, and/or of flaws in human nature.

"Assume a perfectly spherical cow..."

Oh, the interrogators know about the light switch; they just promise they won't use it themselves. The light just needs to burn for the time it takes the process to complete. Figure that's about 10,100 interrogations, on the average. At ten interrogations per day, that's not even three years.

Kobold Cleaver wrote:
Meh. I'm probably biased, since I flunked here, but it seems to me that there has been nothing in this puzzle which would indicate that there is any set point at which every prisoner has to have been interrogated. I can't figure out any way for them to count, either. I've even read the spoilers people posted, but none of them seemed 'obvious' to me, which probably proves that I am not a genius.

There's no pre-set point, but the choice of prisoners to interrogate is indeed random, and every prisoner will eventually be interrogated, an indefinite number of times. It's not just unlikely that the interrogators will never choose, say, Prisoner #62, it's guaranteed that they'll pick him. And if the interrogations go on indefinitely, they'll keep picking him.

For counting,

Spoiler:
let's say that, after a few days, the leader gets interrogated. He turns the light off. Every other prisoner will, eventually, get a chance to turn the light on. Each time they do, the light stays on until the leader turns it off.

Let's say that there is a chalkboard in the room instead of a light switch, and each prisoner gets a chance to put a tally mark on the board, once. The leader knows that, once he sees 99 tally marks, he can make the announcement. With the light switch, once he sees the light turned on for the 99th time, he knows that each other prisoner has been in the room and signaled him, and he can announce that.


Chris Mortika wrote:
Kobold Cleaver wrote:
Meh. I'm probably biased, since I flunked here, but it seems to me that there has been nothing in this puzzle which would indicate that there is any set point at which every prisoner has to have been interrogated. I can't figure out any way for them to count, either. I've even read the spoilers people posted, but none of them seemed 'obvious' to me, which probably proves that I am not a genius.

There's no pre-set point, but the choice of prisoners to interrogate is indeed random, and every prisoner will eventually be interrogated, an indefinite number of times. It's not just unlikely that the interrogators will never choose, say, Prisoner #62, it's guaranteed that they'll pick him. And if the interrogations go on indefinitely, they'll keep picking him.

For counting, ** spoiler omitted **

...

.....
Color me embarrassed.
For there record, I wasn't far. I got everything except the 'only the first time' bit. That's what hung me up. In retrospect, it's beyond obvious, especially since I had everything else. I got stuck on what should have been the easy bit. o_O
Nice puzzle.

Liberty's Edge

Dragonborn3 wrote:

I like this my answer.

** spoiler omitted **

That was sort of a variant on what I almost put down as my answer (unfortunately, I made the mistake of asking if the prisoners can kill the guards, which screwed the s&*% out of my plan). Years of Scout camp have filled me with that kind of stuff.

My favorite is the Man on the Moon misdirection gig.

Shadow Lodge

The Eldritch Mr. Shiny wrote:
My favorite is the Man on the Moon misdirection gig.

I do not know that one.

Liberty's Edge

Dragonborn3 wrote:
The Eldritch Mr. Shiny wrote:
My favorite is the Man on the Moon misdirection gig.
I do not know that one.

Are you going to PaizoCon? I could show you there. It's kinda hard to demonstrate over the internet.

Shadow Lodge

The Eldritch Mr. Shiny wrote:
Dragonborn3 wrote:
The Eldritch Mr. Shiny wrote:
My favorite is the Man on the Moon misdirection gig.
I do not know that one.
Are you going to PaizoCon? I could show you there. It's kinda hard to demonstrate over the internet.

No. Don't worry about it.


Pathfinder Lost Omens, Rulebook Subscriber

The obvious answer, Ask the guards. At no point in the puzzle was it stated the guards would lie or refuse to answer. Granted, that's cheating, but it's more amusing than the other answers.


Squeakmaan wrote:
The obvious answer, Ask the guards. At no point in the puzzle was it stated the guards would lie or refuse to answer. Granted, that's cheating, but it's more amusing than the other answers.

Ooh! Just got an idea!

Spoiler:
The prisoners simply open the door and leave. You never said the door was locked, or that the guards were there to prevent the prisoners from escaping.

Dark Archive

Could you link to this wiki? It sounds awesome!


I tracked the link down after reading this thread, quite a lot of interesting stuff!

Puzzles

Spoiler:
I agree with the solutions above, but they all put a real tax on the leader's memory! It's the kind of thing that could vary a lot, but you're looking at just over 10,000 interrogations on average before the leader can make the call. You're going to have a lot of prisoners going stir crazy by that point!


Can the prisoners ask the guard?

The Exchange RPG Superstar 2010 Top 16

Mr.Fishy wrote:
Can the prisoners ask the guard?

Yes. Sadly, the guards speak only Urdu, while the prisoners speak only Chocktaw. (Prisoner #71 speaks Mandarin, as well; fat lot of good that does her.)

It makes the interrogations shorter that way.

Dark Archive

The first time any prisoner is interrogated, he or she screws the lightbulb 1/100 out of its socket. When it falls out, everyone has been interrogated.


Every time a prisoner is interrogated during the day, he or she ignores the switch. When a prisoner is interrogated at night, he or she pulls the switch to turn the lights off and escapes in the confusion.

The Exchange

my Fav!

Smurfs and Gargamel
Gargamel has captured 100 Smurfs. Feeling confident he proposes the following game:

He will exchange the white hats of an undefined number of smurfs with red hats. No smurf knows his own color. All smurfs can see each other, but they have no other means of communication. Then, each Smurf (order selected by Gargamel) should say the color of his hat (loudly so that everyone can hear it). If it is correct, then he lives, otherwise he dies.

After a short discussion the smurfs accept. They know that the first Smurf to be chosen might die, but all 99 other smurfs will survive.

How?

Sovereign Court

Crimson Jester wrote:

my Fav!

Smurfs and Gargamel

Spoiler:
Does the first smurf need to say red or white? or can he say the "colour" thirty three?
The Exchange RPG Superstar 2010 Top 16

Calixymenthillian, the first Smurf is allowed to say only "red" or "white". In Computer Theory terms, he's allowed to transmit one bit of information.


Hey, Chris is adding more rules to the puzzle! No fair!
Berik: Actually, Kirth, Entropi, Squeak and I gave answers which did not require a leader. Some others probably did, too. Although only mine and Squeak's came before your post.
/\ All sm**fs immediately forfeit and die. :)

Sovereign Court

Are the smurfs bound? Or can they point/gesture?


I think I got it...

smurf spoiler:
If the smurfs know the order, the first smurf says the color of the next smurfs hat.


Spoiler:
In their desperate huddle, the prisoners would have to appoint a single person responsible for counting. In this case it's a former publisher who robbed a White Castle named Erik. Erik is the only one allowed to discern and then state the conclusion that all prisoners have been interrogated.

A few things have to be agreed to ahead of time.

1. If any prisoner other than the Erik enters the room to find the bulb off, and they've not been interrogated before, they must turn it on. Also, if they find the bulb on, they must not touch the switch.

2. If Erik enters the room and finds the bulb turned off, he doesn't touch the switch, but if the bulb is on, he switches it off. Starting with the number one - representing his own first interrogation - he adds +1 each time he finds the switch on and has to switch it off, and upon reaching the count of 100 states that everyone has been interrogated once, flips the bird to the man, kick over the table, throws his hands up in the air and shouts "We outta here!"

Sovereign Court

Spoiler:
The first smurf says Red if he sees an even number of red hats, or white if he sees and odd number of red hats. Then if, ignoring the first hat, each smurf can count the opposite (odd/even) number of red hats, he knows his own is red.

This had me for a while.


Actually, the sm**f one was easier than the prisoner one, but I'm reluctant to risk messing up and getting sm**f'd. :P

Sovereign Court

Is it possible to un-sm**f?

(oh, you can :( )


Chris Mortika wrote:
Mr.Fishy wrote:
Can the prisoners ask the guard?

Yes. Sadly, the guards speak only Urdu, while the prisoners speak only Chocktaw. (Prisoner #71 speaks Mandarin, as well; fat lot of good that does her.)

It makes the interrogations shorter that way.

Wait: So how do the guards explain the rules to the prisoners anyway then?

The Exchange RPG Superstar 2010 Top 16

It was not the guards, but rather the Organians, who came down and explained the rules.

1 to 50 of 59 << first < prev | 1 | 2 | next > last >>
Community / Forums / Gamer Life / Off-Topic Discussions / Are You a Genius #3: Prisoners All Messageboards

Want to post a reply? Sign in.