• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 19:33
CEST 01:33
KST 08:33
  • 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
[ASL22] Finals Preview: Sweet Victory!9[ASL22] Ro4 Preview: Mirror Mirror6[ASL22] Ro8 Preview: Within Reach5[ASL22] Ro8 Preview: In A Tizzy11[ASL22] Ro16 Preview: Holy Diver5
Community News
[$1250] International ShieldBattery League36Weekly Cups (October 5-11): Farewell to 5.0.164Rollback Netcode in Brood War1375.0.17 Patch Notes - October 7, 202624Weekly Cups Results (Sep 28-Oct 4)0
StarCraft 2
General
Server Blocker No more sc2 streamers on team liquid? SCII needs to put more weight on strategy and tact Stellar Fest 2 Replay Pack Terran AddOns placement
Tourneys
WORTEX Challenger Series — Open SC2 LAN in Budapes RSL goes to London! 2026 Offline Finals Nov 21-22 Sparkling Tuna Cup - Weekly Open Tournament Stellar Fest TWO the Moon (Dec 16-20) Master Swan Open (Global Bronze-Master 2)
Strategy
[H] ZvP Mid-Late Game: Stalkers Collossi HT
Custom Maps
[G] How to playtest arcade maps [A] Nemrods 1/4 players [M] (2) Sweltering Sands [M] (2) Frigid Storage
External Content
Mutation # 548 Shining Bright The PondCast: SC2 News & Results Mutation # 547 Temple Of Terror Mutation # 546 Catch the Train
Brood War
General
Rollback Netcode in Brood War Mineral gathering rate (boosted) for each patch Ziemie's Starcraft 1 Prequel Campaign NaDa's Body BW General Discussion
Tourneys
[ASL22] Grand Finals [$1250] International ShieldBattery League [Megathread] Daily Proleagues 2v2v2v2 Tournament
Strategy
Cliff Jump Revisited (1 in a 1000 strategy) Simple Questions, Simple Answers Replay Review Process - What do you do?
Other Games
General Games
Stormgate/Frost Giant Megathread Nintendo Switch Thread Dawn of War IV Warcraft III: The Frozen Throne General RTS Discussion Thread
Dota 2
Dota 2 Champions League Season 3 Begins April 25!
League of Legends
[TL LoL EUW IHs] Teemo shall perish
Heroes of the Storm
Heroes of the Storm 2.0
Hearthstone
Deck construction bug
TL Mafia
TL Mafia Community Thread
Community
General
Things Aren’t Peaceful in Palestine US Politics Mega-thread Artificial Intelligence Thread European Politico-economics QA Mega-thread Russo-Ukrainian War Thread
Fan Clubs
Serral Fan Club
Media & Entertainment
Movie Discussion! [Manga] One Piece
Sports
TeamLiquid Health and Fitness Initiative For 2023 MLB/Baseball 2023 Football (Soccer) Thread
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
Recent Gifted Posts
Blogs
How Much Genes Contribute to…
TrAiDoS
ShieldBattery on Mac
Kraekkling
[ASL22] Ro4 Day1 Ticket Giv…
bITt.mAN
38 yo Retired SWE loo…
PurE)Rabbit-SF
Customize Sidebar...

Website Feedback

Closed Threads



Active: 10513 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 States557 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 States557 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 States557 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 States557 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 11h 27m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
Nina 184
Nathanias 93
SpeCial 69
StarCraft: Brood War
Artosis 551
ProTech127
Dota 2
NeuroSwarm168
League of Legends
Doublelift5643
Counter-Strike
Fnx 1261
Other Games
summit1g7231
gofns6800
FrodaN622
shahzam550
PiGStarcraft350
C9.Mang0312
Maynarde72
Organizations
Other Games
gamesdonequick620
[ Show 14 non-featured ]
StarCraft 2
• Hupsaiya 91
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• Migwel
StarCraft: Brood War
• HerbMon 40
• Eskiya23 30
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Scarra825
Other Games
• imaqtpie1009
• Shiphtur761
Upcoming Events
IntoTheTV X SOOP
11h 27m
PiGosaur Cup
1d
The PondCast
1d 10h
Kung Fu Cup
1d 11h
IntoTheTV X SOOP
2 days
FEL
4 days
Patches Events
4 days
FEL
5 days
Sparkling Tuna Cup
5 days
Replay Cast
5 days
[ Show More ]
WardiTV Weekly
6 days
Liquipedia Results

Completed

ASL Season 22
Blizzard Classic Cup 2026
HCC Season 3

Ongoing

Acropolis #5
IPSL Winter 2026-27
KCM Race Survival 2026 Season 4
Acropolis #5 - GSC
1win Private Club #2
Thunderpick World Champ. '26
ESL Pro League Season 24
Stake Ranked Episode 4
1win Private Club #1
Logitech G Play Connect 2026
SL StarSeries Fall 2026
FISSURE Playground #3
BLAST Open Fall 2026
Esports World Cup 2026

Upcoming

BSL Season 23
SC4ALL II: Brood War
BSL 23: Non-Korean Championship
HSC XXX
Stellar Fest 2: Lunar Cup
SC4ALL II: StarCraft II
Kung Fu Cup 2026 Grand Finals
RSL Offline Finals
eXTREMESLAND 2026
PGL Major Singapore 2026
Stake Ranked Episode 6
BLAST Rivals Fall 2026
IEM Beijing 2026
Stake Ranked Episode 5
PGL Masters Bucharest 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.