100 Prisoners and Eccentric Warden recreational math puzzle.
#1
Posted 2007-November-20, 11:06
He decides that he will release them if they are smart/lucky enough to win the game he is going to play with them:
On a Sunday morning, every prisoner will be assigned a number (integer) from 1 to 100 (inclusive), which will be written on his forehead. Any number may be assigned to an arbitrary number of prisoners (repetitions allowed!)
Every prisoner will see the numbers of the other 99, but won't see his own number. The prisoners then guess their own numbers simultaneously. (There will be a guard assigned to each prisoner to note down the guess: yes, it is a high security prison)
If at least one prisoner guesses his number right, they are all released immediately. Otherwise, they will need to wait another year for another challenge.
On the evening before, they are allowed to gather together and devise a strategy.
What should the prisoners' strategy be?
#2
Posted 2007-November-20, 11:07
Trumpace, on Nov 20 2007, 05:06 PM, said:
He decides that he will release them if they are smart/lucky enough to win the game he is going to play with them:
On a Sunday morning, every prisoner will be assigned a number (integer) from 1 to 100 (inclusive), which will be written on his forehead. Any number may be assigned to an arbitrary number of prisoners (repetitions allowed!)
Every prisoner will see the numbers of the other 99, but won't see his own number. The prisoners then guess their own numbers simultaneously. (There will be a guard assigned to each prisoner to note down the guess: yes, it is a high security prison)
If at least one prisoner guesses his number right, they are all released immediately. Otherwise, they will need to wait another year for another challenge.
On the evening before, they are allowed to gather together and devise a strategy.
What should the prisoners' strategy be?
Find a wise old dwarf as quickly as possible.
I don't think it's clear from the parameters whether they are permitted to signal each other in ANY way, are they?
If they aren't (let's say they're locked up in solitary) then this is an impossible problem. It'd be like trying to pick a roulette number based on the last 20 rolls.
If they are, then this is a really simple problem.
#3
Posted 2007-November-20, 11:22
jonottawa, on Nov 20 2007, 12:07 PM, said:
I don't think it's clear from the parameters whether they are permitted to signal each other in ANY way, are they?
If they aren't (let's say they're locked up in solitary) then this is an impossible problem. It'd be like trying to pick a roulette number based on the last 20 rolls.
If they are, then this is a really simple problem.
No. They are not allowed to signal each other in anyway.
Are you willing to bet that it is an impossible problem?
#4
Posted 2007-November-20, 13:13
George Carlin
#5
Posted 2007-November-20, 13:26
Lets assume that each prisoner is assigned a number at random from the uniform distribution [1-100]
Lets assume that each prisoner decided to randomly guess a number between [1-100] using a uniform PDF.
The chance that the first prisoner will correctly guess his own number is 1/100.
The chance that each and every one of the 100 prisoners will incorrectly guess their own number is (.99^100) = 0.366032341
There is a ~64% chance that everyone gets released in the first year.
If the prisoners are really bared from any kind of communication then I don't see any obvious way to improve on this without some kind of silly assumption about the function used to assigned numbers to prisoners. For example, if the numbers are being assigned using a pseudo-random process, you might be able to do something clever.
#6
Posted 2007-November-20, 13:32
hrothgar, on Nov 20 2007, 02:26 PM, said:
I think it is and you are missing the point.
Warning, hidding hint following:
- hrothgar
#7
Posted 2007-November-20, 13:47
If it's some semantical game (does 'inclusive' imply that the numbers 1 and 100 must appear? if so, all prisoners can guess 1 or all prisoners can guess 100) then whatever.
It's implied that each number is random and that since repetitions are allowed, not all numbers must appear.
It doesn't work with 2 prisoners either. Each has a 50% chance of guessing wrong in that case.
#8
Posted 2007-November-20, 14:01
#9
Posted 2007-November-20, 14:03
Quote
with two prisoners the problem is trivial. One guesses 1, one guess 2, at least one of them has to be right, so they go free.
With the problem as stated, each prisoner guess a unique number from 1 to 100, at least one of them has to be right, so they all go free. Surely this is not so stupid to be that easy. The problem needs to be restated...
#10
Posted 2007-November-20, 14:07
inquiry, on Nov 20 2007, 08:03 PM, said:
Quote
with two prisoners the problem is trivial. One guesses 1, one guess 2, at least one of them has to be right, so they go free.
With the problem as stated, each prisoner guess a unique number from 1 to 100, at least one of them has to be right, so they all go free. Surely this is not so stupid to be that easy. The problem needs to be restated...
?????
#11
Posted 2007-November-20, 14:12
Each prisoner gets a number but more than one can have the same number. So not every number has to be used.
I have never heard of the problem before but I am certain that this what Trumpace meant.
As a further hint, here is a possible solution for two prisoners using the numbers 1 and 2:
This is a big hint but the problem is still interesting afterwards.
- hrothgar
#12
Posted 2007-November-20, 14:18
Great problem.
"One of these days in your travels, a guy is going to come up to you and show you a nice brand-new deck of cards on which the seal is not yet broken, and this guy is going to offer to bet you that he can make the Jack of Spades jump out of the deck and squirt cider in your ear. But, son, do not bet this man, for as sure as you are standing there, you are going to end up with an earful of cider."
#13
Posted 2007-November-20, 14:23
Trumpace, on Nov 20 2007, 12:06 PM, said:
Every prisoner will see the numbers of the other 99, but won't see his own number. The prisoners then guess their own numbers simultaneously. (There will be a guard assigned to each prisoner to note down the guess: yes, it is a high security prison)
If at least one prisoner guesses his number right, they are all released immediately. Otherwise, they will need to wait another year for another challenge.
On the evening before, they are allowed to gather together and devise a strategy.
What should the prisoners' strategy be?
Certainly, the odds are better if they either:
All say the same number (100 chances of getting 1 number right) or,
Split up into groups of 2, 5, 10, 20, 25 (pick one) and each group guesses a different number that they can see.
Are they not?
So many experts, not enough X cards.
#14
Posted 2007-November-20, 14:28
inquiry, on Nov 20 2007, 03:03 PM, said:
Quote
with two prisoners the problem is trivial. One guesses 1, one guess 2, at least one of them has to be right, so they go free.
With the problem as stated, each prisoner guess a unique number from 1 to 100, at least one of them has to be right, so they all go free. Surely this is not so stupid to be that easy. The problem needs to be restated...
Ahh Ben, You are not even coming close to solving the problem even in the case of 2 prisoners.
You gave 2 people, and you had person A guess 1, and person B guess 2. If person A had 2 on his forehead, and person B has 1 on his forehead you lost.
Also, note the problem said that numbers can be assigned more then once (so not all numbers had to be used)...
#15
Posted 2007-November-20, 14:48
#16
Posted 2007-November-20, 15:18
bid_em_up, on Nov 20 2007, 03:23 PM, said:
Trumpace, on Nov 20 2007, 12:06 PM, said:
Every prisoner will see the numbers of the other 99, but won't see his own number. The prisoners then guess their own numbers simultaneously. (There will be a guard assigned to each prisoner to note down the guess: yes, it is a high security prison)
If at least one prisoner guesses his number right, they are all released immediately. Otherwise, they will need to wait another year for another challenge.
On the evening before, they are allowed to gather together and devise a strategy.
What should the prisoners' strategy be?
Certainly, the odds are better if they either:
All say the same number (100 chances of getting 1 number right) or,
Split up into groups of 2, 5, 10, 20, 25 (pick one) and each group guesses a different number that they can see.
Are they not?
No. It's not such an easy problem. If you have no idea how to attack the problem then I'd recommend looking at my hints and trying to solve it for 3 prisoners. Guessing the solution is unlikely to work.
- hrothgar
#17
Posted 2007-November-20, 15:21
#18
Posted 2007-November-20, 15:22
#19
Posted 2007-November-20, 15:53
(at least if they are criminal prisoners, anyway).
Which is why a complex solution like this, cannot be "right" or "practical", even if it works.
So many experts, not enough X cards.
#20
Posted 2007-November-20, 15:58
Hannie, on Nov 20 2007, 04:18 PM, said:
bid_em_up, on Nov 20 2007, 03:23 PM, said:
Trumpace, on Nov 20 2007, 12:06 PM, said:
Every prisoner will see the numbers of the other 99, but won't see his own number. The prisoners then guess their own numbers simultaneously. (There will be a guard assigned to each prisoner to note down the guess: yes, it is a high security prison)
If at least one prisoner guesses his number right, they are all released immediately. Otherwise, they will need to wait another year for another challenge.
On the evening before, they are allowed to gather together and devise a strategy.
What should the prisoners' strategy be?
Certainly, the odds are better if they either:
All say the same number (100 chances of getting 1 number right) or,
Split up into groups of 2, 5, 10, 20, 25 (pick one) and each group guesses a different number that they can see.
Are they not?
No. It's not such an easy problem. If you have no idea how to attack the problem then I'd recommend looking at my hints and trying to solve it for 3 prisoners. Guessing the solution is unlikely to work.
But you wrote your hints in invisible ink....

Help
