Go back
Prisoners and Boxes

Prisoners and Boxes

Posers and Puzzles

T
Kupikupopo!

Out of my mind

Joined
25 Oct 02
Moves
20443
Clock
10 Dec 06
Vote Up
Vote Down

Originally posted by dmnelson84
The google solution I found had nothing to do with switching boxes. You found a faulty answer.
I said it involved switching the CONTENTS of the boxes

X
Cancerous Bus Crash

p^2.sin(phi)

Joined
06 Sep 04
Moves
25076
Clock
10 Dec 06
Vote Up
Vote Down

Originally posted by TheMaster37
I said it involved switching the CONTENTS of the boxes
But the solution doesn't require that.

PR

Joined
09 Dec 06
Moves
1
Clock
11 Dec 06
Vote Up
Vote Down

X
Cancerous Bus Crash

p^2.sin(phi)

Joined
06 Sep 04
Moves
25076
Clock
11 Dec 06
Vote Up
Vote Down

The post that was quoted here has been removed
Pizza rolls indeed.

u
The So Fist

Voice of Reason

Joined
28 Mar 06
Moves
9908
Clock
11 Dec 06
9 edits
Vote Up
Vote Down

Originally posted by XanthosNZ

Uzeless, your reasoning is wrong. The first prisoner would only be able to determine the odd/evenness of half the boxes (and would have a 50% chance of finding his own number). So unless he managed to find all odds or all evens (very low odds) the second prisoner would need to find odds/evens as well and would have a 50% chance of finding his own number ...[text shortened]... ou broke the rules of the puzzle and your solution still isn't as good as the optimal solution.
Yes, I realize you were saying they couldn't mark the boxes...but the answer had already been given on google.... I was just suggesting that from a practical standpoint it is easy to mark a cardboard box by bending one of the flaps. It would leave a crease and would be easy to spot.

Anyway, if the first person was even and found 40 evens and 10 odds, and the next person was even, then they would have a 10/39 chance of not finding their number by looking at just the evenly marked boxes....which means they have a 75% chance of finding their number. They would then have a 11/50 chance of finding their number if they didn't find it in the even marked boxes since there would still be 10 even boxes that weren't marked and 11 chances to still look into boxes and 50 boxes that hadn't been identified yet

The combined total odds would be 48.5% (75% + 22% divided by 2) for the 2nd prisoner to find his box using your example, not 25%.

EDIT: although, my solution depends on the prisoners being able to tell which boxes had already been correctly identified..hmm, maybe a 2nd bend would be required to show the box had been identified and therfore should not be looked in. Yes, that would work

X
Cancerous Bus Crash

p^2.sin(phi)

Joined
06 Sep 04
Moves
25076
Clock
12 Dec 06
Vote Up
Vote Down

Originally posted by uzless
Yes, I realize you were saying they couldn't mark the boxes...but the answer had already been given on google.... I was just suggesting that from a practical standpoint it is easy to mark a cardboard box by bending one of the flaps. It would leave a crease and would be easy to spot.

Anyway, if the first person was even and found 40 evens and 10 odds, a ...[text shortened]... show the box had been identified and therfore should not be looked in. Yes, that would work
Firstly you are making the assumption that a prisoner always gets to open 50 boxes (even if their first box is their own number). Fine.

So let's look at your example.

Prisoner A opens 50 boxes, finding his number in the process, and uncovers 40 evens and 10 odds.
Prisoner B enters the room. He is even so he opens the 40 known evens. There is a 4/5 chance that during this process he will uncover his number. As soon as he does so the remaining openings should be directed to the currently unknown boxes, labeling between 49 and 10 (equal probability of 49 to 11 inclusive [1/50 each] and the remaining probability being 10) of those.
And it just gets worse as Prisoner C won't have 100 boxes known either and in theory the 100th Prisoner may not have all boxes known (as unlikely as that scenario is).

The best way of working out the overall probability would be millions of trials.

PR

Joined
09 Dec 06
Moves
1
Clock
12 Dec 06
Vote Up
Vote Down

u
The So Fist

Voice of Reason

Joined
28 Mar 06
Moves
9908
Clock
12 Dec 06
1 edit
Vote Up
Vote Down

Originally posted by XanthosNZ
Firstly you are making the assumption that a prisoner always gets to open 50 boxes (even if their first box is their own number). Fine.

So let's look at your example.

Prisoner A opens 50 boxes, finding his number in the process, and uncovers 40 evens and 10 odds.
Prisoner B enters the room. He is even so he opens the 40 known evens. There is a 4/5 nario is).

The best way of working out the overall probability would be millions of trials.
Yes, I was assuming the first person looked in 50 boxes as per your example. For sure though, he may only look in 1 box, or any other number up to 50 before he finds his number.

There must be a formula. The math guys here should be able to figure it out. PBE6 knows this stuff better than i do. Fabian seems good also.

X
Cancerous Bus Crash

p^2.sin(phi)

Joined
06 Sep 04
Moves
25076
Clock
12 Dec 06
Vote Up
Vote Down

Originally posted by uzless
Yes, I was assuming the first person looked in 50 boxes as per your example. For sure though, he may only look in 1 box, or any other number up to 50 before he finds his number.

There must be a formula. The math guys here should be able to figure it out. PBE6 knows this stuff better than i do. Fabian seems good also.
Why must there be a formula? The complex nature of the problem as stated means that if one were to write out the probability then the sum would go on for a hell of a long time.

u
The So Fist

Voice of Reason

Joined
28 Mar 06
Moves
9908
Clock
12 Dec 06
Vote Up
Vote Down

Originally posted by XanthosNZ
Why must there be a formula? The complex nature of the problem as stated means that if one were to write out the probability then the sum would go on for a hell of a long time.
The answer would be simple. X% chance the prisoners would find their numbers using my method.

The equation is the tough part.

O

Joined
11 Sep 06
Moves
17376
Clock
13 Dec 06
Vote Up
Vote Down

I looked up the answer, which was interesting. I'm very surprised as to the high percentage of the time they will succeed; particularly because the first person to go in the room will have a 50% failure rate no matter what strategy is used (for obvious reasons).

h

Joined
05 Jun 06
Moves
1772
Clock
14 Dec 06
Vote Up
Vote Down

Originally posted by XanthosNZ
100 prisoners are given the sort of crazy deal they always get in these problems. Each prisoner gets a number. There's a room with 100 identical boxes in a row, each containing a random number from 1-100, with no repeats. Each prisoner, in turn and isolated from all the others, will get a chance to open 50 boxes of his choosing, one at a time. If each pris ...[text shortened]... ly zero, actually it's ~8*10^-31). What is the optimal strategy that the prisoners should use?
HALF 1-50 OTHER HALF 51-100

X
Cancerous Bus Crash

p^2.sin(phi)

Joined
06 Sep 04
Moves
25076
Clock
14 Dec 06
Vote Up
Vote Down

Originally posted by hakaman
HALF 1-50 OTHER HALF 51-100
They either succeed or they don't, it's 50/50.

h

Joined
05 Jun 06
Moves
1772
Clock
14 Dec 06
Vote Up
Vote Down

Originally posted by XanthosNZ
They either succeed or they don't, it's 50/50.
AT THE OF THE DAY THEY MADE IT FREE

h

Joined
05 Jun 06
Moves
1772
Clock
14 Dec 06
Vote Up
Vote Down

Originally posted by hakaman
AT THE OF THE DAY THEY MADE IT FREE
END OF THE DAY

Cookies help us deliver our Services. By using our Services or clicking I agree, you agree to our use of cookies. Learn More.