BBO Discussion Forums: 100 Prisoners and Eccentric Warden - BBO Discussion Forums

Jump to content

  • 2 Pages +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

100 Prisoners and Eccentric Warden recreational math puzzle.

#1 User is offline   Trumpace 

  • Hideous Rabbit
  • PipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 1,040
  • Joined: 2005-January-22
  • Gender:Male

Posted 2007-November-20, 11:06

A prison with 100 inmates has an eccentric warden (what's new?).

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?
0

#2 User is offline   jonottawa 

  • PipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 1,025
  • Joined: 2003-March-26
  • Gender:Male
  • Location:Ottawa, ON

Posted 2007-November-20, 11:07

Trumpace, on Nov 20 2007, 05:06 PM, said:

A prison with 100 inmates has an eccentric warden (what's new?).

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.
"Maybe we should all get together and buy Kaitlyn a box set of "All in the Family" for Chanukah. Archie didn't think he was a racist, the problem was with all the chinks, dagos, niggers, kikes, etc. ruining the country." ~ barmar
0

#3 User is offline   Trumpace 

  • Hideous Rabbit
  • PipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 1,040
  • Joined: 2005-January-22
  • Gender:Male

Posted 2007-November-20, 11:22

jonottawa, on Nov 20 2007, 12:07 PM, said:

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.

No. They are not allowed to signal each other in anyway.


Are you willing to bet that it is an impossible problem?
0

#4 User is offline   gwnn 

  • Csaba the Hutt
  • PipPipPipPipPipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 13,027
  • Joined: 2006-June-16
  • Gender:Male
  • Interests:bye

Posted 2007-November-20, 13:13

nice one. estimated date of my solution: 19th september, 2015
... and I can prove it with my usual, flawless logic.
      George Carlin
0

#5 User is offline   hrothgar 

  • PipPipPipPipPipPipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 15,725
  • Joined: 2003-February-13
  • Gender:Male
  • Location:Natick, MA
  • Interests:Travel
    Cooking
    Brewing
    Hiking

Posted 2007-November-20, 13:26

I don't think that the problem is being described properly.

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.
Alderaan delenda est
0

#6 User is offline   han 

  • Under bidder
  • PipPipPipPipPipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 11,797
  • Joined: 2004-July-25
  • Gender:Male
  • Location:Amsterdam, the Netherlands

Posted 2007-November-20, 13:32

hrothgar, on Nov 20 2007, 02:26 PM, said:

I don't think that the problem is being described properly.

I think it is and you are missing the point.


Warning, hidding hint following:

Spoiler

Please note: I am interested in boring, bog standard, 2/1.

- hrothgar
0

#7 User is offline   jonottawa 

  • PipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 1,025
  • Joined: 2003-March-26
  • Gender:Male
  • Location:Ottawa, ON

Posted 2007-November-20, 13:47

I agree with hrothgar.

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.
"Maybe we should all get together and buy Kaitlyn a box set of "All in the Family" for Chanukah. Archie didn't think he was a racist, the problem was with all the chinks, dagos, niggers, kikes, etc. ruining the country." ~ barmar
0

#8 User is offline   Echognome 

  • Deipnosophist
  • PipPipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 4,386
  • Joined: 2005-March-22

Posted 2007-November-20, 14:01

Perhaps I'm missing something. If only one needs to guess correctly, why don't they label themselves 1 to 100 and each guess their label? Then they've covered the entire range of numbers and someone will have guessed correctly. Obviously that is too easy, so you'll have to tell me in the setup why this isn't the case.
"Half the people you know are below average." - Steven Wright
0

#9 User is offline   inquiry 

  • PipPipPipPipPipPipPipPipPipPip
  • Group: Admin
  • Posts: 14,566
  • Joined: 2003-February-13
  • Gender:Male
  • Location:Amelia Island, FL
  • Interests:Bridge, what else?

Posted 2007-November-20, 14:03

Quote

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.


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...
--Ben--

#10 User is offline   jonottawa 

  • PipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 1,025
  • Joined: 2003-March-26
  • Gender:Male
  • Location:Ottawa, ON

Posted 2007-November-20, 14:07

inquiry, on Nov 20 2007, 08:03 PM, said:

Quote

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.


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...

?????
"Maybe we should all get together and buy Kaitlyn a box set of "All in the Family" for Chanukah. Archie didn't think he was a racist, the problem was with all the chinks, dagos, niggers, kikes, etc. ruining the country." ~ barmar
0

#11 User is offline   han 

  • Under bidder
  • PipPipPipPipPipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 11,797
  • Joined: 2004-July-25
  • Gender:Male
  • Location:Amsterdam, the Netherlands

Posted 2007-November-20, 14:12

No, it is not that stupid.

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:

Spoiler


This is a big hint but the problem is still interesting afterwards.
Please note: I am interested in boring, bog standard, 2/1.

- hrothgar
0

#12 User is offline   jonottawa 

  • PipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 1,025
  • Joined: 2003-March-26
  • Gender:Male
  • Location:Ottawa, ON

Posted 2007-November-20, 14:18

Glad I didn't bet. Fooled again. :)

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."
"Maybe we should all get together and buy Kaitlyn a box set of "All in the Family" for Chanukah. Archie didn't think he was a racist, the problem was with all the chinks, dagos, niggers, kikes, etc. ruining the country." ~ barmar
0

#13 User is offline   bid_em_up 

  • PipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 2,351
  • Joined: 2006-March-21
  • Location:North Carolina

Posted 2007-November-20, 14:23

Trumpace, on Nov 20 2007, 12:06 PM, said:

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?

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?
Is the word "pass" not in your vocabulary?
So many experts, not enough X cards.
0

#14 User is offline   joshs 

  • PipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 1,082
  • Joined: 2006-January-23

Posted 2007-November-20, 14:28

inquiry, on Nov 20 2007, 03:03 PM, said:

Quote

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.


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)...
0

#15 User is offline   Echognome 

  • Deipnosophist
  • PipPipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 4,386
  • Joined: 2005-March-22

Posted 2007-November-20, 14:48

Oh ok. I get it now. It's not that we have to guess someone's number. We have to specifically guess our own number.
"Half the people you know are below average." - Steven Wright
0

#16 User is offline   han 

  • Under bidder
  • PipPipPipPipPipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 11,797
  • Joined: 2004-July-25
  • Gender:Male
  • Location:Amsterdam, the Netherlands

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:

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?

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.
Please note: I am interested in boring, bog standard, 2/1.

- hrothgar
0

#17 User is offline   matmat 

  • ded
  • PipPipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 3,459
  • Joined: 2005-August-11
  • Gender:Not Telling

Posted 2007-November-20, 15:21

my gut instinct is to pick a number i haven't seen on anyone else's forehead. I might change my mind if some significant fraction of my fellow inmates has the same number indicating that, possibly, the assignment procedure was non-random. (i've not done any math on any of this tho...)
0

#18 User is offline   jonottawa 

  • PipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 1,025
  • Joined: 2003-March-26
  • Gender:Male
  • Location:Ottawa, ON

Posted 2007-November-20, 15:22

Here's my solution. There may be other ways to solve it.

Spoiler

"Maybe we should all get together and buy Kaitlyn a box set of "All in the Family" for Chanukah. Archie didn't think he was a racist, the problem was with all the chinks, dagos, niggers, kikes, etc. ruining the country." ~ barmar
0

#19 User is offline   bid_em_up 

  • PipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 2,351
  • Joined: 2006-March-21
  • Location:North Carolina

Posted 2007-November-20, 15:53

The problem with this sort of solution is that "prisoners" are likely to be incapable of actually performing this kind of math.

(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.

B)
Is the word "pass" not in your vocabulary?
So many experts, not enough X cards.
0

#20 User is offline   joshs 

  • PipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 1,082
  • Joined: 2006-January-23

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:

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?

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....

B)
0

  • 2 Pages +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users