• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 16:59
CEST 22:59
KST 05:59
  • 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
Serral wins HomeStory Cup 2914Serral wins Maestros of the Game 243ByuL, and the Limitations of Standard Play3Team Liquid Map Contest #22: Results and Winners7Code S Season 2 (2026): RO4 and Finals Preview12
Community News
Neeb returns to progaming; rejoins ONSYDE12Weekly Cups (July 20-26): Early returns on 5.0.16b8IntoTheTV X SOOP SC2 League : Weekly & Monthly4Clem: "I don't have that much hope in Blizzard"9ZeroSpace Early Access is Now Live!42
StarCraft 2
General
Clem: "I don't have that much hope in Blizzard" Neeb returns to progaming; rejoins ONSYDE Weekly Cups (July 20-26): Early returns on 5.0.16b Balance hotfix patch 5.0.16b (July 16) Terran or Protoss
Tourneys
RSL Revival: Season 6 - Qualifiers and Main Event PIG STY FESTIVAL 8.0! (13 - 23 August) Sparkling Tuna Cup - Weekly Open Tournament IntoTheTV X SOOP SC2 League : Weekly & Monthly INu's Battles#18 - Cure, herO, Rogue & ByuN
Strategy
[G] Having the right mentality to improve
Custom Maps
Nexus Wars 2021 GUIDE [M] (2) Industrial Park
External Content
Mutation # 536 Railroad Switch The PondCast: SC2 News & Results Mutation # 535 Assembly of Vengeance Mutation # 534 Burning Evacuation
Brood War
General
BW General Discussion Making an Online Broodwar Manager Game ASL22 General Discussion screpdb: new Starcraft reporting tool ASL 22 Proposed Map Pool
Tourneys
Small VOD Thread 2.0 2v2v2v2 Tournament [Megathread] Daily Proleagues Star Con San Diego 2026
Strategy
Fighting Spirit mining rates Odyssey Mineral Stack Saturation Simple Questions, Simple Answers PvT advise for noobs
Other Games
General Games
Path of Exile ZeroSpace Early Access is Now Live! Nintendo Switch Thread Stormgate/Frost Giant Megathread General RTS Discussion Thread
Dota 2
Looking for a Dota Mentor Official 'what is Dota anymore' discussion
League of Legends
TSM pausing esports and CLG Dead
Heroes of the Storm
Heroes of the Storm 2.0
Hearthstone
Deck construction bug
TL Mafia
TL Mafia Power Rank TL Mafia Community Thread NeO.D_StephenKing vs This Guy From 1 Million Dance
Community
General
US Politics Mega-thread Russo-Ukrainian War Thread Artificial Intelligence Thread European Politico-economics QA Mega-thread How to buy a book - shipping from Korea to Europe
Fan Clubs
The IdrA Fan Club The HerO Fan Club!
Media & Entertainment
Anime Discussion Thread Movie Discussion! Series you have seen recently... [Req][Books] Good Fantasy/SciFi books
Sports
2024 - 2026 Football Thread 2026-27 Football Thread placeholder TeamLiquid Health and Fitness Initiative For 2023 Formula 1 Discussion MLB/Baseball 2023
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread Simple Questions Simple Answers FPS when play League Of Legend on laptop
TL Community
Northern Ireland Global Starcraft The Automated Ban List
Blogs
Games, Hormones, and "Dark" …
TrAiDoS
Hello guys!
LIN1s
ASL S22 English Commentary…
namkraft
Poker (part 2)
Nebuchad
An Exploration of th…
waywardstrategy
ramps on octagon
StaticNine
Customize Sidebar...

Website Feedback

Closed Threads



Active: 5247 users

100 Prisoners Problem - Page 3

Blogs > Slithe
Post a Reply
Prev 1 2 3 All
jtan
Profile Blog Joined April 2003
Sweden5891 Posts
February 19 2008 15:09 GMT
#41
Oh shit I missed this, it sounds like fun!

Guess nobody will read this now but I'm gonna try to solve and post it now anyway -_-
Enter a Uh
jtan
Profile Blog Joined April 2003
Sweden5891 Posts
Last Edited: 2008-02-19 15:43:22
February 19 2008 15:34 GMT
#42
Ok here we go! Well the only thing they could really do to go beyond a probability of ~1/2^100 is to associate a boxes with their names. When a prisoner enters he goes to his own named box, opens, goes to the name he finds there....and so on.

This will mean they all survives if the permutation of names in boxes contains no orbits of greater length than 50.

Now for the calculation of the probability

The probability that there IS atleast 1 orbit with greater length than 50 will be exactly:
p=(Sum n=51..100((100 over n)(n-1)!(100-n)!))/100!

+ Show Spoiler [explanation] +

For each term of the sum:

(100 over n) (means the binomial coefficient): Pick n of the boxes.

(n-1)!: put theese n boxes in an orbit. Start with the n'th box where you have n-1 possibilites for a name to another box: everone except itself. For the n-1'th box you can pick any box except itself and the n'th box and so on.

(100-n)!: Permute the remaining 100-n boxes arbitrarily (doesn't matter how many orbits arises here)

The sum will then contain all cases where the longest orbit is 51 or longer. Then divide by all possible permutations=100! to get the probability p.



Expand the binomial coefficient and do some basic arithmetic and it amazingly reduces to almost nothing:

p=Sum n=51..100 (1/n)

Now for a value, compare it with an integral

p < Integral x=50..100 (dx/x) = ln 100-ln 50=ln 100/50 = ln 2

So the chance that they survive=1-p is greater than 1-ln2 ~=0.31

Another quick integral comparison shows that the error in this number will be about 0.005.

A fun thing is that it doesn't matter how many prisoners there are, as long as they can pick half of the boxes. With a million prisoners you get even closer to 1-ln2.

Nice problem, keep posting these!
Enter a Uh
Prev 1 2 3 All
Please log in or register to reply.
Live Events Refresh
OSC
18:30
Mid Season Playoffs
SteadfastSC197
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
mouzHeroMarine 747
SteadfastSC 197
XaKoH 188
ProTech84
BRAT_OK 61
CosmosSc2 11
StarCraft: Brood War
Calm 3657
NaDa 19
Purpose 1
Dota 2
Gorgc9414
Pyrionflax113
League of Legends
Doublelift2820
Counter-Strike
fl0m1833
minikerr25
kRYSTAL_24
Super Smash Bros
C9.Mang0131
Heroes of the Storm
Liquid`Hasu444
Other Games
summit1g5432
gofns2924
Grubby2012
tarik_tv1119
Beastyqt638
Mlord380
UpATreeSC119
JuggernautJason83
Trikslyr62
Organizations
StarCraft: Brood War
Kim Chul Min (afreeca) 7
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
[ Show 15 non-featured ]
StarCraft 2
• intothetv
• AfreecaTV YouTube
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• blackmanpl 47
• FirePhoenix12
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• TFBlade1387
• imaqtpie1369
• Shiphtur609
Upcoming Events
Replay Cast
3h 1m
Escore
13h 1m
CrankTV Team League
14h 1m
Big Brain Bouts
19h 1m
Spirit vs sOs
GgMaChine vs Percival
Serral vs MaxPax
OSC
1d 1h
Replay Cast
1d 3h
Afreeca Starleague
1d 7h
RSL Revival
1d 12h
ByuN vs SHIN
Solar vs Lambo
WardiTV Summer Champion…
1d 14h
Afreeca Starleague
2 days
[ Show More ]
RSL Revival
2 days
Clem vs Serral
herO vs Rogue
WardiTV Summer Champion…
2 days
WardiTV Weekly
3 days
Sparkling Tuna Cup
4 days
PiGosaur Cup
5 days
Replay Cast
5 days
Kung Fu Cup
5 days
Replay Cast
6 days
The PondCast
6 days
Liquipedia Results

Completed

Proleague 2026-07-29
SCTL 2026 Spring
Eternal Conflict S2 Finale

Ongoing

CSL 2026 Summer (S21)
KCM Race Survival 2026 Season 3
RSL Revival: Season 6
CranK Gathers Season 4: BW vs SC2 Team League
BLAST Bounty Summer 2026
BLAST Bounty Summer Qual
Stake Ranked Episode 3
XSE Pro League 2026
IEM Cologne Major 2026
Stake Ranked Episode 2
CS Asia Championships 2026
Asian Champions League 2026
IEM Atlanta 2026
PGL Astana 2026

Upcoming

Escore Tournament S3: W5
ASL Season 22: Qualifier #1
ASL Season 22: Qualifier #2
Acropolis #5
Escore Tournament S3: W6
Escore Tournament S3: W7
Escore Tournament S3: W8
HSC XXX
SC4ALL II: StarCraft II
Kung Fu Cup 2026 Grand Finals
PiG Sty Festival 8.0
Light Tournament 2026
ESL Pro League Season 24
Stake Ranked Episode 4
Logitech G Connect 2026
SL StarSeries Fall 2026
FISSURE Playground #5
BLAST Open Fall 2026
Esports World Cup 2026
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 © 2026 TLnet. All Rights Reserved.