| View previous topic :: View next topic |
| Author |
Message |
Silversunset
Drama Queen^42
|
Posted: Tue Feb 08, 2011 11:27 pm Post subject: 1 |
|
|
I don't know if you've seen this one before, but a guy at work posed it to me and it was a bit of a stumper at first.
A group of prisoners are trapped in jail. These prisoners would attempt an escape on any positive probability of success. The prisoners are monitored by a guard who has only one bullet in his gun, but who also has perfect marksmanship skills (he never misses). A maintenance technician needs to repair the gate keeping them inside the jail, and so for one second, the gate is open. How can the guard still keep all the prisoners detained? _________________ as you wish.... |
|
| Back to top |
|
 |
Icarus
Daedalian Member
|
Posted: Tue Feb 08, 2011 11:59 pm Post subject: 2 |
|
|
Well, since you don't have a number of prisoners, etc, you're not looking for a mathematical solution.
The guard shoots the technician.
Or, the guard shoots the first prisoner to reach the gate just before reaching the gate. All the remaining prisoners trip over that first prisoner, and by the time they get up, the gate is now closed. |
|
| Back to top |
|
 |
Chaz
Vote: Zag
|
Posted: Wed Feb 09, 2011 12:05 am Post subject: 3 |
|
|
With due diligence!
(Alternatively, the group of prisoners is only one prisoner.) _________________ The enemy's base is down. |
|
| Back to top |
|
 |
raekuul
Lives under a bridge & tells stories.
|
Posted: Wed Feb 09, 2011 12:17 am Post subject: 4 |
|
|
My first thought, fix it at night when they're asleep wouldn't have worked. We have a non-singular number of prisoners, a single shot, a single door, and a single moment in time in which we must repair the door.
Wait. I understand that this solution isn't the most humane, but the alternative is a breakout. If they haven't escaped yet despite the door being broken, why does the door need to be fixed? If they could have escaped because the door was broken, what was the guard doing to keep them from escaping?
Why not just leave the door broken? |
|
| Back to top |
|
 |
Chuck
Daedalian Member
|
Posted: Wed Feb 09, 2011 12:39 am Post subject: 5 |
|
|
| The guard could tell the prisoners that he'll shoot the first one who tries to escape. |
|
| Back to top |
|
 |
Chaz
Vote: Zag
|
Posted: Wed Feb 09, 2011 12:50 am Post subject: 6 |
|
|
What if we look at as a logic circuit? _________________ The enemy's base is down. |
|
| Back to top |
|
 |
Zag
Unintentionally offensive old coot
|
Posted: Wed Feb 09, 2011 12:53 am Post subject: 7 |
|
|
| The guard lines up the prisoners on the farthest point from the gate. They are all told to lie down on the ground, face down, and put their hands behind their heads. Once they are all in position, the technician does his stuff. No one can possibly get up from that position and cross the compound in one second. |
|
| Back to top |
|
 |
Icarus
Daedalian Member
|
Posted: Wed Feb 09, 2011 2:05 am Post subject: 8 |
|
|
I guess the first thing we should ask - is there a serious answer to this, or is it a trick, joke answer. Well, considering the gate is only open for one second, and there is only 1 gate mentioned, we know this isn't a real situation, therefore we shouldn't expect a "real" answer. There simply is no way 1 second allows anyone a chance to get through the gate.
So the next question is, are we looking for a trick answer?
Trick answers can be anything silly you can think of. Shoot the technician; booby trap the ground; line up the prisoners single file, the bullet will pass through every prisoners head; etc. etc.
If this is the case, then there really isn't an answer, as any of these will do.
So if there is a serious answer, than it's got to be something practical.
How about locking up the prisoners in their own cells before working on the gate?
Or, tell the prisoners the technician is going to be working on the back fence. They'll all be looking at the back of the jail while the technician opens the front gate for 1 second.
Or - tell the prisoners the gate is going to fixed every day for a year, but never actually fix the gate. Then one random day, actually fix the gate. |
|
| Back to top |
|
 |
Silversunset
Drama Queen^42
|
Posted: Wed Feb 09, 2011 2:16 am Post subject: 9 |
|
|
Chuck: close but not *quite* the answer
I probably could have worded it differently - this was the way it was given to me which is why i think it's a stumper.
These are the "clarifications" (aka hints) i was given when i tried to solve it.
1. the 'jail' is one big open room with a single gate, so you can't lock anyone up in their cell
2. there is nothing in the room except the guard, the prisoners, and the gun the guard holds
3. there can be any number of prisoners. For the sake of argument, say 5 prisoners
4. the "one second" is an arbitrary number. raise it to 5 minutes if it helps. _________________ as you wish.... |
|
| Back to top |
|
 |
Jack_Ian
Big Endian
|
Posted: Wed Feb 09, 2011 2:04 pm Post subject: 10 |
|
|
The problem as I see it:
Even if the prisoners know that the first prisoner through the door will be killed, a group of prisoners can conspire to push another through the door to take the bullet before making their escape. Given that there is only one bullet, there will always be some scenario that results in a non-impossible chance of escape once the gate opens. The only solution I see therefore, is for the gate to remain closed.
I guess he could let them go and then declare himself outside the prison and then lock the door keeping them "detained". |
|
| Back to top |
|
 |
Silversunset
Drama Queen^42
|
Posted: Wed Feb 09, 2011 2:06 pm Post subject: 11 |
|
|
Not quite - i've been back and forth with my work-friend on this, and there is a way to solve this that will prevent *any* prisoner from escaping  _________________ as you wish.... |
|
| Back to top |
|
 |
Chuck
Daedalian Member
|
Posted: Wed Feb 09, 2011 4:58 pm Post subject: 12 |
|
|
| I suppose the guard could threaten to shoot the first prisoner who moves or talks, but they might have previously planned for this possibility and would all rush for the door at the same time. Of course, if I were such a prisoner I'd wait until someone else was shot instead of moving with the rest. |
|
| Back to top |
|
 |
Silversunset
Drama Queen^42
|
Posted: Wed Feb 09, 2011 5:45 pm Post subject: 13 |
|
|
chuck you're so close i could smack you
there is a super difficult 'mathmatic' version of the answer. and then there is a non-mathgeek answer. I'll wait a little bit before i fill in the blanks  _________________ as you wish.... |
|
| Back to top |
|
 |
Ctorj
Did I spell that right?
|
Posted: Wed Feb 09, 2011 7:07 pm Post subject: 14 |
|
|
The guard tells the prisoners that if anyone attempts to escape while the door is being fixed, he will
-kill their closest family member?
-kill the person next to them? |
|
| Back to top |
|
 |
Chuck
Daedalian Member
|
Posted: Wed Feb 09, 2011 8:15 pm Post subject: 15 |
|
|
| The guard could number the prisoners if they don't already have unique prisoner numbers and promise to shoot the lowest numbered prisoner who tried to escape. Then for sure the lowest numbered prisoner won't try to escape, and the second lowest would know this and also not try to escape, and so on through the group. |
|
| Back to top |
|
 |
Zag
Unintentionally offensive old coot
|
Posted: Wed Feb 09, 2011 8:26 pm Post subject: 16 |
|
|
| Chuck wrote: |
| The guard could number the prisoners if they don't already have unique prisoner numbers and promise to shoot the lowest numbered prisoner who tried to escape. Then for sure the lowest numbered prisoner won't try to escape, and the second lowest would know this and also not try to escape, and so on through the group. |
... and he was hanged on Wednesday, and it was a surprise. |
|
| Back to top |
|
 |
Silversunset
Drama Queen^42
|
Posted: Wed Feb 09, 2011 8:27 pm Post subject: 17 |
|
|
yaaaaaaaaaay ding ding ding ding.
although the numbering doesn't have to be a "number" per-se, just assign any value. when i answered it i pulled the "shoot the tallest person to move" - you have to do the 'tried to move' bit or else there is nothing preventing the group from beating someone up throwing them outside getting them shot and then running away themselves. if you tell them the tallest to move, then they won't budge at all which wipes out any chance of them forcing someone else outside. _________________ as you wish.... |
|
| Back to top |
|
 |
Icarus
Daedalian Member
|
Posted: Wed Feb 09, 2011 8:33 pm Post subject: 18 |
|
|
| Quote: |
| chuck you're so close i could smack you |
This leads me to believe this is a "reverse logic" answer.
The prisoners are not acting as a group, but rather we have to think each prisoner is acting for themselves, individually, and is not willing to die for the chance others will go free.
Have the prisoners draw straws, or some other random way of splitting the prisoners into 2 groups. Tell the prisoners you will shoot whoever is left behind.
Bascially you are relying on the prisoners to keep each other in, instead of worrying about who is getting out.
I hate when my post gets in AFTER the answer was submitted  |
|
| Back to top |
|
 |
Zag
Unintentionally offensive old coot
|
Posted: Wed Feb 09, 2011 8:57 pm Post subject: 19 |
|
|
Except that it doesn't work any better than shooting the first person to move, for the reason I was hinting at above. I was referring to the well-known riddle discussed in The Unexpected Hanging and Other Mathematical Diversions by Martin Gardner.
In the riddle, the warden tells the prisoner he will be hanged one day this week, and, on the morning of the hanging, he will not know that it is coming that day. From this, the prisoner uses your reasoning that he can't be hanged at all. He can't be hanged on Saturday, of course, because, as the last day, he would expect it on that day if they made it to Saturday. So he can't be hanged on Friday, since that would leave only Saturday which we already showed to be a logical impossibility. Continuing backwards through the days, it is clear that he can't be hanged on any day.
... and he was hanged on Wednesday, and it was a surprise. |
|
| Back to top |
|
 |
Silversunset
Drama Queen^42
|
Posted: Wed Feb 09, 2011 9:06 pm Post subject: 20 |
|
|
Zag; which one doesn't work better?
(i've heard the riddle you're referring to)
if the prisoners are ranked tallest to shortest (5 feet, 5.25 feet, 5.5 feet, 5.75 feet, and 6 feet for the sake of argument) and the guard shoots the tallest person who moves:
- The person who is 6 feet tall will not move because he is the tallest.
- The person who is 5.75 feet tall will not move because he knows that the 6 foot tall person isn't going to move.
- the person who is 5.5 feet tall will not move because he knows that the 5.75 and 6 feet tall people will not move.
- the person who is 5.25 feet tall will not move because he knows that the 5.5, 5.75 and 6 feet tall people will not move.
- and lastly, the person who is 5 feet tall will not move because he knows that the 5.25, 5.5, 5.75 and 6 feet tall people will not move.
Their best bet would be for two (or more) to move at the same time, which wouldn't happen because the taller of the pair wouldn't move, and the shorter one would figure it out and then not move either.
i'm not sure how you'd end up with a surprise in this one. _________________ as you wish.... |
|
| Back to top |
|
 |
Zag
Unintentionally offensive old coot
|
Posted: Wed Feb 09, 2011 10:02 pm Post subject: 21 |
|
|
With few enough people, it would work, as would just saying you'll shoot the first person who moves.
If there were 100 prisoners, then a bunch of them in the 75-100 range in ranking are very likely to move, I think. Many of them would think that there is at least a 50% chance that someone taller than he will also move, based on the same logic. Or one of them will surreptitiously poke a tall one with a pin, counting on you not catching the slight movement of poking him.
Also, say you're the guard, and the shortest guy moves a tiny bit. Do you shoot right away? How do you know a taller person isn't going to move a quarter of a second later? ... a tenth of a second? ... a millisecond? Since it's impossible for someone to be perfectly still, how much movement is enough? What if it's just a sneeze?
We could remove the ridiculous judgment issues by placing it in Puzzlania, each prisoner is in a cell, and all are told that the cell doors will be open for 5 seconds, then closed again. Anyone can choose to leave their cell, but the tallest person to leave the cell will be killed. Everyone else who left their cell will be freed, and all who do not leave their cells will be imprisoned forever.
Let's say you're the shortest person alive, and you know that there are N prisoners. For what number of N will you leave? A million? yes, easily. Four? probably not. It's somewhere in the middle. |
|
| Back to top |
|
 |
Icarus
Daedalian Member
|
Posted: Wed Feb 09, 2011 11:32 pm Post subject: 22 |
|
|
I formally declare "PROTEST"!!
How is any solution different than this:
| Quote: |
| Or, the guard shoots the first prisoner to reach the gate just before reaching the gate. |
OK - I don't really protest, but I am being serious.
Essentially aren't you saying the same thing? This first "tall" person to move...
Shooting the first person to reach the gate actually eliminates anyone from going for the gate because everyone will stop. There is no "guess" work.
Think about your solution - the Tallest, smallest number, etc. If just 1 person flinches, the guard now shoots that person, what keeps all the rest from running for the gate?
But when you threaten to shoot the first to reach the gate - the race will be who can stay the furthest away.
Isn't this more kind of like the 2 brothers racing the camels across the desert expecting "their" camel to lose? |
|
| Back to top |
|
 |
groza528
No Place Like Home
|
Posted: Thu Feb 10, 2011 1:02 am Post subject: 23 |
|
|
| If the prisoners start walking out one by one, from shortest to tallest and stopping at an arbitrary time, then the guard would not know which prisoner was the tallest to move until several had already escaped. |
|
| Back to top |
|
 |
Chaz
Vote: Zag
|
Posted: Thu Feb 10, 2011 1:08 am Post subject: 24 |
|
|
I want to agree with Icarus (and in principal I do agree with Icarus.)
However.
In the case of "first to move" they can all move at the same time, so there's a good chance (4/5 chance) that they will escape. In the case of "shortest one who tries to escape", they would all have a 0/5 chance of escaping if nobody shorter than them tried to escape as well. They can't all decide to be the same height, but they can decide to move at the same time.
Since shortiest has a 0/5 chance no matter what, he'll stay put. And so on up the scale.
| Quote: |
| If the prisoners start walking out one by one, from shortest to tallest and stopping at an arbitrary time, then the guard would not know which prisoner was the tallest to move until several had already escaped. |
What if we combined them?
"I will shoot the first person who tries to escape; if more than one of you tries to escape at the same time, then I will shoot the tallest of you."
Now they should be frozen. _________________ The enemy's base is down. |
|
| Back to top |
|
 |
Silversunset
Drama Queen^42
|
Posted: Thu Feb 10, 2011 1:35 am Post subject: 25 |
|
|
Chaz -
but what happens if two guys beat up the third, throw him out and the guard shoots - then everyone is free to run out. _________________ as you wish.... |
|
| Back to top |
|
 |
bgg1996
BeeGees are awesome!
|
Posted: Thu Feb 10, 2011 1:43 am Post subject: 26 |
|
|
"Also, if you try to throw somebody over the gate I will shoot you. If you do it at the same time, I will shoot the taller one."
"Also, if you try to manipulate somebody's limbs to make them throw somebody over the gate, I will shoot you. If you do it at the same time, I will line you up, and try to shoot both of you, tallest man first. |
|
| Back to top |
|
 |
Chuck
Daedalian Member
|
Posted: Thu Feb 10, 2011 2:44 am Post subject: 27 |
|
|
| If the guard shoots somebody, all of the other prisoners still in the cell will escape. As long as he has his bullet, any remaining prisoners might be intimidated and not try to escape. One prisoner might realize this and walk out, figuring that the guard won't shoot him and lose all of the other prisoners. But then the other prisoners except for the last two might have the same thought and also walk out. I figure that the guard can keep two prisoners because with two left, he can't lose more than one whether he shoots or not so his threat to shoot the next one who tries to leave should keep the last two from trying. |
|
| Back to top |
|
 |
Chaz
Vote: Zag
|
Posted: Thu Feb 10, 2011 3:21 am Post subject: 28 |
|
|
Stand them all five feet apart, and threaten to shoot the first person who's foot leaves the ground (or the tallest of a group who's feet leave the ground.) _________________ The enemy's base is down. |
|
| Back to top |
|
 |
Chaz
Vote: Zag
|
Posted: Thu Feb 10, 2011 3:23 am Post subject: 29 |
|
|
I still like Icarus' original solution.
Shoot the maintenance man. _________________ The enemy's base is down. |
|
| Back to top |
|
 |
Icarus
Daedalian Member
|
Posted: Thu Feb 10, 2011 3:47 am Post subject: 30 |
|
|
| Quote: |
I still like Icarus' original solution.
Shoot the maintenance man.
|
Going off what Chaz states, where is the guards guarantee by threatening "the tallest, shortest, slowest, fastest, etc,?" The prisoners know only 1 prisoner can be stopped, and then everyone else can go free, as clearly stated:
| Quote: |
| These prisoners would attempt an escape on any positive probability of success. |
Therefore doesn't each prisoner know for sure that if 2 or more prisoners attempt to escape, let's say 3, then each prisoner has a 1/3 chance of getting shot, or 2/3 chance of escape. The odds are HEAVILY in their favor for success, and even more so in their individual favor if more try to escape.
So why not use a tactic that pits each prisoner against another? Pair them off A1/B1, A2/B2,...An/Bn (1/2 max # prisoners), and threaten to shoot the one that gets left behind of given A/B pair.
If I'm B3, and I see A3 making a dash for the gate - I'm going to tackle A3 and make sure A3 doesn't make it to the gate.
So now again - go with the simplified version - the guard promises to shoot the 2nd prisoner to reach the gate. More than likely noone will rush the gate, or, if more than 1 rushes the gate, won't the 2nd prisoner pull the first one down?
And let's debunk the "tallest/shortest" theory - are you really going to tell me no 2 prisoners are EXACTLY the same height? I'm 5'9" - Larry, you're 5'9". If we both charge the gate, who is the guard going to shoot? |
|
| Back to top |
|
 |
Chaz
Vote: Zag
|
Posted: Thu Feb 10, 2011 3:57 am Post subject: 31 |
|
|
So shoot them alphabetically. Or, as Chuck suggested, give them each a number.
It doesn't really matter, as long as you have some preset order in which they'll die if two of them make a run at the same time. _________________ The enemy's base is down. |
|
| Back to top |
|
 |
Silversunset
Drama Queen^42
|
Posted: Thu Feb 10, 2011 4:00 am Post subject: 32 |
|
|
True, it doesn't matter what the value is as long as they are all assigned something.
and it would keep them in, if you knew the "tallest" person would be shot and you were the tallest you wouldn't move, and so-on down the line. The tallest person wouldn't be stupid enough to move (in this riddle anyways) so youd never have the chance where more than one person would try to escape at the same time. _________________ as you wish.... |
|
| Back to top |
|
 |
bgg1996
BeeGees are awesome!
|
Posted: Thu Feb 10, 2011 4:07 am Post subject: 33 |
|
|
| How do they know for sure that they will be shot if all you do is tell them that they will be shot. You could be lying. |
|
| Back to top |
|
 |
Chaz
Vote: Zag
|
Posted: Thu Feb 10, 2011 4:17 am Post subject: 34 |
|
|
I think the more important question is: where do I hire this maintenance guy? That one second exchange is effing amazing! _________________ The enemy's base is down. |
|
| Back to top |
|
 |
Icarus
Daedalian Member
|
Posted: Thu Feb 10, 2011 4:18 am Post subject: 35 |
|
|
Let's use numbers since they can be unique.
And let's say there are 10 prisoners.
I get assigned 9, you get 10.
Very well, you are #10, therefore I know you aren't going to budge.
The gate is open for 5 minutes.
I'm #9, I am walking toward that gate. How exactly does the gaurd know to shoot me?
All I have to do is tell the guard, hey, once you shoot me, then what's keeping #10 from leaving? And by your logic, you said you would shoot the Highest # to attempt escape.
What if #10 intends to wait until 4 minutes after the gate was opened, and then tries to escape?
At what point is the guard able to determine the highest/lowest # prisoner escaping? |
|
| Back to top |
|
 |
Chaz
Vote: Zag
|
Posted: Thu Feb 10, 2011 4:20 am Post subject: 36 |
|
|
First to move OR highest number if two or more move at the same time.
No matter what, 10 knows he will die if he tries to go for the door. _________________ The enemy's base is down. |
|
| Back to top |
|
 |
Chaz
Vote: Zag
|
Posted: Thu Feb 10, 2011 4:21 am Post subject: 37 |
|
|
And if 10 knows that he'll die, then 9 knows that 10 knows this, so 9 knows that he'll die instead... etc. _________________ The enemy's base is down. |
|
| Back to top |
|
 |
groza528
No Place Like Home
|
Posted: Thu Feb 10, 2011 4:57 pm Post subject: 38 |
|
|
| Quote: |
| Going off what Chaz states, where is the guards guarantee by threatening "the tallest, shortest, slowest, fastest, etc,?" |
Why on earth would you shoot the slowest? The dogs will catch him. |
|
| Back to top |
|
 |
Sentran
Ray of Sucking Funshine
|
Posted: Thu Feb 10, 2011 6:34 pm Post subject: 39 |
|
|
The guard grabs himself by the collar with one hand, while pointing the gun to his chin with the other. He then claims, in a very serious voice, that if anybody moves towards the gate, the guard gets it. If the jail is in Blazing Saddles, this will have a 100% chance of success. _________________ Sentran
"Speaking of double negatives, I haven't read greylab yet today." - Lifeinmomland |
|
| Back to top |
|
 |
Jack_Ian
Big Endian
|
Posted: Thu Feb 10, 2011 6:38 pm Post subject: 40 |
|
|
Everyone surrounds the shortest guy and brings him through the gate.
Everyone, including the shortest guy has a chance of escape. |
|
| Back to top |
|
 |
|