• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 08:21
CEST 14:21
KST 21:21
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
[ASL19] Finals Recap: Standing Tall9HomeStory Cup 27 - Info & Preview18Classic wins Code S Season 2 (2025)16Code S RO4 & Finals Preview: herO, Rogue, Classic, GuMiho0TL Team Map Contest #5: Presented by Monster Energy6
Community News
Flash Announces Hiatus From ASL50Weekly Cups (June 23-29): Reynor in world title form?12FEL Cracov 2025 (July 27) - $8000 live event16Esports World Cup 2025 - Final Player Roster16Weekly Cups (June 16-22): Clem strikes back1
StarCraft 2
General
The GOAT ranking of GOAT rankings How does the number of casters affect your enjoyment of esports? The SCII GOAT: A statistical Evaluation Statistics for vetoed/disliked maps Esports World Cup 2025 - Final Player Roster
Tourneys
RSL: Revival, a new crowdfunded tournament series https://www.facebook.com/MiracleSheetsOnline/ [GSL 2025] Code S: Season 2 - Semi Finals & Finals $5,100+ SEL Season 2 Championship (SC: Evo) FEL Cracov 2025 (July 27) - $8000 live event
Strategy
How did i lose this ZvP, whats the proper response Simple Questions Simple Answers
Custom Maps
[UMS] Zillion Zerglings
External Content
Mutation # 480 Moths to the Flame Mutation # 479 Worn Out Welcome Mutation # 478 Instant Karma Mutation # 477 Slow and Steady
Brood War
General
BGH Auto Balance -> http://bghmmr.eu/ Player “Jedi” cheat on CSL Unit and Spell Similarities Help: rep cant save Flash Announces Hiatus From ASL
Tourneys
[BSL20] Grand Finals - Sunday 20:00 CET [Megathread] Daily Proleagues Small VOD Thread 2.0 [BSL20] GosuLeague RO16 - Tue & Wed 20:00+CET
Strategy
Simple Questions, Simple Answers I am doing this better than progamers do.
Other Games
General Games
Stormgate/Frost Giant Megathread Nintendo Switch Thread Path of Exile What do you want from future RTS games? Beyond All Reason
Dota 2
Official 'what is Dota anymore' discussion
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Heroes of StarCraft mini-set
TL Mafia
TL Mafia Community Thread Vanilla Mini Mafia
Community
General
US Politics Mega-thread Things Aren’t Peaceful in Palestine Russo-Ukrainian War Thread Trading/Investing Thread The Games Industry And ATVI
Fan Clubs
SKT1 Classic Fan Club! Maru Fan Club
Media & Entertainment
Anime Discussion Thread [Manga] One Piece [\m/] Heavy Metal Thread
Sports
2024 - 2025 Football Thread NBA General Discussion Formula 1 Discussion TeamLiquid Health and Fitness Initiative For 2023 NHL Playoffs 2024
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
Blogs
Culture Clash in Video Games…
TrAiDoS
from making sc maps to makin…
Husyelt
Blog #2
tankgirl
StarCraft improvement
iopq
Trip to the Zoo
micronesia
Customize Sidebar...

Website Feedback

Closed Threads



Active: 695 users

100 Prisoners Problem

Blogs > Slithe
Post a Reply
1 2 3 Next All
Slithe
Profile Blog Joined February 2007
United States985 Posts
January 30 2008 18:08 GMT
#1
Another math problem for you guys. As a side note, is it just me or are prisoners a popular choice for these kind of problems?


There are 100 prisoners in a room. It has been decided by the judge that their fates will be based on a game of luck. The rules of the game are as follows.

There is another room with 100 boxes in a line. Each box contains exactly one piece of paper with the name of one of the prisoners written on it. In some arbitrary order, the prisoners enter the room one at a time and proceed to open 50 of the boxes, in search of their own name. If a prisoner finds his name within 50 box openings, he has succeeded.

If all of the prisoners succeed in finding their own name, then they all get to live. However, if even one person fails to find their name, it's the death penalty for all of them.

The prisoners get to discuss beforehand what strategy they want to use, but there is no communication allowed after the game has begun.

If all the prisoners were to randomly pick 50 boxes, then the total survival chance of the group is (1/2)^100, which is laughably small. The question is, can you devise a strategy for the prisoners that at least grants then some reasonable chance of survival? What is their probability of survival under your strategy?

Points of clarification
-Every prisoner's name appears in exactly one box. There's no case of a prisoner's name being in two boxes.
-There is no swapping of papers among boxes or writing stuff on the paper, or anything that changes the papers or the boxes. The room of boxes is in the exact same state for every prisoner.


As a final note, I do know the solution strategy, but I do not know exactly what the probability of survival is. If you want a ball park figure as a hint:
+ Show Spoiler +
I think it's above 20%



*****
FieryBalrog
Profile Blog Joined July 2007
United States1381 Posts
January 30 2008 18:23 GMT
#2
After a prisoner opens a box with his name on it, does it get closed and stay in the line of boxes?
I will eat you alive
Slithe
Profile Blog Joined February 2007
United States985 Posts
January 30 2008 18:31 GMT
#3
Yes, everything in the room remains unchanged.
FieryBalrog
Profile Blog Joined July 2007
United States1381 Posts
January 30 2008 18:43 GMT
#4
ahh I dont get it. If theres no communication allowed then what does it matter what strategy they use? hmmmmm
I will eat you alive
Lemonwalrus
Profile Blog Joined August 2006
United States5465 Posts
Last Edited: 2008-01-30 18:47:45
January 30 2008 18:44 GMT
#5
I have two theories, one that will simply remove the possibility of randomness hurting their chances, and one that furthers the first theory so that, assuming success of prisoners before them, each prisoner is picking the fifty boxes most likely to hold their name.

Theory #1
+ Show Spoiler +
Prisoner #1 picks boxes 1-50, Prisoner #2 picks boxes 2-51, prisoner #3 picks boxes 3-52, and so on, so that prisoner #100 will pick box 100 and boxes 1-49. This removes the possibility that through randomness a large amount of prisoners will choose the same box or boxes incorrectly over and over again.


Theory #2
+ Show Spoiler +
As far as I know, there are a large number of ways to do this, each with equal probability of success, but the theory holds true for each of them, so I will just explain one of them. Prisoner #1 picks boxes 1-50. Since we are assuming that prisoner #1 was successful, prisoner #2 now assumes that of boxes 1-50, one of them is sure not to hold his name, so he therefore is best to pick boxes 51-100. I believe that prisoner #3, assuming success of prisoners 1 & 2, knows that his name is not in one box from boxes 1-50, and not in one box from boxes 51-100, so he would be best to choose the same as prisoner #1, so that Prisoner #4 may choose the same boxes as Prisoner #2, and so on. So basically, even prisoners choose 51-100, and odd prisoners choose 1-50.


I am pretty sure I am completely wrong, but I am relatively certain that both of my strategies have a better probability of success than random choosing. Somebody please explain if I was on the right track.

P.S. - I love these blogs. I love trying to come up to solutions for problems.
fanatacist
Profile Blog Joined August 2007
10319 Posts
Last Edited: 2008-01-30 18:53:21
January 30 2008 18:53 GMT
#6
Oh snap I don't have the time to try this right now, but it's very similar to a different problem I have [: I'll post it up soon and perhaps get back to solving this. Good one though n_n.
Peace~
fonger
Profile Blog Joined March 2006
United Kingdom1218 Posts
January 30 2008 18:53 GMT
#7
Doesn't fit exactly with "everything in the room remains unchanged":
+ Show Spoiler +
It says they enter the room, but it doesn't say they leave. Stand on one side of the line of boxes if you want the next prisoner to check the first 50 boxes, and the other side if you want him to check the last 50? Decision based on whether you found his name in the 50 you checked first.

Assuming they do enter in this arbitrary order, and that all the prisoners know that order and each others' names.

50% chance of survival.
Lemonwalrus
Profile Blog Joined August 2006
United States5465 Posts
January 30 2008 18:56 GMT
#8
I was assuming that they left the room when they were done, but I am not totally sure now. Slithe?
.kaz
Profile Blog Joined January 2007
1963 Posts
January 30 2008 19:00 GMT
#9
Are the people who go in allowed to move any boxes or do anything besides checking 50?
Pressure - "rock is the defender of justice" 이병민 / 박영민 Hwaiting~
FirstBorn
Profile Blog Joined March 2007
Romania3955 Posts
January 30 2008 19:04 GMT
#10
These kind of problems make me feel stupid.

I really have no solid idea on this.
SonuvBob: Yes, the majority of TL is college-aged, and thus clearly stupid.
fanatacist
Profile Blog Joined August 2007
10319 Posts
January 30 2008 19:16 GMT
#11
I think there is a real solution to this that isn't some sort of trick like staying in the room or moving shit, if you get what I mean. It's always like that.
Peace~
FieryBalrog
Profile Blog Joined July 2007
United States1381 Posts
January 30 2008 19:16 GMT
#12
On January 31 2008 03:53 fonger wrote:
Doesn't fit exactly with "everything in the room remains unchanged":
+ Show Spoiler +
It says they enter the room, but it doesn't say they leave. Stand on one side of the line of boxes if you want the next prisoner to check the first 50 boxes, and the other side if you want him to check the last 50? Decision based on whether you found his name in the 50 you checked first.

Assuming they do enter in this arbitrary order, and that all the prisoners know that order and each others' names.

50% chance of survival.

That would be "communication" I thought. If they can communicate in anyway its 50%.

But its a pretty clever way of communicating.

On January 31 2008 03:44 Lemonwalrus wrote:
I have two theories, one that will simply remove the possibility of randomness hurting their chances, and one that furthers the first theory so that, assuming success of prisoners before them, each prisoner is picking the fifty boxes most likely to hold their name.

Theory #1
+ Show Spoiler +
Prisoner #1 picks boxes 1-50, Prisoner #2 picks boxes 2-51, prisoner #3 picks boxes 3-52, and so on, so that prisoner #100 will pick box 100 and boxes 1-49. This removes the possibility that through randomness a large amount of prisoners will choose the same box or boxes incorrectly over and over again.


Theory #2
+ Show Spoiler +
As far as I know, there are a large number of ways to do this, each with equal probability of success, but the theory holds true for each of them, so I will just explain one of them. Prisoner #1 picks boxes 1-50. Since we are assuming that prisoner #1 was successful, prisoner #2 now assumes that of boxes 1-50, one of them is sure not to hold his name, so he therefore is best to pick boxes 51-100. I believe that prisoner #3, assuming success of prisoners 1 & 2, knows that his name is not in one box from boxes 1-50, and not in one box from boxes 51-100, so he would be best to choose the same as prisoner #1, so that Prisoner #4 may choose the same boxes as Prisoner #2, and so on. So basically, even prisoners choose 51-100, and odd prisoners choose 1-50.


I am pretty sure I am completely wrong, but I am relatively certain that both of my strategies have a better probability of success than random choosing. Somebody please explain if I was on the right track.

P.S. - I love these blogs. I love trying to come up to solutions for problems.


This is the one I thought of too, but it doesn't improve their chances anywhere remotely near to 20%. Its a tiny improvement. Every other prisoner gets no improvement at all from a 50% success rate, and the other prisoners get 50.5%. lol.
I will eat you alive
fusionsdf
Profile Blog Joined June 2006
Canada15390 Posts
January 30 2008 19:30 GMT
#13
I like the other prisoner problem better
SKT_Best: "I actually chose Protoss because it was so hard for me to defeat Protoss as a Terran. When I first started Brood War, my main race was Terran."
Lemonwalrus
Profile Blog Joined August 2006
United States5465 Posts
January 30 2008 19:31 GMT
#14
I did a little searching and found the actual answer. First of all, it is a bit above 30% survival possibility, and it is pretty beautiful imo. If you guys need me to I can link it, but I would be very impressed if somebody got it themselves.
fanatacist
Profile Blog Joined August 2007
10319 Posts
Last Edited: 2008-01-30 19:32:58
January 30 2008 19:32 GMT
#15
1. Do prisoners know each others names?
2. Do they know who is entering after them? Before them?
3. Do they enter immediately after the previous entrant?
+ Show Spoiler +
My third question is aimed at a strategy that would include counting to 30 Mississippi in unison (as practice in their strategy making, and then to themselves during the "game"). That way they have a fixed amount of time that they all know would be accurate. One idea I had is something along the lines of starting to count as soon as you open the box, continue counting as you look at the name, and at 30 Mississippi you open the next box, and repeat. This would give the prisoners after the first a reasonable idea where his box is, based on which strategy they choose. If they agree to look 1-50, for example, if he leaves in 10 minutes and 10 seconds (20 counts of 30 Mississippi, 10 seconds to enter the room and get to the first box) then it is obvious his box was #20 and no one should check it after him. This isn't final, just a thought piece that could be expanded if they do enter immediately.
Peace~
fanatacist
Profile Blog Joined August 2007
10319 Posts
Last Edited: 2008-01-30 19:33:45
January 30 2008 19:33 GMT
#16
On January 31 2008 04:31 Lemonwalrus wrote:
I did a little searching and found the actual answer. First of all, it is a bit above 30% survival possibility, and it is pretty beautiful imo. If you guys need me to I can link it, but I would be very impressed if somebody got it themselves.

Good, then you can tell people if their strategies are getting anywhere or not xD. And perhaps answer questions by saying relevant/irrelevant if a yes/no is not possible.
Peace~
Lemonwalrus
Profile Blog Joined August 2006
United States5465 Posts
Last Edited: 2008-01-30 19:36:53
January 30 2008 19:36 GMT
#17
The prisoners know each others names, but they do not know who entered before or after them. I like your strategy, but it is not the correct one. (well, it isn't the one given with the problem)
Cascade
Profile Blog Joined March 2006
Australia5405 Posts
January 30 2008 19:39 GMT
#18
hmm, I'm struggling with this one... I cant really find any better ideas than the ones mention. Trying a brute force method now, but I saw the 20% spoiler and I think I can prove that that kinid of survival probabilys are impossible by using a best case scenario:

Fist guys probability is 50%. No way around that.

Second guy's best shot (for himself alone) is clearly to take the other 50 boxes, in which case he will get 50/99.

Best possible case for third guy is if he knows that the two first guys names NOT were in his boxes. This is clearly not possible to combine with maximising second guys chances, but this is an upper bound. So third guys chances are AT BEST 50/98.

Similarly forth guy will have at best 50/97 until 50:th guy that at best know that the previous 49 guys names are in the other boxes, and he'll get 50/51. guy number 51 and abova can all be guaranteed (in best case for them alone) to pick the right boxes.

So total, if we take maximum survival probability for each person to survive, which is clearly not accievable, we get:

50/100 * 50/99 * 50/98 * ... 50/51 = 50^50 * 50! / 100! = 2.9.. * 10^(-9)

So either my best case calculation is flawed, or the estimate of 20% is way of.

I'll go work on the brute force a bit more now. :/ let you know if i find anything.
fanatacist
Profile Blog Joined August 2007
10319 Posts
January 30 2008 19:40 GMT
#19
On January 31 2008 04:36 Lemonwalrus wrote:
The prisoners know each others names, but they do not know who entered before or after them. I like your strategy, but it is not the correct one. (well, it isn't the one given with the problem)

Haha thanks. Back to the scratchpad xD.
Peace~
Aepplet
Profile Joined December 2003
Sweden2908 Posts
January 30 2008 19:40 GMT
#20
could you put a link in a spoiler for the curious ones? =)
(or just pm me ^^)
1 2 3 Next All
Please log in or register to reply.
Live Events Refresh
RSL Revival
10:00
Season 1: Playoffs Day 2
Reynor vs CureLIVE!
Crank 1594
Tasteless1081
ComeBackTV 945
IndyStarCraft 211
Rex155
3DClanTV 120
IntoTheiNu 65
LiquipediaDiscussion
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
Crank 1594
Tasteless 1081
Harstem 295
IndyStarCraft 211
Rex 155
StarCraft: Brood War
Britney 41599
Calm 11181
Rain 7389
firebathero 6227
Jaedong 1925
Horang2 1708
Pusan 564
Larva 465
actioN 429
BeSt 405
[ Show more ]
EffOrt 370
Leta 251
Mini 204
ToSsGirL 149
Hyun 132
Light 103
Rush 72
PianO 69
Snow 69
JYJ63
Mind 44
hero 33
Killer 31
JulyZerg 25
NaDa 20
Shinee 19
HiyA 18
Backho 17
Icarus 15
sSak 13
Movie 12
Barracks 11
SilentControl 11
zelot 10
IntoTheRainbow 10
Sacsri 9
Mong 9
soO 8
yabsab 7
Bale 2
Dota 2
Gorgc1289
qojqva1064
XcaliburYe663
420jenkins530
XaKoH 419
League of Legends
singsing2808
JimRising 344
Other Games
B2W.Neo1278
DeMusliM491
Pyrionflax247
Lowko154
hiko122
ArmadaUGS100
rGuardiaN67
Organizations
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 14 non-featured ]
StarCraft 2
• StrangeGG 37
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Dota 2
• C_a_k_e 2689
League of Legends
• Nemesis466
• Stunt429
Upcoming Events
OSC
39m
WardiTV European League
3h 39m
Scarlett vs Percival
Jumy vs ArT
YoungYakov vs Shameless
uThermal vs Fjant
Nicoract vs goblin
Harstem vs Gerald
FEL
3h 39m
Big Brain Bouts
3h 39m
Korean StarCraft League
14h 39m
CranKy Ducklings
21h 39m
RSL Revival
21h 39m
FEL
1d 3h
RSL Revival
1d 21h
FEL
1d 23h
[ Show More ]
BSL: ProLeague
2 days
Dewalt vs Bonyth
Replay Cast
3 days
Sparkling Tuna Cup
3 days
The PondCast
4 days
Replay Cast
5 days
RSL Revival
5 days
Replay Cast
6 days
RSL Revival
6 days
Liquipedia Results

Completed

Proleague 2025-06-28
HSC XXVII
Heroes 10 EU

Ongoing

JPL Season 2
BSL 2v2 Season 3
BSL Season 20
Acropolis #3
KCM Race Survival 2025 Season 2
CSL 17: 2025 SUMMER
Copa Latinoamericana 4
Championship of Russia 2025
RSL Revival: Season 1
Murky Cup #2
BLAST.tv Austin Major 2025
ESL Impact League Season 7
IEM Dallas 2025
PGL Astana 2025
Asian Champions League '25
BLAST Rivals Spring 2025
MESA Nomadic Masters
CCT Season 2 Global Finals
IEM Melbourne 2025

Upcoming

2025 ACS Season 2: Qualifier
CSLPRO Last Chance 2025
2025 ACS Season 2
CSLPRO Chat StarLAN 3
K-Championship
uThermal 2v2 Main Event
SEL Season 2 Championship
FEL Cracov 2025
Esports World Cup 2025
StarSeries Fall 2025
FISSURE Playground #2
BLAST Open Fall 2025
BLAST Open Fall Qual
Esports World Cup 2025
BLAST Bounty Fall 2025
BLAST Bounty Fall Qual
IEM Cologne 2025
FISSURE Playground #1
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2025 TLnet. All Rights Reserved.