• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 02:47
CET 08:47
KST 16:47
  • 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
Rongyi Cup S3 - Preview & Info3herO wins SC2 All-Star Invitational14SC2 All-Star Invitational: Tournament Preview5RSL Revival - 2025 Season Finals Preview8RSL Season 3 - Playoffs Preview0
Community News
Weekly Cups (Jan 19-25): Bunny, Trigger, MaxPax win3Weekly Cups (Jan 12-18): herO, MaxPax, Solar win0BSL Season 2025 - Full Overview and Conclusion8Weekly Cups (Jan 5-11): Clem wins big offline, Trigger upsets4$21,000 Rongyi Cup Season 3 announced (Jan 22-Feb 7)38
StarCraft 2
General
StarCraft 2 not at the Esports World Cup 2026 Weekly Cups (Jan 19-25): Bunny, Trigger, MaxPax win Oliveira Would Have Returned If EWC Continued herO wins SC2 All-Star Invitational PhD study /w SC2 - help with a survey!
Tourneys
$21,000 Rongyi Cup Season 3 announced (Jan 22-Feb 7) OSC Season 13 World Championship $70 Prize Pool Ladder Legends Academy Weekly Open! SC2 All-Star Invitational: Jan 17-18 Sparkling Tuna Cup - Weekly Open Tournament
Strategy
Simple Questions Simple Answers
Custom Maps
[A] Starcraft Sound Mod
External Content
Mutation # 510 Safety Violation Mutation # 509 Doomsday Report Mutation # 508 Violent Night Mutation # 507 Well Trained
Brood War
General
Bleak Future After Failed ProGaming Career BW General Discussion BGH Auto Balance -> http://bghmmr.eu/ [ASL21] Potential Map Candidates Gypsy to Korea
Tourneys
[Megathread] Daily Proleagues Small VOD Thread 2.0 Azhi's Colosseum - Season 2 [BSL21] Non-Korean Championship - Starts Jan 10
Strategy
Zealot bombing is no longer popular? Current Meta Simple Questions, Simple Answers Soma's 9 hatch build from ASL Game 2
Other Games
General Games
Path of Exile Battle Aces/David Kim RTS Megathread Nintendo Switch Thread Mobile Legends: Bang Bang Beyond All Reason
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
Vanilla Mini Mafia Mafia Game Mode Feedback/Ideas
Community
General
US Politics Mega-thread Russo-Ukrainian War Thread Canadian Politics Mega-thread YouTube Thread European Politico-economics QA Mega-thread
Fan Clubs
The herO Fan Club! The IdrA Fan Club
Media & Entertainment
Anime Discussion Thread [Manga] One Piece
Sports
2024 - 2026 Football Thread
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List
Blogs
How Esports Advertising Shap…
TrAiDoS
My 2025 Magic: The Gathering…
DARKING
Life Update and thoughts.
FuDDx
How do archons sleep?
8882
James Bond movies ranking - pa…
Topin
Customize Sidebar...

Website Feedback

Closed Threads



Active: 2015 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
Hyrule19191 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
Canada4214 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
Hyrule19191 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 2h 14m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
SortOf 179
Nina 97
StarCraft: Brood War
Sea 3026
Mong 265
Shuttle 59
GoRush 35
Bale 33
Larva 24
ToSsGirL 24
910 15
NotJumperer 5
Hyuk 0
Dota 2
XaKoH 524
NeuroSwarm105
League of Legends
JimRising 703
C9.Mang0316
Heroes of the Storm
Khaldor92
Other Games
WinterStarcraft616
KnowMe228
Mew2King218
febbydoto25
minikerr18
Liquid`RaSZi7
Organizations
Other Games
gamesdonequick983
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 13 non-featured ]
StarCraft 2
• Berry_CruncH116
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• iopq 6
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Rush1278
Upcoming Events
The PondCast
2h 14m
HomeStory Cup
1d 4h
Korean StarCraft League
1d 19h
HomeStory Cup
2 days
Replay Cast
2 days
HomeStory Cup
3 days
Replay Cast
3 days
Replay Cast
4 days
Wardi Open
5 days
WardiTV Invitational
6 days
Liquipedia Results

Completed

Proleague 2026-01-27
OSC Championship Season 13
Underdog Cup #3

Ongoing

CSL 2025 WINTER (S19)
KCM Race Survival 2026 Season 1
Acropolis #4 - TS4
Rongyi Cup S3
IEM Kraków 2026
BLAST Bounty Winter 2026
BLAST Bounty Winter Qual
eXTREMESLAND 2025
SL Budapest Major 2025
ESL Impact League Season 8
BLAST Rivals Fall 2025

Upcoming

Escore Tournament S1: W6
Escore Tournament S1: W7
Acropolis #4
IPSL Spring 2026
uThermal 2v2 2026 Main Event
Bellum Gens Elite Stara Zagora 2026
LiuLi Cup: 2025 Grand Finals
HSC XXVIII
Nations Cup 2026
IEM Rio 2026
PGL Bucharest 2026
Stake Ranked Episode 1
BLAST Open Spring 2026
ESL Pro League Season 23
ESL Pro League Season 23
PGL Cluj-Napoca 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.