• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 16:43
CEST 22:43
KST 05:43
  • 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
[ASL20] Ro24 Preview Pt1: Runway112v2 & SC: Evo Complete: Weekend Double Feature2Team Liquid Map Contest #21 - Presented by Monster Energy9uThermal's 2v2 Tour: $15,000 Main Event18Serral wins EWC 202549
Community News
Weekly Cups (Aug 11-17): MaxPax triples again!5Weekly Cups (Aug 4-10): MaxPax wins a triple6SC2's Safe House 2 - October 18 & 195Weekly Cups (Jul 28-Aug 3): herO doubles up6LiuLi Cup - August 2025 Tournaments7
StarCraft 2
General
Weekly Cups (Aug 11-17): MaxPax triples again! What mix of new and old maps do you want in the next 1v1 ladder pool? (SC2) : RSL Revival patreon money discussion thread Team Liquid Map Contest #21 - Presented by Monster Energy Would you prefer the game to be balanced around top-tier pro level or average pro level?
Tourneys
Sparkling Tuna Cup - Weekly Open Tournament RSL: Revival, a new crowdfunded tournament series LiuLi Cup - August 2025 Tournaments SEL Masters #5 - Korea vs Russia (SC Evo) Enki Epic Series #5 - TaeJa vs Classic (SC Evo)
Strategy
Custom Maps
External Content
Mutation # 487 Think Fast Mutation # 486 Watch the Skies Mutation # 485 Death from Below Mutation # 484 Magnetic Pull
Brood War
General
New season has just come in ladder ASL 20 HYPE VIDEO! [ASL20] Ro24 Preview Pt1: Runway BW General Discussion Which top zerg/toss will fail in qualifiers?
Tourneys
[ASL20] Ro24 Group A BWCL Season 63 Announcement Cosmonarchy Pro Showmatches KCM 2025 Season 3
Strategy
Simple Questions, Simple Answers Fighting Spirit mining rates [G] Mineral Boosting Muta micro map competition
Other Games
General Games
Stormgate/Frost Giant Megathread Nintendo Switch Thread Total Annihilation Server - TAForever Beyond All Reason [MMORPG] Tree of Savior (Successor of Ragnarok)
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
Heroes of StarCraft mini-set
TL Mafia
TL Mafia Community Thread Vanilla Mini Mafia
Community
General
US Politics Mega-thread Russo-Ukrainian War Thread Things Aren’t Peaceful in Palestine European Politico-economics QA Mega-thread The Games Industry And ATVI
Fan Clubs
INnoVation Fan Club SKT1 Classic Fan Club!
Media & Entertainment
Movie Discussion! [Manga] One Piece Anime Discussion Thread [\m/] Heavy Metal Thread Korean Music Discussion
Sports
2024 - 2025 Football Thread TeamLiquid Health and Fitness Initiative For 2023 Formula 1 Discussion
World Cup 2022
Tech Support
Gtx660 graphics card replacement Installation of Windows 10 suck at "just a moment" Computer Build, Upgrade & Buying Resource Thread
TL Community
TeamLiquid Team Shirt On Sale The Automated Ban List
Blogs
The Biochemical Cost of Gami…
TrAiDoS
[Girl blog} My fema…
artosisisthebest
Sharpening the Filtration…
frozenclaw
ASL S20 English Commentary…
namkraft
StarCraft improvement
iopq
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1563 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
Hyrule19059 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
Canada4200 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
Hyrule19059 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
Next event in 3h 18m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
UpATreeSC 108
ProTech93
Nathanias 88
StarCraft: Brood War
Britney 19566
Calm 3468
Horang2 504
ggaemo 239
firebathero 129
LaStScan 115
Rock 24
soO 23
Dota 2
syndereN437
Counter-Strike
fl0m1952
Stewie2K207
PGG 49
Super Smash Bros
hungrybox412
PPMD98
Heroes of the Storm
Liquid`Hasu493
Other Games
Grubby2652
FrodaN1093
RotterdaM958
Mlord494
mouzStarbuck487
C9.Mang0265
SteadfastSC76
ZombieGrub72
Trikslyr68
Sick15
Organizations
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 19 non-featured ]
StarCraft 2
• kabyraGe 297
• davetesta42
• LaughNgamezSOOP
• sooper7s
• AfreecaTV YouTube
• intothetv
• Migwel
• Kozan
• IndyKCrew
StarCraft: Brood War
• Eskiya23 20
• 80smullet 12
• Pr0nogo 5
• STPLYoutube
• ZZZeroYoutube
• BSLYoutube
Dota 2
• masondota21727
Counter-Strike
• Shiphtur304
Other Games
• imaqtpie1594
• WagamamaTV653
Upcoming Events
OSC
3h 18m
Replay Cast
13h 18m
Afreeca Starleague
13h 18m
JyJ vs TY
Bisu vs Speed
WardiTV Summer Champion…
14h 18m
PiGosaur Monday
1d 3h
Afreeca Starleague
1d 13h
Mini vs TBD
Soma vs sSak
WardiTV Summer Champion…
1d 14h
Online Event
2 days
The PondCast
2 days
WardiTV Summer Champion…
2 days
[ Show More ]
Replay Cast
3 days
LiuLi Cup
3 days
BSL Team Wars
3 days
Team Hawk vs Team Dewalt
Korean StarCraft League
4 days
CranKy Ducklings
4 days
SC Evo League
4 days
WardiTV Summer Champion…
4 days
[BSL 2025] Weekly
4 days
Sparkling Tuna Cup
5 days
SC Evo League
5 days
BSL Team Wars
5 days
Team Bonyth vs Team Sziky
Afreeca Starleague
6 days
Queen vs HyuN
EffOrt vs Calm
Wardi Open
6 days
Liquipedia Results

Completed

Proleague 2025-08-13
uThermal 2v2 Main Event
HCC Europe

Ongoing

Copa Latinoamericana 4
Jiahua Invitational
BSL 20 Team Wars
KCM Race Survival 2025 Season 3
BSL 21 Qualifiers
ASL Season 20
CSL Season 18: Qualifier 1
SEL Season 2 Championship
WardiTV Summer 2025
BLAST Bounty Fall 2025
BLAST Bounty Fall Qual
IEM Cologne 2025
FISSURE Playground #1
BLAST.tv Austin Major 2025

Upcoming

CSLAN 3
CSL 2025 AUTUMN (S18)
LASL Season 20
BSL Season 21
BSL 21 Team A
RSL Revival: Season 2
Maestros of the Game
PGL Masters Bucharest 2025
Thunderpick World Champ.
MESA Nomadic Masters Fall
CS Asia Championships 2025
Roobet Cup 2025
ESL Pro League S22
StarSeries Fall 2025
FISSURE Playground #2
BLAST Open Fall 2025
BLAST Open Fall Qual
Esports World Cup 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.