- It has been shown using tools in Game Theory that no strategy is better than the one given.
- The original paper by Miltersen was concerned with time-space tradeoffs for certain computer problems such as substring searches. When he refered to a team of players, he most likely was concerned with a "team" of computers, or more succinctly parallel processing. Skyum's observation showed that under some conditions, independent parallel processing can be remarkably effective.
- Even though the prisoners did not communicate, the structure implied by the strategy made their actions highly dependent.
✓
Draw On
The 100 prisoner problem is considered one of the best examples of a game theory problem where a different stategy greatly changes the probability of success. In 2003 Danish computer scientist Peter Bro Miltersen published a paper that studied "time-space tradeoffs for static data structure problems".
To demonstrate some results, he introduced a game in which one player randomly places one of two colored slips of paper in boxes. A second player opens some of the boxes and makes a best guess of the contents of the remaining boxes. He gave an upper bound for the probability of player 2 being correct that decreased very rapidly with the number of boxes.
He then conjectured that if player 2 was replaced by a team of players independently opening boxes, the results would be similar. His collegue Sven Skyum pointed out to him that this is not necessarily true and that the probability of team success could be much greater than expected.
The 100 prisoner problem evolved from Miltersen's problem to demonstrate Skyum's remarkable observation.
Peter Bro Miltersen
Sven Skyum
The director of a prison offers 100 death row prisoners, who are numbered from 1 to 100, a last chance. A room contains 100 boxes. The director randomly puts one prisoner's number in each closed box. The prisoners enter the room, one after another. Each prisoner may open and look into 50 boxes in any order. The boxes are closed again afterwards. If, during this search, every prisoner finds his number in one of the boxes, all prisoners are pardoned. If just one prisoner does not find his number, all prisoners die. Before the first prisoner enters the room, the prisoners may discuss strategy but may not communicate once the first prisoner enters to look in the boxes. What is the prisoners' best strategy?
Page 2
No matter what strategy we use, the probabilty of any given prisoner succeeding is
50 |
100 |
73
77
77
Page 2
The path 92, 31, 14, 82, 31, 12 looks like this.
Page 1
We know that the paths that the prisoners take through the boxes are cycles with lengths between 1 and 100 and that any two distinct cycles are disjoint. This tells us that the prisoners succeed if and only if the maximum cycle length in their permutation is less than or equal to
50.
Page 2
Let's look at the simpler case of 4 prisoners. The following table gives the possible permutations of the numbers with the possible cycles.
Permutation | Cycles | Cycle Length | Max Length | |
---|---|---|---|---|
1 | 1, 2, 3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|
24 | 4, 3, 2, 1 | 4,1; 3,2 | 0, 2, 0, 0 | 2 |
24, 12, 8, 6 |
Page 3
We consider the general case of n boxes. Let N(n,k) denote the number of cycles of length k. We can choose the numbers in the cycles
C(n, k)
ways.
We can arrange the k boxes in the cycle (k-1)!
ways and we can arrange the remaining
n - k
boxes (n-k)!
ways. Then by the counting principle,
N(n,k) = C(n,k)(k-1)!(n-k)! =
n! (k-1)! (n-k)!
|
k! (n-k)! |
n! (k-1)!
|
k ! |
n! |
k |
k > n/2,
each of the k cycles must be of maximum length since the remaining n - k
boxes could not have a cycle of length greater than or equal to k.
It follows for k > n/2,
the probability of a maximal cycle of length k is
|
||
n! |
1/k,
Page 4
Wow!
While the odds are still against them, the prisoners went from no chance of success to a reasonable chance with this simple change in strategy.
37
Page 5
The case where
k ≤ n/2
is much more difficult. We discuss this case for completeness but it is not needed to solve the problem as stated.
Let L(n,k) denote the number of times that k is the maximum cycle length for n boxes. The following recursive formula gives the number of partitions of n that have a maximum length of k and is presented with the derivation discussed later.
L(n,k) =
⌊ n/k ⌋ |
∑ |
j=1 |
[
n! |
j! kj (n-jk)! |
min(k-1,n-kj) |
∑ |
t=1 |
]
where
0 |
∑ |
t=1 |
L(n,1) = 1
for all n.
We use this formula when k ≤ n/2. Note that we already have the formula
when k > n/2,
Of course once L(n,k)
is computed, the probability that k is a maximum cycle length can be found by dividing
L(n,k)
by n!.
a This notation is very clumsy but was the notation used by Miltersen in the original paper where he presented the formula without derivation.
Page 6
We give an example of using the recursive formula:
L(n,k) =
⌊ n/k ⌋ |
∑ |
j=1 |
[
n! |
j! kj (n-jk)! |
min(k-1,n-kj) |
∑ |
t=1 |
]
.
We calculate L(7,3).
L(7,3) | = |
|
1 | ||||||||
= |
[
L(4,1) +L(4,2)
]
+
[
L(1,1)
]
|
2 | |||||||||
= |
70[1 + L(4,2)] + 280 • 1
|
3 |
We now calculate L(4,2).
L(4,2) | = |
|
4 | ||||||||
= |
[
L(2,1)
]
+
• 1
|
5 | |||||||||
= | 6 + 3 = 9 | 6 |
L(7,3)
= 700 + 280 = 980.
This recursive formula is difficult to use by hand but is easy to program into a computer.
Page 7
The first few values of L(n, k)
Page 8
The General Formula for
In 1997, S. W. Golomb and P. Gaal of the University of Southern California, published a paper in Probabilistic Methods in Discrete Mathematics
entitled On The Number of Permutations of n Objects With Greatest Cycle Length k in which they derived
the general formula
L(n, k)
L(n,k) =
L(n-kj,t)
where k ≤ n/2.
Their method involved building up to the result by considering cases n/3 < k ≤ n/2, n/4 < k ≤ n/3, and so on. The computation was long and nasty.
With the benefit of hindsight from the formula, a perhaps more esthically pleasing method of deriving the formula has evolved. If we let
Lj(n,k) =
⌊ n/k ⌋ |
∑ |
j=1 |
[
n! |
j! kj (n-jk)! |
min(k-1,n-kj) |
∑ |
t=1 |
]
n! |
j! kj (n-jk)! |
min(k-1,n-kj) |
∑ |
t=1 |
Page 1
Monte Carlo Method
We estimate the probability distribution by creating
random permutations of the numbers in the boxes.
Pen Help
⎯
Pen Thickness
✐
Set Erase Mode
❏
Clear Sheet
×
Close