• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 22:27
CET 04:27
KST 12:27
  • 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: Winners11Intel X Team Liquid Seoul event: Showmatches and Meet the Pros10[ASL20] Finals Preview: Arrival13TL.net Map Contest #21: Voting12[ASL20] Ro4 Preview: Descent11
Community News
Weekly Cups (Nov 3-9): Clem Conquers in Canada0SC: Evo Complete - Ranked Ladder OPEN ALPHA2StarCraft, SC2, HotS, WC3, Returning to Blizzcon!45$5,000+ WardiTV 2025 Championship7[BSL21] RO32 Group Stage4
StarCraft 2
General
Craziest Micro Moments Of All Time? SC: Evo Complete - Ranked Ladder OPEN ALPHA Mech is the composition that needs teleportation t Weekly Cups (Nov 3-9): Clem Conquers in Canada RotterdaM "Serral is the GOAT, and it's not close"
Tourneys
Tenacious Turtle Tussle Constellation Cup - Main Event - Stellar Fest Sparkling Tuna Cup - Weekly Open Tournament $5,000+ WardiTV 2025 Championship Merivale 8 Open - LAN - Stellar Fest
Strategy
Custom Maps
Map Editor closed ?
External Content
Mutation # 499 Chilling Adaptation Mutation # 498 Wheel of Misfortune|Cradle of Death Mutation # 497 Battle Haredened Mutation # 496 Endless Infection
Brood War
General
BW General Discussion FlaSh on: Biggest Problem With SnOw's Playstyle BGH Auto Balance -> http://bghmmr.eu/ [ASL20] Ask the mapmakers — Drop your questions Where's CardinalAllin/Jukado the mapmaker?
Tourneys
[Megathread] Daily Proleagues [ASL20] Grand Finals [BSL21] RO32 Group A - Saturday 21:00 CET [BSL21] RO32 Group B - Sunday 21:00 CET
Strategy
Current Meta PvZ map balance How to stay on top of macro? Soma's 9 hatch build from ASL Game 2
Other Games
General Games
Nintendo Switch Thread Stormgate/Frost Giant Megathread Should offensive tower rushing be viable in RTS games? Path of Exile Dawn of War IV
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
Things Aren’t Peaceful in Palestine Russo-Ukrainian War Thread US Politics Mega-thread Canadian Politics Mega-thread The Games Industry And ATVI
Fan Clubs
White-Ra Fan Club The herO Fan Club!
Media & Entertainment
[Manga] One Piece Anime Discussion Thread Movie Discussion! 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
Learning my new SC2 hotkey…
Hildegard
Coffee x Performance in Espo…
TrAiDoS
Saturation point
Uldridge
DnB/metal remix FFO Mick Go…
ImbaTosS
Reality "theory" prov…
perfectspheres
Our Last Hope in th…
KrillinFromwales
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1603 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
Hyrule19151 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
Hyrule19151 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
Replay Cast
23:00
Enki Epic Series #6 | LiuLi Cup #47
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
RuFF_SC2 160
Nina 110
Nathanias 88
StarCraft: Brood War
Britney 15076
Shuttle 966
Artosis 693
Noble 40
Icarus 5
Dota 2
monkeys_forever490
NeuroSwarm47
LuMiX0
Counter-Strike
fl0m1992
Super Smash Bros
hungrybox487
Other Games
summit1g12849
JimRising 542
Maynarde148
C9.Mang0128
ViBE58
Organizations
Other Games
gamesdonequick915
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 13 non-featured ]
StarCraft 2
• davetesta32
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Dota 2
• masondota21745
League of Legends
• Scarra1079
Upcoming Events
WardiTV Korean Royale
8h 33m
OSC
13h 33m
Replay Cast
19h 33m
Replay Cast
1d 5h
Kung Fu Cup
1d 8h
Classic vs Solar
herO vs Cure
Reynor vs GuMiho
ByuN vs ShoWTimE
Tenacious Turtle Tussle
1d 19h
The PondCast
2 days
RSL Revival
2 days
Solar vs Zoun
MaxPax vs Bunny
Kung Fu Cup
2 days
WardiTV Korean Royale
2 days
[ Show More ]
PiGosaur Monday
2 days
RSL Revival
3 days
Classic vs Creator
Cure vs TriGGeR
Kung Fu Cup
3 days
CranKy Ducklings
4 days
RSL Revival
4 days
herO vs Gerald
ByuN vs SHIN
Kung Fu Cup
4 days
BSL 21
4 days
Tarson vs Julia
Doodle vs OldBoy
eOnzErG vs WolFix
StRyKeR vs Aeternum
Sparkling Tuna Cup
5 days
RSL Revival
5 days
Reynor vs sOs
Maru vs Ryung
Kung Fu Cup
5 days
WardiTV Korean Royale
5 days
BSL 21
5 days
JDConan vs Semih
Dragon vs Dienmax
Tech vs NewOcean
TerrOr vs Artosis
Wardi Open
6 days
Monday Night Weeklies
6 days
Liquipedia Results

Completed

Proleague 2025-11-07
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
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
BLAST Open Fall Qual

Upcoming

SLON Tour Season 2
BSL 21 Non-Korean Championship
Acropolis #4
IPSL Spring 2026
HSC XXVIII
RSL Offline Finals
WardiTV 2025
RSL Revival: Season 3
META Madness #9
BLAST Bounty Winter 2026
BLAST Bounty Winter 2026: Closed Qualifier
eXTREMESLAND 2025
ESL Impact League Season 8
SL Budapest Major 2025
BLAST Rivals Fall 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.