• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 09:18
CET 15:18
KST 23:18
  • 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
Weekly Cups (Dec 15-21): Classic wins big, MaxPax & Clem take weeklies1ComeBackTV's documentary on Byun's Career !10Weekly Cups (Dec 8-14): MaxPax, Clem, Cure win4Weekly Cups (Dec 1-7): Clem doubles, Solar gets over the hump1Weekly Cups (Nov 24-30): MaxPax, Clem, herO win2
StarCraft 2
General
Weekly Cups (Dec 15-21): Classic wins big, MaxPax & Clem take weeklies ComeBackTV's documentary on Byun's Career ! Micro Lags When Playing SC2? When will we find out if there are more tournament Weekly Cups (Dec 8-14): MaxPax, Clem, Cure win
Tourneys
$5,000+ WardiTV 2025 Championship Sparkling Tuna Cup - Weekly Open Tournament $100 Prize Pool - Winter Warp Gate Masters Showdow Winter Warp Gate Amateur Showdown #1 RSL Offline Finals Info - Dec 13 and 14!
Strategy
Custom Maps
Map Editor closed ?
External Content
Mutation # 505 Rise From Ashes Mutation # 504 Retribution Mutation # 503 Fowl Play Mutation # 502 Negative Reinforcement
Brood War
General
Klaucher discontinued / in-game color settings BGH Auto Balance -> http://bghmmr.eu/ Anyone remember me from 2000s Bnet EAST server? How Rain Became ProGamer in Just 3 Months FlaSh on: Biggest Problem With SnOw's Playstyle
Tourneys
[BSL21] LB QuarterFinals - Sunday 21:00 CET Small VOD Thread 2.0 [Megathread] Daily Proleagues [BSL21] WB SEMIFINALS - Saturday 21:00 CET
Strategy
Simple Questions, Simple Answers Game Theory for Starcraft Current Meta Fighting Spirit mining rates
Other Games
General Games
Stormgate/Frost Giant Megathread Beyond All Reason Path of Exile General RTS Discussion Thread 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
Mafia Game Mode Feedback/Ideas Survivor II: The Amazon Sengoku Mafia TL Mafia Community Thread
Community
General
US Politics Mega-thread The Games Industry And ATVI Russo-Ukrainian War Thread Things Aren’t Peaceful in Palestine YouTube 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
The (Hidden) Drug Problem in…
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: 1532 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
Wardi Open
12:00
Monday #66
WardiTV1358
TKL 286
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
Lowko453
TKL 286
BRAT_OK 96
StarCraft: Brood War
Bisu 2631
Sea 1975
Larva 813
Soma 796
Mini 605
Stork 584
Light 503
GuemChi 453
firebathero 412
ggaemo 327
[ Show more ]
Snow 320
hero 236
Rush 211
PianO 155
Sharp 145
Killer 129
Pusan 73
Mong 73
Aegong 60
Yoon 59
ToSsGirL 56
sorry 48
soO 40
Movie 34
Shinee 23
Terrorterran 21
910 19
yabsab 18
ajuk12(nOOB) 15
zelot 13
Bale 12
SilentControl 7
Sacsri 7
Oya187 0
Dota 2
singsing5204
XcaliburYe602
syndereN89
League of Legends
Reynor1
Counter-Strike
olofmeister2423
zeus1061
oskar139
Heroes of the Storm
Khaldor195
Other Games
Happy425
Fuzer 404
crisheroes349
hiko218
RotterdaM214
Mew2King92
nookyyy 51
QueenE48
Chillindude19
Organizations
StarCraft: Brood War
Kim Chul Min (afreeca) 9
lovetv 8
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 14 non-featured ]
StarCraft 2
• StrangeGG 64
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Dota 2
• WagamamaTV785
League of Legends
• Nemesis1463
• TFBlade90
Upcoming Events
Monday Night Weeklies
2h 43m
WardiTV Invitational
1d 21h
Replay Cast
2 days
WardiTV Invitational
2 days
ByuN vs Solar
Clem vs Classic
Cure vs herO
Reynor vs MaxPax
Replay Cast
4 days
Sparkling Tuna Cup
5 days
Replay Cast
6 days
Wardi Open
6 days
Liquipedia Results

Completed

YSL S2
WardiTV 2025
META Madness #9

Ongoing

C-Race Season 1
IPSL Winter 2025-26
KCM Race Survival 2025 Season 4
BSL Season 21
Slon Tour Season 2
CSL Season 19: Qualifier 2
eXTREMESLAND 2025
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
Nations Cup 2026
ESL Pro League Season 23
PGL Cluj-Napoca 2026
IEM Kraków 2026
BLAST Bounty Winter 2026
BLAST Bounty Winter Qual
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.