• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 09:54
CET 15:54
KST 23:54
  • 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
RSL Season 3 - RO16 Groups C & D Preview0RSL Season 3 - RO16 Groups A & B Preview2TL.net Map Contest #21: Winners12Intel X Team Liquid Seoul event: Showmatches and Meet the Pros10[ASL20] Finals Preview: Arrival13
Community News
Weekly Cups (Nov 10-16): Reynor, Solar lead Zerg surge1[TLMC] Fall/Winter 2025 Ladder Map Rotation13Weekly Cups (Nov 3-9): Clem Conquers in Canada4SC: Evo Complete - Ranked Ladder OPEN ALPHA8StarCraft, SC2, HotS, WC3, Returning to Blizzcon!45
StarCraft 2
General
Weekly Cups (Nov 10-16): Reynor, Solar lead Zerg surge [TLMC] Fall/Winter 2025 Ladder Map Rotation Mech is the composition that needs teleportation t RotterdaM "Serral is the GOAT, and it's not close" RSL Season 3 - RO16 Groups C & D Preview
Tourneys
$5,000+ WardiTV 2025 Championship RSL Revival: Season 3 Sparkling Tuna Cup - Weekly Open Tournament Constellation Cup - Main Event - Stellar Fest Tenacious Turtle Tussle
Strategy
Custom Maps
Map Editor closed ?
External Content
Mutation # 500 Fright night Mutation # 499 Chilling Adaptation Mutation # 498 Wheel of Misfortune|Cradle of Death Mutation # 497 Battle Haredened
Brood War
General
FlaSh on: Biggest Problem With SnOw's Playstyle What happened to TvZ on Retro? BGH Auto Balance -> http://bghmmr.eu/ SnOw's ASL S20 Finals Review BW General Discussion
Tourneys
[BSL21] GosuLeague T1 Ro16 - Tue & Thu 22:00 CET [Megathread] Daily Proleagues Small VOD Thread 2.0 [BSL21] RO32 Group D - Sunday 21:00 CET
Strategy
How to stay on top of macro? Current Meta PvZ map balance Simple Questions, Simple Answers
Other Games
General Games
Stormgate/Frost Giant Megathread Should offensive tower rushing be viable in RTS games? Path of Exile Clair Obscur - Expedition 33 Nintendo Switch Thread
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
Deck construction bug Heroes of StarCraft mini-set
TL Mafia
TL Mafia Community Thread SPIRED by.ASL Mafia {211640}
Community
General
US Politics Mega-thread Russo-Ukrainian War Thread Things Aren’t Peaceful in Palestine About SC2SEA.COM Canadian Politics Mega-thread
Fan Clubs
White-Ra Fan Club The herO Fan Club!
Media & Entertainment
Movie Discussion! [Manga] One Piece Anime Discussion Thread Korean Music Discussion Series you have seen recently...
Sports
2024 - 2026 Football Thread Formula 1 Discussion NBA General Discussion MLB/Baseball 2023 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
Blogs
Dyadica Gospel – a Pulp No…
Hildegard
Coffee x Performance in Espo…
TrAiDoS
Saturation point
Uldridge
DnB/metal remix FFO Mick Go…
ImbaTosS
Reality "theory" prov…
perfectspheres
Customize Sidebar...

Website Feedback

Closed Threads



Active: 2188 users

Math Puzzle - 7 Hats - Page 4

Blogs > Slithe
Post a Reply
Prev 1 2 3 4 5 6 7 Next All
Happy.fairytail
Profile Blog Joined May 2010
United States327 Posts
September 09 2010 21:40 GMT
#61
LunarDestiny has the right idea..

+ Show Spoiler +
If Guy1 sees 6 different colors, he picks the one not there, then the other 6 guys know to ALL pick one of the 6 colors.

If Guy1 sees 5 different colors, he picks one not there, and if Guy2 sees 5 different colors, he knows to pick the other not there, then everyone else knows to ALL pick one of the 5 colors.

And so on... until the last scenario where Guy1 sees only one color, so he'll pick one not there. Guy2 will see one color, he'll pick the second one not there, and so on until Guy7 sees 1 color, but everyone already guessed the other 6 colors so he knows no one else sees those 6 colors, so he picks the 1 color he sees.


I'm sure there's a better way of phrasing it though...=P
Black Gun
Profile Blog Joined July 2009
Germany4482 Posts
September 09 2010 21:41 GMT
#62
On September 10 2010 06:35 BottleAbuser wrote:
Since we're given that the naive strategy (completely random guesses) will achieve a success rate of ~66%, I'll assume that the hat distribution is also completely random.

Since there is no communication between the prisoners, for each prisoner, the other prisoners' answers cannot affect his own. Therefore, he ONLY has the knowledge of the other prisoners' hats. Based on this information, he must somehow improve his chances of guessing his color correctly to over 1/7.

nope. he does not have to aim at improving the chance of increasing his own hat color, all the 7 as a collective have to maximize the chance of 1 of them guessing correct. this is an important difference. i just dont know yet how to approach this problem
"What am I supposed to do against this?" - "Lose!" :-]
BottleAbuser
Profile Blog Joined December 2007
Korea (South)1888 Posts
September 09 2010 21:41 GMT
#63
Seeing the others' hats doesn't do anything. Think of it like this.

You throw nine 6-sided dice on the table. You throw a tenth one on the floor, under the table.

You look at the nine dice. Can you think of a strategy for guessing what the tenth one rolled, one that increases your chances of guessing it over 1/6? Answer: obviously no. They're independent events.
Compilers are like boyfriends, you miss a period and they go crazy on you.
Slithe
Profile Blog Joined February 2007
United States985 Posts
Last Edited: 2010-09-09 21:44:54
September 09 2010 21:41 GMT
#64
Maybe if I describe a two person solution, you guys will believe that such an answer is possible.
Do not look if you don't want hints.

+ Show Spoiler +

Two hat colors, black and white.

Guy X's strategy:
If he sees black, he guesses black.
If he sees white, he guesses white.

Guy Y's strategy:
If he sees black, he guesses white.
If he sees white, he guesses black.

Hat combinations:
BB -> X gets it right
BW -> Y gets it right
WB -> Y gets it right
WW -> X gets it right


Black Gun
Profile Blog Joined July 2009
Germany4482 Posts
September 09 2010 21:43 GMT
#65
On September 10 2010 06:40 Happy.fairytail wrote:
LunarDestiny has the right idea..

+ Show Spoiler +
If Guy1 sees 6 different colors, he picks the one not there, then the other 6 guys know to ALL pick one of the 6 colors.

If Guy1 sees 5 different colors, he picks one not there, and if Guy2 sees 5 different colors, he knows to pick the other not there, then everyone else knows to ALL pick one of the 5 colors.

And so on... until the last scenario where Guy1 sees only one color, so he'll pick one not there. Guy2 will see one color, he'll pick the second one not there, and so on until Guy7 sees 1 color, but everyone already guessed the other 6 colors so he knows no one else sees those 6 colors, so he picks the 1 color he sees.


I'm sure there's a better way of phrasing it though...=P



no, as i pointed out before: even if x prisoners know which x different colors they must be wearing, they still dont know which one of them has which color. if each of them just randomly picks one of the x feasible colors, there´s still a chance for all of them to get it wrong.
"What am I supposed to do against this?" - "Lose!" :-]
Slithe
Profile Blog Joined February 2007
United States985 Posts
September 09 2010 21:44 GMT
#66
On September 10 2010 06:41 Black Gun wrote:
Show nested quote +
On September 10 2010 06:35 BottleAbuser wrote:
Since we're given that the naive strategy (completely random guesses) will achieve a success rate of ~66%, I'll assume that the hat distribution is also completely random.

Since there is no communication between the prisoners, for each prisoner, the other prisoners' answers cannot affect his own. Therefore, he ONLY has the knowledge of the other prisoners' hats. Based on this information, he must somehow improve his chances of guessing his color correctly to over 1/7.

nope. he does not have to aim at improving the chance of increasing his own hat color, all the 7 as a collective have to maximize the chance of 1 of them guessing correct. this is an important difference. i just dont know yet how to approach this problem


This is the correct line of thinking. As BottleAbuser mentions, there is no way for an individual to improve his independent chance of correctness, but the collective can devise a superior scheme.
tofucake
Profile Blog Joined October 2009
Hyrule19155 Posts
September 09 2010 21:44 GMT
#67
On September 10 2010 06:27 getSome[703] wrote:
Here's my best guess at an answer. It works but you may or may not argue that it involves communication.

+ Show Spoiler +
All the prisoners before hand pick one guy. The six other players agree that if the designated prisoner is wearing a certain colored hat, one of them will begin write that hat color down on their paper (so one of the players will begin to write if the designated one is wearing a red hat, another will begin to write if he is wearing an orange hat, etc). The designated prisoner, seeing the person who is writing, will then know his hat color. If none of the prisoners are writing down anything, then his hat is the seventh color. He writes down his hat color and everyone goes free

If the King has a 120 pack of Crayolas the prisoners are fucked with your strategy.
Liquipediaasante sana squash banana
Impervious
Profile Blog Joined March 2009
Canada4211 Posts
Last Edited: 2010-09-09 21:51:53
September 09 2010 21:45 GMT
#68
I've seen that type of logic before, but I'm not 100% sure how you can apply it to a larger problem, such as with 7 people.

EDIT - to expand on this:

It's kind of like the "turning a sphere inside out" puzzle. It seems counter-intuitive, yet there is a complex solution. 7 people has 823543 different possibilites, how you could come up with a simple solution is beyond me.....
~ \(ˌ)im-ˈpər-vē-əs\ : not capable of being damaged or harmed.
tissue
Profile Joined April 2009
Malaysia441 Posts
September 09 2010 21:45 GMT
#69
On September 10 2010 06:40 Happy.fairytail wrote:
LunarDestiny has the right idea..

+ Show Spoiler +
If Guy1 sees 6 different colors, he picks the one not there, then the other 6 guys know to ALL pick one of the 6 colors.

If Guy1 sees 5 different colors, he picks one not there, and if Guy2 sees 5 different colors, he knows to pick the other not there, then everyone else knows to ALL pick one of the 5 colors.

And so on... until the last scenario where Guy1 sees only one color, so he'll pick one not there. Guy2 will see one color, he'll pick the second one not there, and so on until Guy7 sees 1 color, but everyone already guessed the other 6 colors so he knows no one else sees those 6 colors, so he picks the 1 color he sees.


I'm sure there's a better way of phrasing it though...=P


I don't even understand what he is saying but I can tell it makes no sense at all.

You are prisoner #1. You see 6 red hats. Possible colors are the rainbow colors. What then? Remember: Nobody can see what you write.
Gonna write blue? Guy #2 (wearing red) would be like "durrr I see no blue/yellow/whatever" and do likewise, and so on. RIP
AyeH
Profile Blog Joined March 2010
United States534 Posts
September 09 2010 21:46 GMT
#70
Everyone can guess the same color because at least one of the seven have to be of the color and only one prisoner needs to be right.
Is it in you?
saltywet
Profile Blog Joined August 2009
Hong Kong1316 Posts
September 09 2010 21:47 GMT
#71
On September 10 2010 06:44 Slithe wrote:
Show nested quote +
On September 10 2010 06:41 Black Gun wrote:
On September 10 2010 06:35 BottleAbuser wrote:
Since we're given that the naive strategy (completely random guesses) will achieve a success rate of ~66%, I'll assume that the hat distribution is also completely random.

Since there is no communication between the prisoners, for each prisoner, the other prisoners' answers cannot affect his own. Therefore, he ONLY has the knowledge of the other prisoners' hats. Based on this information, he must somehow improve his chances of guessing his color correctly to over 1/7.

nope. he does not have to aim at improving the chance of increasing his own hat color, all the 7 as a collective have to maximize the chance of 1 of them guessing correct. this is an important difference. i just dont know yet how to approach this problem


This is the correct line of thinking. As BottleAbuser mentions, there is no way for an individual to improve his independent chance of correctness, but the collective can devise a superior scheme.



i want to clarify, do all the prisoners hand in separate sheets of solutions, or do they all write on one sheet which they can see what others wrote but not who wrote them?
CanucksJC
Profile Blog Joined August 2010
Canada1241 Posts
September 09 2010 21:47 GMT
#72
On September 10 2010 06:41 Slithe wrote:
Maybe if I describe a two person solution, you guys will believe that such an answer is possible.
Do not look if you don't want hints.

+ Show Spoiler +

Two hat colors, black and white.

Guy X's strategy:
If he sees black, he guesses black.
If he sees white, he guesses white.

Guy Y's strategy:
If he sees black, he guesses white.
If he sees white, he guesses black.

Hat combinations:
BB -> X gets it right
BW -> Y gets it right
WB -> Y gets it right
WW -> X gets it right




this is cheating tho. so basically i can guess red (which is the colour of the hat of person sitting left) and that person can simply guess red cuz i just guessed whichever colour he was wearing.
UBC StarCraft Club is official @ UBC Vancouver campus! Your first eSport community on campus. Welcomes players of all levels at UBC. Follow us on facebook page: http://www.facebook.com/home.php#!/group.php?gid=155630424470014 or IRC @ irc.rizon.net #ubcsc
Slithe
Profile Blog Joined February 2007
United States985 Posts
September 09 2010 21:48 GMT
#73
On September 10 2010 06:47 saltywet wrote:
Show nested quote +
On September 10 2010 06:44 Slithe wrote:
On September 10 2010 06:41 Black Gun wrote:
On September 10 2010 06:35 BottleAbuser wrote:
Since we're given that the naive strategy (completely random guesses) will achieve a success rate of ~66%, I'll assume that the hat distribution is also completely random.

Since there is no communication between the prisoners, for each prisoner, the other prisoners' answers cannot affect his own. Therefore, he ONLY has the knowledge of the other prisoners' hats. Based on this information, he must somehow improve his chances of guessing his color correctly to over 1/7.

nope. he does not have to aim at improving the chance of increasing his own hat color, all the 7 as a collective have to maximize the chance of 1 of them guessing correct. this is an important difference. i just dont know yet how to approach this problem


This is the correct line of thinking. As BottleAbuser mentions, there is no way for an individual to improve his independent chance of correctness, but the collective can devise a superior scheme.



i want to clarify, do all the prisoners hand in separate sheets of solutions, or do they all write on one sheet which they can see what others wrote but not who wrote them?


Separate sheets.
LunarDestiny
Profile Blog Joined August 2008
United States4177 Posts
September 09 2010 21:48 GMT
#74
Retard way:
Guy1 got yellow hat.
He writes down red.
King: Wrong.
Guy2: Dude, he's right. The hat is red.
King: You stupid.
Guy3: Dude, he's right.
King: You stupid also.
Guy4: Dude, he's right.
King: You stupid also.
Guy5: Dude, he's right.
King: You stupid also.
Guy6: Dude, he's right.
King: You stupid also.
Guy7: Dude, he's right.
King: Maybe I am color blind.
Seth_
Profile Blog Joined July 2010
Belgium184 Posts
September 09 2010 21:49 GMT
#75
If Guy1 sees 6 different colors, he picks the one not there, then the other 6 guys know to ALL pick one of the 6 colors.

no, the other guys don't know that guy1 sees 6 different colors.
They might also see 6 different ones, or they might see that guy1 and another guy have the same color.
Slithe
Profile Blog Joined February 2007
United States985 Posts
September 09 2010 21:49 GMT
#76
On September 10 2010 06:47 CanucksJC wrote:
Show nested quote +
On September 10 2010 06:41 Slithe wrote:
Maybe if I describe a two person solution, you guys will believe that such an answer is possible.
Do not look if you don't want hints.

+ Show Spoiler +

Two hat colors, black and white.

Guy X's strategy:
If he sees black, he guesses black.
If he sees white, he guesses white.

Guy Y's strategy:
If he sees black, he guesses white.
If he sees white, he guesses black.

Hat combinations:
BB -> X gets it right
BW -> Y gets it right
WB -> Y gets it right
WW -> X gets it right




this is cheating tho. so basically i can guess red (which is the colour of the hat of person sitting left) and that person can simply guess red cuz i just guessed whichever colour he was wearing.


Their guesses are not based on what the other person said. They guess only based on what color they see on the other person's hat. Reread the solution, it doesn't involve them hearing each other say anything.
BottleAbuser
Profile Blog Joined December 2007
Korea (South)1888 Posts
September 09 2010 21:53 GMT
#77
Use the adversary argument.

Suppose that the king can actually change the color of an individual's hat if he wants.

Is there a strategy that the prisoners can use, that will make sure that such a change will be provable by the individual whose hat was changed?


Remember, the only information you have is the other prisoners' hats. And you can't affect the other prisoners' answers, only your own. The other prisoners' hats are random noise. They have absolutely no bearing on what your own hat is.

Each prisoner is looking at the exact same situation.

Let's say that we change this symmetry a little bit by introducing a preset plan:
Prisoner 1 will always guess red if he sees exactly one other red hat, green if he sees exactly 2 of any given color, blue if he sees 3, and so on.
Prisoner 2 will start with red if he sees exactly 2 of any given color, green if he sees 3, and so on.
Prisoner 3 will start with red if he sees 3 hats of a given color, and so on.

Well? Does that improve their chances? No, no it doesn't do a damn thing. Because they're independent events. The information you're given has no bearing on the decision you're making.
Compilers are like boyfriends, you miss a period and they go crazy on you.
KarlSberg~
Profile Blog Joined September 2003
731 Posts
Last Edited: 2010-09-09 21:56:07
September 09 2010 21:54 GMT
#78
First I really thought that would be going to be something retarded, but that's actually a very nice problem.
I think this is the strategy, even though I'm having a hard time proving it
+ Show Spoiler +
Assign a number to each color (0..6)
Assign a number to each prisoner (0..6)
Each prisonner adds the colors he sees on all other guys + his number
Sum%7 gives the color the prisoner has to announce
In any possible case one (exactly one) prisoner will be right.
There are 01 kind of people who know binary. Those who understand little endian and those who don t.
tofucake
Profile Blog Joined October 2009
Hyrule19155 Posts
September 09 2010 21:54 GMT
#79
I have the answer
+ Show Spoiler +
+ Show Spoiler +
+ Show Spoiler +
+ Show Spoiler +
+ Show Spoiler +
+ Show Spoiler +
+ Show Spoiler +
+ Show Spoiler +
It's not possible.
Liquipediaasante sana squash banana
tissue
Profile Joined April 2009
Malaysia441 Posts
September 09 2010 21:55 GMT
#80
Dear diary,

Today I lost a goodish amount of faith in the intelligence and reading comprehension of the posters on TL.net. Was it like this before starcraft 2?
Prev 1 2 3 4 5 6 7 Next All
Please log in or register to reply.
Live Events Refresh
Wardi Open
12:00
#61
WardiTV1182
TKL 249
Harstem204
Rex128
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
Reynor 425
Lowko269
TKL 249
Harstem 204
Rex 128
ProTech118
BRAT_OK 63
StarCraft: Brood War
Britney 41825
Calm 9090
Horang2 1575
EffOrt 1154
Jaedong 716
Soma 613
Stork 505
Larva 469
firebathero 395
Rush 250
[ Show more ]
Pusan 168
ToSsGirL 93
Mind 89
Killer 73
Sea.KH 48
sas.Sziky 47
scan(afreeca) 37
yabsab 25
Rock 12
ivOry 10
Hm[arnc] 9
Dota 2
Gorgc5490
qojqva3205
Dendi1198
XcaliburYe147
Counter-Strike
olofmeister2159
allub314
oskar163
markeloff95
Other Games
hiko616
crisheroes360
Hui .307
Fuzer 293
Sick246
Liquid`LucifroN160
Happy145
QueenE76
Organizations
Dota 2
PGL Dota 2 - Main Stream13947
PGL Dota 2 - Secondary Stream2085
StarCraft: Brood War
UltimateBattle 78
StarCraft 2
IntoTheiNu 30
StarCraft: Brood War
Kim Chul Min (afreeca) 8
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 14 non-featured ]
StarCraft 2
• Adnapsc2 10
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Dota 2
• C_a_k_e 2313
• WagamamaTV342
League of Legends
• Nemesis3990
Upcoming Events
Monday Night Weeklies
2h 6m
Replay Cast
8h 6m
ChoboTeamLeague
10h 6m
WardiTV Korean Royale
21h 6m
BSL: GosuLeague
1d 6h
PiGosaur Cup
1d 10h
The PondCast
1d 19h
Replay Cast
2 days
RSL Revival
2 days
herO vs Zoun
Classic vs Reynor
Maru vs SHIN
MaxPax vs TriGGeR
BSL: GosuLeague
3 days
[ Show More ]
RSL Revival
3 days
WardiTV Korean Royale
3 days
RSL Revival
4 days
WardiTV Korean Royale
4 days
IPSL
5 days
Julia vs Artosis
JDConan vs DragOn
RSL Revival
5 days
Wardi Open
5 days
IPSL
6 days
StRyKeR vs OldBoy
Sziky vs Tarson
Replay Cast
6 days
Liquipedia Results

Completed

Proleague 2025-11-14
Stellar Fest: Constellation Cup
Eternal Conflict S1

Ongoing

C-Race Season 1
IPSL Winter 2025-26
KCM Race Survival 2025 Season 4
SOOP Univ League 2025
YSL S2
BSL Season 21
CSCL: Masked Kings S3
SLON Tour Season 2
RSL Revival: Season 3
META Madness #9
BLAST Rivals Fall 2025
IEM Chengdu 2025
PGL Masters Bucharest 2025
Thunderpick World Champ.
CS Asia Championships 2025
ESL Pro League S22
StarSeries Fall 2025
FISSURE Playground #2
BLAST Open Fall 2025

Upcoming

BSL 21 Non-Korean Championship
Acropolis #4
IPSL Spring 2026
HSC XXVIII
RSL Offline Finals
WardiTV 2025
IEM Kraków 2026
BLAST Bounty Winter 2026
BLAST Bounty Winter 2026: Closed Qualifier
eXTREMESLAND 2025
ESL Impact League Season 8
SL Budapest Major 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.