• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 06:04
CEST 12:04
KST 19:04
  • 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: Voting7[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)80Weekly 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 How to Block Australia, Brazil, Singapore Servers The New Patch Killed Mech!
Tourneys
RSL Offline Finals Dates + Ticket Sales! SC4ALL $6,000 Open LAN in Philadelphia Crank Gathers Season 2: SC II Pro Teams LiuLi Cup - September 2025 Tournaments Sparkling Tuna Cup - Weekly Open Tournament
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
Pros React To: BarrackS + FlaSh Coaching vs SnOw [Interview] Grrrr... 2024 Question regarding recent ASL Bisu vs Larva game BW General Discussion BW caster Sayle
Tourneys
[ASL20] Semifinal B [Megathread] Daily Proleagues [ASL20] Semifinal A SC4ALL $1,500 Open Bracket LAN
Strategy
Current Meta Relatively freeroll strategies BW - ajfirecracker Strategy & Training Siegecraft - a new perspective
Other Games
General Games
Stormgate/Frost Giant Megathread Dawn of War IV 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 Russo-Ukrainian War Thread Things Aren’t Peaceful in Palestine Men's Fashion Thread Sex and weight loss
Fan Clubs
The herO Fan Club! The Happy Fan Club!
Media & Entertainment
[Manga] One Piece Series you have seen recently... 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
Rocket League: Traits, Abili…
TrAiDoS
Inbreeding: Why Do We Do It…
Peanutsc
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1133 users

Math Problem - Page 5

Forum Index > General Forum
Post a Reply
Prev 1 2 3 4 5 6 7 Next All
Muirhead
Profile Blog Joined October 2007
United States556 Posts
January 23 2008 03:02 GMT
#81
Yeah ok shooting_speils you've basically got it... There isn't much left to the problem after all the hints.

But anyways I just thought the result was really cool
starleague.mit.edu
Rev0lution
Profile Blog Joined August 2007
United States1805 Posts
January 23 2008 03:08 GMT
#82
1. if the chances of living for each prisoner is 50% then there is a N/2 number of prisoners that will make it out alive.

2. Since the number of prisoners is infinite then even 50% of infinite is still infinite, and 100% of infinite is infinite. It is simply not measurable.

3. in terms of infinite sets, "all" prisoners would be saved because of say N/2 only make it out it is still an infinite amount of prisoners that live.

4. so in fact "almost" 100% make it out alive.

or i'm probably flat out wrong >.<
My dealer is my best friend, and we don't even chill.
dybydx
Profile Blog Joined December 2007
Canada1764 Posts
Last Edited: 2008-01-23 03:19:45
January 23 2008 03:10 GMT
#83
d'oh lol. wrong solution
...from the land of imba
Muirhead
Profile Blog Joined October 2007
United States556 Posts
Last Edited: 2008-01-23 03:17:13
January 23 2008 03:16 GMT
#84
There are tons of measure 0 sets with the same cardinality as the total space, so that doesn't work Rev0lution

dybydx, just because infinitely many of them or even more than half survive you can't conclude that ~100% of them survive... I don't understand :/ You do have a nice way to ensure that more than half survive though
starleague.mit.edu
Slithe
Profile Blog Joined February 2007
United States985 Posts
January 23 2008 03:29 GMT
#85
Now am I to understand that the method that the judge uses for choosing what color hat that a prisoner gets is arbitrary, and possibly adversarial?
iloveHieu
Profile Joined November 2007
United States1919 Posts
January 23 2008 03:29 GMT
#86
cool problem!
Xellos <3
dybydx
Profile Blog Joined December 2007
Canada1764 Posts
January 23 2008 04:12 GMT
#87
ok... to my interpretation...
i think we are missing some vital information here. as someone previously said, we need to assume equivalence relations.

in other words, to solve this problem we must assume that...
1. the sequencing of the hats are NOT truly random (ie 1 sequence out of a pool of possible sequences is randomly chosen, but once chosen, the sequence repeat eventually)
2. the prisoners know whether or not the previous person was killed or not.
+ Show Spoiler +
http://en.wikipedia.org/wiki/Prisoners_and_hats_puzzle
1. basically what it says is, there is a finite number of ways to sequence the hats.
2. the first person looks to ppl above him and make a best guess what the sequence is.
3. the second person knowing the result of the first person deduces what the remaining possible sequences are, and takes his best guess at it.
4. repeat the result and but deduction, eventually the entire sequencing of hats have been revealed. after n prisoners.
5. n+1'st prisoner and onwards, now knowing the correct sequence, will be able to correctly determine his hat.
6. thus a finite number (even though this number can approach infinite) of prisoners will die, and an infinite number will survive.


its incorrect to say "all prisoners have 50% chance of dying."
...from the land of imba
pyrogenetix
Profile Blog Joined March 2006
China5098 Posts
January 23 2008 04:13 GMT
#88
i have no idea whatsoever as to how to solve the hat problem

if these are the rules then i have no way of solving it

1) a black or a white hat is placed on your head at random
2) you are only allowed to look at people in front of you
3) no communication
4) infinitely many people in front of you

imo this is impossible.
how could I possibly know what coin I tossed simply by looking at what other people got when they all tossed their coins? im sure OP missed something
Yea that looks just like Kang Min... amazing game sense... and uses mind games well, but has the micro of a washed up progamer.
BottleAbuser
Profile Blog Joined December 2007
Korea (South)1888 Posts
January 23 2008 04:19 GMT
#89
Inifinities can have different "sizes," so saying "an infinite number of prisoners survive" doesn't mean most of them do. Take for example the set of all real numbers and the set of all integers. They're both have an infinite number of elements, but the set of integers is a proper subset of the set of all real numbers.

dybydx, your solution makes the assumption that there is a finite number of sequences to assign an infinite number of hats (step 1.). Our problem doesn't give this as a fact, and assuming it is unjustified (there are 2^N possible sequences, where N is infinite).
Compilers are like boyfriends, you miss a period and they go crazy on you.
dybydx
Profile Blog Joined December 2007
Canada1764 Posts
January 23 2008 04:20 GMT
#90
actually what i wrote above simplified some stuff but, at the very very minimum, it must be assumed that the sequencing of the hats follow a function, and the function is not completely random.

it can be proven that if the sequencing is completely random (ie the life/death of previous prisoner do not convey useful information) then it is not possible to guarantee a survival rate > 50%

proof: http://en.wikipedia.org/wiki/One_time_pad
...from the land of imba
dybydx
Profile Blog Joined December 2007
Canada1764 Posts
Last Edited: 2008-01-23 04:29:28
January 23 2008 04:28 GMT
#91
On January 23 2008 13:19 BottleAbuser wrote:
Our problem doesn't give this as a fact, and assuming it is unjustified (there are 2^N possible sequences, where N is infinite).

muri forgot to include that fact. what he meant is n possible sequence and n is arbitarily large and approach infinity, but it is not infinite. the total number of prisoners however is infinite.

lets put it this way.
1. the life/death of previous prisoners either a) give you information about future prisoners, or b) it doesnt.
2. if the answer is no, its a one time pad, and it is not solvable.
3. if the answer is yes, then the sequence is either a) a function b) fixed sequence
4. if it is a function, it is not solvable.
5. if it is a sequence, it must repeat and hence solvable.
...from the land of imba
BottleAbuser
Profile Blog Joined December 2007
Korea (South)1888 Posts
Last Edited: 2008-01-23 04:30:10
January 23 2008 04:28 GMT
#92
Looks like we have proof that there is no solution (unless I misunderstood the constraints of the problem).
Compilers are like boyfriends, you miss a period and they go crazy on you.
mikeymoo
Profile Blog Joined October 2006
Canada7170 Posts
January 23 2008 04:32 GMT
#93
lol I reallllly want to post the Monty Hall problem again just to see who doesn't get it by now.
o_x | Ow. | 1003 ESPORTS dollars | If you have any questions about bans please PM Kennigit
Slithe
Profile Blog Joined February 2007
United States985 Posts
Last Edited: 2008-01-23 04:36:46
January 23 2008 04:33 GMT
#94
I don't understand how there can be an answer either. In most other problems of this type of nature, there's some way of conveying information between the people in question, often based on time or order, but I can't seem to figure out any such thing here, since the prisoners simultaneously write down their guesses. I think I give up on this one, barring some kind of hint or clarification.

edit: If you guys want to see some more problems, check my blog. There's one medium level problem and one hard problem.
BottleAbuser
Profile Blog Joined December 2007
Korea (South)1888 Posts
January 23 2008 04:38 GMT
#95
Huh, I didn't see it before in the thread, but I remember solving it before

The problem:
+ Show Spoiler +
There are three doors (or cups, or boxes, or whatever) that you can choose from. You can only choose one. One of the doors, when opened, will give you a prize. The other two give you nothing.

Once you have chosen a door, one of the two remaining doors is opened to reveal that it contains nothing.

You can now choose to keep your first pick, or switch your pick to the other remaining closed door.

Should you keep your first pick, or swap? Why?


The solution:
+ Show Spoiler +
You should swap.

The probability that you correctly chose on your first pick is 1/3. Obvious; there are three doors, and only one of them is correct.

Now, the probability that the prize lies behind the remaining two doors is 2/3. This probability does not change when one of those doors is opened. P(revealed door) + P(remaining door) = 2/3. Except that we know P(revealed door) = 0, so P(remaining door) = 2/3. And P(selected door) = 1/3, still. So swapping gives you 2/3, and keeping gives you 1/3 chance to win.
Compilers are like boyfriends, you miss a period and they go crazy on you.
pyrogenetix
Profile Blog Joined March 2006
China5098 Posts
January 23 2008 04:45 GMT
#96
On January 23 2008 13:38 BottleAbuser wrote:
Huh, I didn't see it before in the thread, but I remember solving it before

The problem:
+ Show Spoiler +
There are three doors (or cups, or boxes, or whatever) that you can choose from. You can only choose one. One of the doors, when opened, will give you a prize. The other two give you nothing.

Once you have chosen a door, one of the two remaining doors is opened to reveal that it contains nothing.

You can now choose to keep your first pick, or switch your pick to the other remaining closed door.

Should you keep your first pick, or swap? Why?


The solution:
+ Show Spoiler +
You should swap.

The probability that you correctly chose on your first pick is 1/3. Obvious; there are three doors, and only one of them is correct.

Now, the probability that the prize lies behind the remaining two doors is 2/3. This probability does not change when one of those doors is opened. P(revealed door) + P(remaining door) = 2/3. Except that we know P(revealed door) = 0, so P(remaining door) = 2/3. And P(selected door) = 1/3, still. So swapping gives you 2/3, and keeping gives you 1/3 chance to win.

That is the monty hall
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 04:49 GMT
#97
just to elaborate why a function is not solvable.

suppose all prisoners wrote that "black" and so far after n prisoners, a,b,c...k are dead
we can come up with a function that f(1) = a, f(2) = b, f(3) = c..... f(n) = k
but there are finitely many functions that will do the same. thus past information do not confer any information about future prisoners.
...from the land of imba
Muirhead
Profile Blog Joined October 2007
United States556 Posts
January 23 2008 04:49 GMT
#98
Ok you guys.... the wikipedia article gives the same solution I did.
"In this variant, a countably infinite number of prisoners, each with a unknown and randomly assigned red or blue hat line up single file line. Each prisoner faces away from the beginning of the line, and each prisoner can see all the hats in front of him, and none of the hats behind. Starting from the beginning of the line, each prisoner must correctly identify the color of his hat or he is killed on the spot. As before, the prisoners have a chance to meet beforehand, but unlike before, once in line, no prisoner can hear what the other prisoners say. The question is, is there a way to ensure that only finitely many prisoners are killed (and hence, an infinite number are saved)? If one accepts the axiom of choice, the answer is yes"
starleague.mit.edu
Muirhead
Profile Blog Joined October 2007
United States556 Posts
Last Edited: 2008-01-23 04:58:32
January 23 2008 04:51 GMT
#99
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.

Please PM me if you still don't understand.
starleague.mit.edu
dybydx
Profile Blog Joined December 2007
Canada1764 Posts
January 23 2008 05:01 GMT
#100
muri,

if you read rest of the wiki solution, it says that eventually the prisoners can deduce the sequence and after n trials, n+1 and onwards prisoners will be saved. thus a finite number will die, an infinite number will live. despite n being arbitrarily large and approach infinity, it is NOT infinite.

if the sequence is "just anything" (truly random), it will not be deducible no matter how large n is. when wiki said "randomly assiged" it actually meant a sequence, out of a possible pool of size 2^n is randomly assigned.
...from the land of imba
Prev 1 2 3 4 5 6 7 Next All
Please log in or register to reply.
Live Events Refresh
Next event in 57m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
SortOf 136
BRAT_OK 57
StarCraft: Brood War
Larva 2831
actioN 1296
Yoon 970
Bisu 916
Jaedong 816
Leta 346
Soma 311
PianO 303
Rush 159
Killer 146
[ Show more ]
ToSsGirL 95
Pusan 59
Sharp 33
NotJumperer 26
ZerO 21
Movie 19
sorry 17
soO 0
Dota 2
XcaliburYe1018
League of Legends
JimRising 550
Counter-Strike
ScreaM1135
shoxiejesuss733
Other Games
summit1g10745
singsing1431
ceh9586
Happy262
crisheroes90
ViBE81
Mew2King74
ZerO(Twitch)3
Organizations
Counter-Strike
PGL8819
Other Games
gamesdonequick922
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 14 non-featured ]
StarCraft 2
• Berry_CruncH115
• LUISG 22
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• iopq 2
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Jankos1824
Upcoming Events
Wardi Open
57m
CranKy Ducklings
23h 57m
Safe House 2
1d 6h
Sparkling Tuna Cup
1d 23h
Safe House 2
2 days
Tenacious Turtle Tussle
5 days
The PondCast
5 days
Liquipedia Results

Completed

Acropolis #4 - TS2
WardiTV TLMC #15
HCC Europe

Ongoing

BSL 21 Points
ASL Season 20
CSL 2025 AUTUMN (S18)
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

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.