• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 07:59
CEST 13:59
KST 20: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
TL.net Map Contest #21: Voting6[ASL20] Ro4 Preview: Descent11Team TLMC #5: Winners Announced!3[ASL20] Ro8 Preview Pt2: Holding On9Maestros of the Game: Live Finals Preview (RO4)5
Community News
Weekly Cups (Oct 6-12): Four star herO65.0.15 Patch Balance Hotfix (2025-10-8)77Weekly Cups (Sept 29-Oct 5): MaxPax triples up3PartinG joins SteamerZone, returns to SC2 competition325.0.15 Balance Patch Notes (Live version)119
StarCraft 2
General
5.0.15 Patch Balance Hotfix (2025-10-8) Revisiting the game after10 years and wow it's bad TL.net Map Contest #21: Voting The New Patch Killed Mech! Ladder Impersonation (only maybe)
Tourneys
LiuLi Cup - September 2025 Tournaments SC4ALL $6,000 Open LAN in Philadelphia Sparkling Tuna Cup - Weekly Open Tournament Master Swan Open (Global Bronze-Master 2) Tenacious Turtle Tussle
Strategy
Custom Maps
External Content
Mutation # 495 Rest In Peace Mutation # 494 Unstable Environment Mutation # 493 Quick Killers Mutation # 492 Get Out More
Brood War
General
BW caster Sayle BW General Discussion Map with fog of war removed for one player? Pros React To: BarrackS + FlaSh Coaching vs SnOw After 20 seasons we have a lot of great maps
Tourneys
[ASL20] Semifinal A [ASL20] Semifinal B SC4ALL $1,500 Open Bracket LAN [Megathread] Daily Proleagues
Strategy
Relatively freeroll strategies Current Meta BW - ajfirecracker Strategy & Training Siegecraft - a new perspective
Other Games
General Games
Dawn of War IV Stormgate/Frost Giant Megathread Nintendo Switch Thread ZeroSpace Megathread Path of Exile
Dota 2
Official 'what is Dota anymore' discussion LiquidDota to reintegrate into TL.net
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Deck construction bug Heroes of StarCraft mini-set
TL Mafia
SPIRED by.ASL Mafia {211640} TL Mafia Community Thread
Community
General
US Politics Mega-thread Things Aren’t Peaceful in Palestine Russo-Ukrainian War Thread Men's Fashion Thread Sex and weight loss
Fan Clubs
The herO Fan Club! The Happy Fan Club!
Media & Entertainment
[Manga] One Piece Anime Discussion Thread Movie Discussion!
Sports
2024 - 2026 Football Thread Formula 1 Discussion MLB/Baseball 2023 NBA General Discussion TeamLiquid Health and Fitness Initiative For 2023
World Cup 2022
Tech Support
SC2 Client Relocalization [Change SC2 Language] Linksys AE2500 USB WIFI keeps disconnecting Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List Recent Gifted Posts
Blogs
Inbreeding: Why Do We Do It…
Peanutsc
From Tilt to Ragequit:The Ps…
TrAiDoS
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1071 users

Math Problem - Page 6

Forum Index > General Forum
Post a Reply
Prev 1 4 5 6 7 Next All
pyrogenetix
Profile Blog Joined March 2006
China5098 Posts
January 23 2008 05:01 GMT
#101
On January 23 2008 13:51 Muirhead wrote:
Here is the solution as I PMed Bottleabuser. An alternative formulation of the solution can be found on wikipedia.
+ Show Spoiler +

Ok here is the solution. I hope it is satisfactory . It's supposed to be more of a demonstration of a cool paradox than a puzzle.

Represent a sequence of hats by 1s and 0s, with 1s being black and 0s being white. Then the judges input is going to be an infinite sequence of 1s and 0s. Call two sequences "almost the same" if, after a finite number of initial entries, they become the same. For example, two almost the same sequences could be different in the billionth place but never differ afterwards.

Now, all of the possible infinite sequences can be partitioned into classes, where any two elements of the same class are almost the same. The prisoners all get together and choose one special sequence out of each class.

When a given prisoner sees the hats in front of him, he can immediately tell the class of the sequence the judge has chosen, because that does not depend on the hats before him. He then guesses that his hat is the one from the chosen sequence out of that class.

Now, the chosen sequence must eventually agree entirely with the judges sequence, so from a certain point onwards all prisoners will be set free.


That one-time pad stuff has nothing to do with anything BECAUSE THERE ARE INFINITELY MANY PRISONERS . That is why the problem is so cool... the finite case is obviously very different.

i just read your solution three times and still didn't fully understand it. issit something like infinite monkey theorem ? where if you get a monkey to sit at a keyboard and make it randomly punch out meaningless stuff then at some point it would type out a poem or something, problem is it takes a bit of time.

if thats the case then your original post is quite wrong =(
you said 100% survivors guaranteed
Yea that looks just like Kang Min... amazing game sense... and uses mind games well, but has the micro of a washed up progamer.
dybydx
Profile Blog Joined December 2007
Canada1764 Posts
January 23 2008 05:04 GMT
#102
ok muri, prove this

suppose i am the judge and i assign hats by tossing a coin. show how you can guarantee ~100% survival rate.

seeing the hat of everyone else confer no information at all about your hat regardless the size of the group.
...from the land of imba
Muirhead
Profile Blog Joined October 2007
United States556 Posts
January 23 2008 05:04 GMT
#103
dybydx... read my solution carefully and tell me where the flaw is. I am most familiar with my own writing. I will discuss any point of it with you over PM. However, I can tell you absolutely that the wikipedia article is saying the same thing I am. Here is a third explanation: http://cornellmath.wordpress.com/2007/09/13/the-axiom-of-choice-is-wrong/


Possible clarifications that you might be the source of confusion:
Of course, the entire sequence of hats is determined before anyone writes down anything on a piece of paper. It is necessary that the prisoners see those hats ahead of them before making there guesses. Each prisoner sees infinitely many hats, and only does not see finitely many hats.
starleague.mit.edu
BottleAbuser
Profile Blog Joined December 2007
Korea (South)1888 Posts
January 23 2008 05:05 GMT
#104
Wow, my head's gonna explode.
+ Show Spoiler +
The solution requires the prisoners to be infinitely fast and have infinite memory, which I can imagine.

I'm having a problem with dividing infinity into a finite number of classes, though, which is what the solution seems to require. Maybe that's why I fail at math
Compilers are like boyfriends, you miss a period and they go crazy on you.
Muirhead
Profile Blog Joined October 2007
United States556 Posts
Last Edited: 2008-01-23 05:09:10
January 23 2008 05:07 GMT
#105
Ok more clarifications:

The prisoners do indeed have infinite memory etc.

Not all prisoners escape. However, 100% do because only finitely many die.

BottleAbuser... there are infinitely many classes, each of which contains infinitely many sequences. However, each sequence fits into exactly one of the classes.

Finally, that coin thing is exactly what I am proving dxbydy... infinity is counterintuitive. Read my solution carefully. The fact that nobody has any real information on their own hat means that each has a 50% chance of surviving. Nevertheless, the strange properties of infinity mean that only finitely many die. A very cool paradox in my opinion.
starleague.mit.edu
pyrogenetix
Profile Blog Joined March 2006
China5098 Posts
January 23 2008 05:07 GMT
#106
On January 23 2008 05:31 Muirhead wrote:
One suddenly realizes that, with a proper strategy, they can ensure that almost 100% of them will survive. What is that strategy?

OK GAIZ wtf do we do?
WAIT i got it. *intense talk* ... so after we do this, our brothers later down the road right around year 982738946826348652837429 are all gonna live! =D but up till then everybody will probably fucking die.
i can only imagine the faces on the prisoners who just heard this strategy.
Yea that looks just like Kang Min... amazing game sense... and uses mind games well, but has the micro of a washed up progamer.
dybydx
Profile Blog Joined December 2007
Canada1764 Posts
January 23 2008 05:08 GMT
#107
ok bottleabuser,

if you read the wiki solution, it claims at most the first n, prisoners will die, and n+1 onwards will live. this means the prisoners solved the sequence (found the pattern). if i toss a coin instead, you cant solve "randomness".
...from the land of imba
dybydx
Profile Blog Joined December 2007
Canada1764 Posts
January 23 2008 05:09 GMT
#108
muri,

if i do it by cointoss, 1/2 of em will die, thus infinitely many.
...from the land of imba
Muirhead
Profile Blog Joined October 2007
United States556 Posts
Last Edited: 2008-01-23 05:15:02
January 23 2008 05:11 GMT
#109
dybydx... you are simply wrong... this is why it is a paradox. If the judge does it by cointoss only finitely many prisoners will die.
Read my solution carefully... the key is that all the coin tosses are done before the guesses start. This gives no help in the finite case, but it mysteriously does in the infinite case.

If you do not understand my solution, try reading one of the other two links I gave... to wikipedia and that grad student's blog.
starleague.mit.edu
dybydx
Profile Blog Joined December 2007
Canada1764 Posts
January 23 2008 05:14 GMT
#110
muri,

exactly, an infnite number of coin tosses are done before hats are placed. but suppose you see the hats of everyone else, except yours. what colour is your hat? theres no way to guarantee 100%

the wiki soloution says only a finite will die. means you can determine what "finite" is. coin tossing is random and by definition randomness is NOT deterministic. therefore an infinite will die.
...from the land of imba
BottleAbuser
Profile Blog Joined December 2007
Korea (South)1888 Posts
January 23 2008 05:16 GMT
#111
Okay, infinitely many classes. But still...

+ Show Spoiler +
If there are infinitely many classes, how do the prisoners all choose the correct one? There must be some relation (function) that maps each sequence into exactly one class. Is such a function definable? I'm guessing it will also take an infinite amount of memory and time to solve, too, but that's no problem here... I guess if we could define some such function, this problem would be solved. I can't quite grasp it though. Any examples to make it easier to imagine?
Compilers are like boyfriends, you miss a period and they go crazy on you.
Muirhead
Profile Blog Joined October 2007
United States556 Posts
January 23 2008 05:17 GMT
#112
Ok dybydx... I understand why you think that. You are using your intuition about vague terms like "deterministic." In fact, that finite thing could be as large as the judge wants it to be, and the prisoners will have no way of knowing how big it is. But they will know that it is finite. Before continuing to argue, please read the solutions I gave and look for flaws in them. Once you understand the solutions, then we can continue to discuss. Maybe we should do it by PM so as not to clutter the thread. I'm sorry this caused so much confusion... it is a tricky point :/
starleague.mit.edu
dybydx
Profile Blog Joined December 2007
Canada1764 Posts
January 23 2008 05:21 GMT
#113
muri, this is taken from your link....
http://cornellmath.wordpress.com/2007/09/13/the-axiom-of-choice-is-wrong/
How well does this work? Well, the sequence they are actually in and the representative element they picked with the axiom of choice must be equivalent, so they are the same after a finite number of entries. Therefore, after a finite number of incorrect guesses, each prisoner will miraculously guess his hat color correctly!

if its random, you cant rely on it to repeat. it may, it may not. thus, the question require an assumption that the judge can not "truly randomly" assign hats.
...from the land of imba
Muirhead
Profile Blog Joined October 2007
United States556 Posts
January 23 2008 05:21 GMT
#114
Definition: Two sequences are in the same class if and only if they differ in only a finite number of places

I hope that is clear.

Ok so the class of a sequence is defined by the eventual behavior of a sequence...
Each prisoner knows exactly how the sequence eventually behaves, even if they don't know how it started out. If you've taken calculus, it's sort of like a limit... the class of the sequence only has to do with eventual behavior.
starleague.mit.edu
Muirhead
Profile Blog Joined October 2007
United States556 Posts
January 23 2008 05:22 GMT
#115
dybydx... Nobody is saying the sequence repeats... the judge can assign hats however the hell he wants
starleague.mit.edu
dybydx
Profile Blog Joined December 2007
Canada1764 Posts
January 23 2008 05:27 GMT
#116
muri,

your solution set says the sequence repeats.
...from the land of imba
pyrogenetix
Profile Blog Joined March 2006
China5098 Posts
January 23 2008 05:28 GMT
#117
i got a few questions

what is a "class"?
what is a "sequence"?
if the number of people who die is finite, around how many would you estimate? is the number obscenely large but just because you have infinitely many chances to guess then get it correct from then onwards (i duno how this works but it seems you guys agree on this) the "escaped infinite" will drown out the "obscenely large number of dead" is that right?

hm if the prisoners have super memory and super processing power then i guess memorizing a pattern then finding a pattern wouldn't be impossible but you should have included this in OP =D
Yea that looks just like Kang Min... amazing game sense... and uses mind games well, but has the micro of a washed up progamer.
Muirhead
Profile Blog Joined October 2007
United States556 Posts
Last Edited: 2008-01-23 05:34:13
January 23 2008 05:32 GMT
#118
The classes and sequences are as described in my solution, which I'm repasting here:


+ Show Spoiler +
Ok here is the solution. I hope it is satisfactory . It's supposed to be more of a demonstration of a cool paradox than a puzzle.

Represent a sequence of hats by 1s and 0s, with 1s being black and 0s being white. Then the judges input is going to be an infinite sequence of 1s and 0s. Call two sequences "almost the same" if, after a finite number of initial entries, they become the same. For example, two almost the same sequences could be different in the billionth place but never differ afterwards.

Now, all of the possible infinite sequences can be partitioned into classes, where any two elements of the same class are almost the same. The prisoners all get together and choose one special sequence out of each class.

When a given prisoner sees the hats in front of him, he can immediately tell the class of the sequence the judge has chosen, because that does not depend on the hats before him. He then guesses that his hat is the one from the chosen sequence out of that class.

Now, the chosen sequence must eventually agree entirely with the judges sequence, so from a certain point onwards all prisoners will be set free.


I would suggest you look at one of the other two solution sources I gave instead first though, because they are probably clearer than mine...

There is no memorizing of a pattern or processing needed... just the infinite memory required to remember the prisoner's full plan as I described it. If you read my solution it doesn't involve any sort of "cheating" or trickiness. It also doesn't rely on the sequence repeating, dybydx... I just don't understand why you think that


To be clear, two sequences are in the same class if and only if they differ in finitely many places.

As for approximating the finite number of prisoners that survive... that is impossible. It could be anything... as high as the judge wants it to be... but it must be finite.
starleague.mit.edu
dybydx
Profile Blog Joined December 2007
Canada1764 Posts
January 23 2008 05:44 GMT
#119
muri,

based on ur description, there are infinitely many classes for each of the prisoners to choose from, and none of the prisoners can guarantee their survival regardless of their position in line.

therefore you can not guarantee a finite number of deaths.
...from the land of imba
Macavenger
Profile Blog Joined January 2008
United States1132 Posts
Last Edited: 2008-01-23 06:14:43
January 23 2008 05:52 GMT
#120
On January 23 2008 10:45 dybydx wrote:
btw that 12 coin question suggests there may be a better solution to the simple logarithmic answer to the 1000 coin question. ^^
although personally i would accept the logarithm solution


I don't see how it suggests any such thing. The method used in the 12 coin problem is essentially a mapping of 27 possible cases of the weighing to possible solutions, I.E. >== : Coin 1 is heavy, <== : Coin 1 is light, etc. If you add the knowledge of whether the fake coin is heavy or light as in the normal problem, you could theoretically accommodate up to 27 coins (1 for each case) by this method with the proper configuration, the same maximum that can be dealt with in 3 weighings under the logarithmic method.

Interestingly, there's a way to do the 12 coin problem using a method resembling the standard method for fake coins of specified weight. It requires a bit of careful thinking about which direction the scale tips and how that could be caused in each set of coins. I didn't know about the other method and had a lot of fun working it out earlier. It's important to note for this solution that the problem doesn't demand that you determine whether the odd coin is light or heavy, just which one it is - although my solution does it in 11/12 cases anyway. Spoiler below for anyone who wants to check an answer.

+ Show Spoiler +
Split the coins into 3 groups of 4 as you normally would. I label them a1, a2, a3, a4, b1, etc. Start by weighing a1-4 against b1-4.

If the scale balances: weigh c1:c2, then c1:c3. If both balance the oddball is c4, if both tip it's c1, if just one of them does it's c2 or c3 as appropriate.

If it doesn't balance on the initial weighing: weigh a1a2b1:a3a4b2. If it balances now, the odd coin is either b3 or b4, by weighing them against each other and taking into account which direction the scale tilted earlier, you can find which one.

If on the a1a2b1:a3a4b2 weighing it tips the same direction as the first time, the odd coin is a1, a2, or b2. Weigh a1:a2, if they balance it's b2, otherwise you can decide by the way it leaned earlier as with b3/4 above. If a1a2b1-a3a4b2 tips the opposite way from the original a1-4:b1-4, the odd coin is one of a3, a4, b2, so you weigh a3:a4 and proceed as above.

Hopefully I actually typed that all up correctly, it worked out when I did it on paper.
Prev 1 4 5 6 7 Next All
Please log in or register to reply.
Live Events Refresh
The PondCast
10:00
Episode 67
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
Lowko252
ProTech62
StarCraft: Brood War
Britney 32371
Calm 5495
Rain 2215
Hyuk 1943
firebathero 1354
Flash 1051
BeSt 545
Soma 465
PianO 360
Stork 299
[ Show more ]
EffOrt 266
Light 245
Mini 241
Hyun 236
Mind 229
Last 160
Snow 129
ZerO 107
Soulkey 105
Nal_rA 97
ggaemo 78
Pusan 70
Mong 63
Killer 62
Barracks 58
zelot 56
Shinee 55
hero 50
Larva 45
Rush 42
Sea.KH 37
Icarus 27
Aegong 27
JYJ26
Backho 26
sorry 23
sas.Sziky 20
Free 17
Shine 16
Movie 14
yabsab 14
Hm[arnc] 10
IntoTheRainbow 10
SilentControl 9
Terrorterran 7
Zeus 1
Dota 2
XcaliburYe783
BananaSlamJamma592
XaKoH 327
League of Legends
JimRising 403
Reynor75
Counter-Strike
olofmeister3301
shoxiejesuss513
x6flipin240
byalli193
allub139
oskar55
edward21
Other Games
summit1g5861
singsing1922
B2W.Neo570
crisheroes280
DeMusliM248
Fuzer 90
Mew2King65
rGuardiaN28
ZerO(Twitch)9
Organizations
Counter-Strike
PGL16880
StarCraft: Brood War
UltimateBattle 96
StarCraft 2
WardiTV88
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 13 non-featured ]
StarCraft 2
• LUISG 26
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• iopq 4
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Jankos1723
Upcoming Events
OSC
1m
Wardi Open
23h 1m
CranKy Ducklings
1d 22h
Safe House 2
2 days
Sparkling Tuna Cup
2 days
Safe House 2
3 days
Tenacious Turtle Tussle
6 days
The PondCast
6 days
Liquipedia Results

Completed

CSL 2025 AUTUMN (S18)
WardiTV TLMC #15
HCC Europe

Ongoing

BSL 21 Points
ASL Season 20
C-Race Season 1
IPSL Winter 2025-26
EC S1
Thunderpick World Champ.
CS Asia Championships 2025
ESL Pro League S22
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

Upcoming

SC4ALL: Brood War
BSL Season 21
BSL 21 Team A
RSL Offline Finals
RSL Revival: Season 3
Stellar Fest
SC4ALL: StarCraft II
CranK Gathers Season 2: SC II Pro Teams
eXTREMESLAND 2025
ESL Impact League Season 8
SL Budapest Major 2025
BLAST Rivals Fall 2025
IEM Chengdu 2025
PGL Masters Bucharest 2025
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.