• 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 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
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.