• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 15:29
CET 21:29
KST 05:29
  • 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 Revival - 2025 Season Finals Preview8RSL Season 3 - Playoffs Preview0RSL Season 3 - RO16 Groups C & D Preview0RSL Season 3 - RO16 Groups A & B Preview2TL.net Map Contest #21: Winners12
Community News
ComeBackTV's documentary on Byun's Career !3Weekly Cups (Dec 8-14): MaxPax, Clem, Cure win2Weekly Cups (Dec 1-7): Clem doubles, Solar gets over the hump1Weekly Cups (Nov 24-30): MaxPax, Clem, herO win2BGE Stara Zagora 2026 announced15
StarCraft 2
General
ComeBackTV's documentary on Byun's Career ! Weekly Cups (Dec 8-14): MaxPax, Clem, Cure win Did they add GM to 2v2? RSL Revival - 2025 Season Finals Preview Weekly Cups (Dec 1-7): Clem doubles, Solar gets over the hump
Tourneys
Master Swan Open (Global Bronze-Master 2) Winter Warp Gate Amateur Showdown #1: Sparkling Tuna Cup - Weekly Open Tournament $5,000+ WardiTV 2025 Championship StarCraft2.fi 15th Anniversary Cup
Strategy
Custom Maps
Map Editor closed ?
External Content
Mutation # 504 Retribution Mutation # 503 Fowl Play Mutation # 502 Negative Reinforcement Mutation # 501 Price of Progress
Brood War
General
How Rain Became ProGamer in Just 3 Months FlaSh on: Biggest Problem With SnOw's Playstyle BGH Auto Balance -> http://bghmmr.eu/ [BSL21] RO8 Bracket & Prediction Contest BW General Discussion
Tourneys
[Megathread] Daily Proleagues [BSL21] RO8 - Day 2 - Sunday 21:00 CET [ASL20] Grand Finals [BSL21] RO8 - Day 1 - Saturday 21:00 CET
Strategy
Game Theory for Starcraft Simple Questions, Simple Answers Current Meta Fighting Spirit mining rates
Other Games
General Games
General RTS Discussion Thread Stormgate/Frost Giant Megathread Dawn of War IV Nintendo Switch Thread PC Games Sales 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
Mafia Game Mode Feedback/Ideas Survivor II: The Amazon Sengoku Mafia TL Mafia Community Thread
Community
General
US Politics Mega-thread Russo-Ukrainian War Thread Things Aren’t Peaceful in Palestine YouTube Thread European Politico-economics QA Mega-thread
Fan Clubs
White-Ra Fan Club
Media & Entertainment
Anime Discussion Thread [Manga] One Piece Movie Discussion!
Sports
2024 - 2026 Football Thread Formula 1 Discussion
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
TL+ Announced Where to ask questions and add stream?
Blogs
How Sleep Deprivation Affect…
TrAiDoS
I decided to write a webnov…
DjKniteX
James Bond movies ranking - pa…
Topin
Thanks for the RSL
Hildegard
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1809 users

Math Puzzle - 7 Hats - Page 3

Blogs > Slithe
Post a Reply
Prev 1 2 3 4 5 6 7 Next All
Black Gun
Profile Blog Joined July 2009
Germany4482 Posts
September 09 2010 21:28 GMT
#41
On September 10 2010 06:27 The_Pacifist wrote:
AcrossFiveJulys believes my answer is invalid and uses communication, so I came up with option two:

+ Show Spoiler +
Prisoners meet and introduce themselves before getting the hats and sitting at the table. One person introduces himself as "Bob," and all the prisoners agree to write down the color of Bob's hat, whatever it happens to be, once they all sit down and get hats.


Cookie nao? :3

what if bob has color A and all the 6 other prisoners got color B? then this method doesnt work...
"What am I supposed to do against this?" - "Lose!" :-]
popnfreshspk
Profile Blog Joined September 2007
United States93 Posts
Last Edited: 2010-09-09 21:31:27
September 09 2010 21:28 GMT
#42
So why not assume that all the people are completely logical and rational.

Then have one person say a color that he sees. Then the remaining 6 prisoners all say that same color.

Eventually they'll get it right.

*edit* nevermind. They're not saying the colors out loud.
hey you
Stenstyren
Profile Blog Joined April 2010
Sweden619 Posts
September 09 2010 21:28 GMT
#43
Are you sure that you have not left out any rules? Because as it stands right now I can not see a single way that this can be solved since there is NO 100% way of knowing what color your hat has.

Doesn't matter what the other guys are wearing, you could be alone with your hat and still have the exact same chance of calculating the right answer.

Although, if they know the colors beforehand they can simply designate one person to each color so that all seven colors are covered and thereby auto-win. That would be really easy but you said this was a math-problem so...
Seth_
Profile Blog Joined July 2010
Belgium184 Posts
Last Edited: 2010-09-09 21:31:45
September 09 2010 21:30 GMT
#44
On September 10 2010 06:27 AcrossFiveJulys wrote:
I think this is the solution. If all the hats are a different color the chosen guy gets it right, if there are repeats then the other guy wearing the same color as the chosen guy gets it. Well done.

unless the repeat does not include the chosen guy ;-)

Bob => red
everyone else => blue

1/6 chance for Bob to save the team.
The_Pacifist
Profile Blog Joined May 2010
United States540 Posts
September 09 2010 21:30 GMT
#45
On September 10 2010 06:28 Black Gun wrote:
Show nested quote +
On September 10 2010 06:27 The_Pacifist wrote:
AcrossFiveJulys believes my answer is invalid and uses communication, so I came up with option two:

+ Show Spoiler +
Prisoners meet and introduce themselves before getting the hats and sitting at the table. One person introduces himself as "Bob," and all the prisoners agree to write down the color of Bob's hat, whatever it happens to be, once they all sit down and get hats.


Cookie nao? :3

what if bob has color A and all the 6 other prisoners got color B? then this method doesnt work...


It doesn't matter. The conditions state that only one person has to get the correct answer. Whether Bob is right or wrong, there is still a 100% chance that all the prisoners will go free, according to the game's rules.
Klive5ive
Profile Blog Joined January 2008
United Kingdom6056 Posts
September 09 2010 21:30 GMT
#46
On September 10 2010 06:27 AcrossFiveJulys wrote:
Show nested quote +
On September 10 2010 06:07 0nega wrote:
Hello!

lurked at this site for some time and couldn't resist to post the solution(hopefully)

+ Show Spoiler +
Before they get the hats, they agree, that they will all take the colour of the hat of one guy, this guy instead takes the colour which no hat he sees has


I think this is the solution. If all the hats are a different color the chosen guy gets it right, if there are repeats then the other guy wearing the same color as the chosen guy gets it. Well done.

What if his hat is red and every other hat is yellow?
They are all going to pick yellow and fail, then he has a 1 in 6 chance of getting it right.
Don't hate the player - Hate the game
tissue
Profile Joined April 2009
Malaysia441 Posts
September 09 2010 21:31 GMT
#47
Could the OP clarify that no prisoner has access to any information whatsoever other than the color of the hats, and whatever they decided beforehand?

This includes: timing of writing, what other people are writing, etc
AcrossFiveJulys
Profile Blog Joined September 2005
United States3612 Posts
September 09 2010 21:31 GMT
#48
On September 10 2010 06:30 Seth_ wrote:
Show nested quote +
On September 10 2010 06:27 AcrossFiveJulys wrote:
I think this is the solution. If all the hats are a different color the chosen guy gets it right, if there are repeats then the other guy wearing the same color as the chosen guy gets it. Well done.

unless the repeat does not include the chosen guy ;-)

Bob => red
everyone else => blue

1/7 chance for Bob to save the team.


Ah, that's true. I think we are getting closer though.
Black Gun
Profile Blog Joined July 2009
Germany4482 Posts
September 09 2010 21:31 GMT
#49
On September 10 2010 06:28 Stenstyren wrote:
Are you sure that you have not left out any rules? Because as it stands right now I can not see a single way that this can be solved since there is NO 100% way of knowing what color your hat has.

Doesn't matter what the other guys are wearing, you could be alone with your hat and still have the exact same chance of calculating the right answer.

Although, if they know the colors beforehand they can simply designate one person to each color so that all seven colors are covered and thereby auto-win. That would be really easy but you said this was a math-problem so...



if everyone tells one color they can still fail. lets denote A the color which prisoner 1 decides to write down, B the color of prisoner 2 and so on. if now the hats are put to the prisoners in the order "1-B,2-C,...,7-A", everyone guesses wrong with this method and their heads are gonna roll...
"What am I supposed to do against this?" - "Lose!" :-]
LunarDestiny
Profile Blog Joined August 2008
United States4177 Posts
September 09 2010 21:32 GMT
#50
Communication is not allowed, but in what form? Direct or indirect?

Is this allowed?
They assign themselves as follow.
Guy1 sacrifices himself if he sees 6 people with the same color.
Guy2 sacrifices himself if he sees 5 people with the same color.
Guy3 sacrifices himself if he sees 4 people with the same color.
...

I know this is not likely to be the correct step, but is this form of communication allowed?
Klive5ive
Profile Blog Joined January 2008
United Kingdom6056 Posts
September 09 2010 21:32 GMT
#51
How about where they sit? Can they choose where they sit AFTER they have seen each others hats?
Don't hate the player - Hate the game
The_Pacifist
Profile Blog Joined May 2010
United States540 Posts
September 09 2010 21:33 GMT
#52
If any of the prisoners guesses their hat color correctly, they will all go free. Otherwise, they are all executed on the spot.


Please do not forget this rule. 100% survival rate does not mean that everyone has to be right. It only means that at least 1 person has to get it right each time it's played.

0nega's solution still works.
Slithe
Profile Blog Joined February 2007
United States985 Posts
September 09 2010 21:34 GMT
#53
On September 10 2010 06:31 tissue wrote:
Could the OP clarify that no prisoner has access to any information whatsoever other than the color of the hats, and whatever they decided beforehand?

This includes: timing of writing, what other people are writing, etc


Correct, there is no communication. No timing, no looking at other people's writing, or anything else of this gimmicky nature.
Seth_
Profile Blog Joined July 2010
Belgium184 Posts
September 09 2010 21:35 GMT
#54
On September 10 2010 06:32 LunarDestiny wrote:
Is this allowed?
They assign themselves as follow.
Guy1 sacrifices himself if he sees 6 people with the same color.
Guy2 sacrifices himself if he sees 5 people with the same color.
Guy3 sacrifices himself if he sees 4 people with the same color.

don't know what you mean by sacrificing, but there's nothing wrong with that, since the prisoners only follow the rules they discussed beforehand and don't act on anything other than the color of the hats.

BottleAbuser
Profile Blog Joined December 2007
Korea (South)1888 Posts
September 09 2010 21:35 GMT
#55
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.

Well, it's impossible without cheating. You have no additional information. No matter what the other prisoners' hats are, your own color is equally likely from among the 7 colors in the pool.

That is, if x is the event that your hat is color x, then

P(x) = 1/7

If y1 is the event that the 6 other prisoners' hats are of a particular ordered sequence, then

P(x | y) = 1/7, still. In fact, for any y, P(x | y) = 1/7.

In short, there is no way to improve on the completely random guess.
Compilers are like boyfriends, you miss a period and they go crazy on you.
Slithe
Profile Blog Joined February 2007
United States985 Posts
September 09 2010 21:36 GMT
#56
On September 10 2010 06:33 The_Pacifist wrote:
Show nested quote +
If any of the prisoners guesses their hat color correctly, they will all go free. Otherwise, they are all executed on the spot.


Please do not forget this rule. 100% survival rate does not mean that everyone has to be right. It only means that at least 1 person has to get it right each time it's played.

0nega's solution still works.


0nega's solution does not work, as multiple people have demonstrated with the simple case.

Guy has red hat.
Others have blue hat.

Guy guesses yellow, or purple, or whatever other colors are in the pool besides blue.
Others guess red.

They all get it wrong.
Nytefish
Profile Blog Joined December 2007
United Kingdom4282 Posts
September 09 2010 21:37 GMT
#57
Do they all have to hand their answer into the king at the same time, or can they go one by one?
No I'm never serious.
Klive5ive
Profile Blog Joined January 2008
United Kingdom6056 Posts
September 09 2010 21:37 GMT
#58
On September 10 2010 06:34 Slithe wrote:
Show nested quote +
On September 10 2010 06:31 tissue wrote:
Could the OP clarify that no prisoner has access to any information whatsoever other than the color of the hats, and whatever they decided beforehand?

This includes: timing of writing, what other people are writing, etc


Correct, there is no communication. No timing, no looking at other people's writing, or anything else of this gimmicky nature.

Yes there is, tell us the gimmick already.
Is it that they can see the others hats as they sit at the table?
Don't hate the player - Hate the game
jiabung
Profile Blog Joined December 2007
United States720 Posts
September 09 2010 21:38 GMT
#59
On September 10 2010 06:27 AcrossFiveJulys wrote:
Show nested quote +
On September 10 2010 06:07 0nega wrote:
Hello!

lurked at this site for some time and couldn't resist to post the solution(hopefully)

+ Show Spoiler +
Before they get the hats, they agree, that they will all take the colour of the hat of one guy, this guy instead takes the colour which no hat he sees has


I think this is the solution. If all the hats are a different color the chosen guy gets it right, if there are repeats then the other guy wearing the same color as the chosen guy gets it. Well done.

I don't think this is right.

If the colors are ROYGBBV (2 blues) and the guy they decide on beforehand is wearing say a red hat, then 6 of the prisoners would pick red. They would all be wrong. The last prisoner would then see OYGBBV as the remaining colors and would still have to guess between R (red) and I (indigo).

Same thing if there were 6 red hats and 1 blue hat. If they agreed to choose the color of the blue-hatted guy, what color is the blue-hatted guy going to choose?

This wouldn't work 100% of the time if there were any multiples of any color.
saltywet
Profile Blog Joined August 2009
Hong Kong1316 Posts
September 09 2010 21:40 GMT
#60
On September 10 2010 06:36 Slithe wrote:
Show nested quote +
On September 10 2010 06:33 The_Pacifist wrote:
If any of the prisoners guesses their hat color correctly, they will all go free. Otherwise, they are all executed on the spot.


Please do not forget this rule. 100% survival rate does not mean that everyone has to be right. It only means that at least 1 person has to get it right each time it's played.

0nega's solution still works.


0nega's solution does not work, as multiple people have demonstrated with the simple case.

Guy has red hat.
Others have blue hat.

Guy guesses yellow, or purple, or whatever other colors are in the pool besides blue.
Others guess red.

They all get it wrong.



if there is no form of communication, even indirect communication there is no way to get 100% probability. unless you mean 99.999999% rounded up, perhaps some people can find a way
Prev 1 2 3 4 5 6 7 Next All
Please log in or register to reply.
Live Events Refresh
OSC
17:00
OSC Elite Rising Star #17
Shameless vs YoungYakovLIVE!
SteadfastSC351
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
SteadfastSC 372
ProTech145
NeuroSwarm 35
StarCraft: Brood War
Britney 14298
Calm 1557
EffOrt 368
Dewaltoss 196
ggaemo 97
Mong 31
Movie 21
yabsab 18
Dota 2
Dendi1468
Counter-Strike
Foxcn466
minikerr33
Heroes of the Storm
Liquid`Hasu374
Other Games
Grubby3349
FrodaN1390
Beastyqt660
B2W.Neo541
Fuzer 403
ArmadaUGS148
XaKoH 110
C9.Mang099
QueenE80
Trikslyr56
ZombieGrub21
Chillindude16
Organizations
Other Games
BasetradeTV17
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 17 non-featured ]
StarCraft 2
• Reevou 14
• Kozan
• LaughNgamezSOOP
• sooper7s
• AfreecaTV YouTube
• intothetv
• Migwel
• IndyKCrew
StarCraft: Brood War
• Pr0nogo 1
• STPLYoutube
• ZZZeroYoutube
• BSLYoutube
Dota 2
• WagamamaTV904
League of Legends
• Nemesis3053
• TFBlade1162
Other Games
• imaqtpie1422
• Shiphtur193
Upcoming Events
The PondCast
13h 31m
WardiTV 2025
16h 31m
Cure vs Creator
TBD vs Solar
WardiTV 2025
1d 14h
OSC
1d 17h
CranKy Ducklings
2 days
SC Evo League
2 days
Ladder Legends
2 days
BSL 21
2 days
Sparkling Tuna Cup
3 days
Ladder Legends
3 days
[ Show More ]
BSL 21
3 days
Replay Cast
4 days
Monday Night Weeklies
4 days
WardiTV Invitational
6 days
Liquipedia Results

Completed

Acropolis #4 - TS3
RSL Offline Finals
Kuram Kup

Ongoing

C-Race Season 1
IPSL Winter 2025-26
KCM Race Survival 2025 Season 4
YSL S2
BSL Season 21
Slon Tour Season 2
WardiTV 2025
META Madness #9
SL Budapest Major 2025
ESL Impact League Season 8
BLAST Rivals Fall 2025
IEM Chengdu 2025
PGL Masters Bucharest 2025
Thunderpick World Champ.
CS Asia Championships 2025
ESL Pro League S22

Upcoming

CSL 2025 WINTER (S19)
BSL 21 Non-Korean Championship
Acropolis #4
IPSL Spring 2026
Bellum Gens Elite Stara Zagora 2026
HSC XXVIII
Big Gabe Cup #3
OSC Championship Season 13
ESL Pro League Season 23
PGL Cluj-Napoca 2026
IEM Kraków 2026
BLAST Bounty Winter 2026
BLAST Bounty Winter Qual
eXTREMESLAND 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.