• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 19:02
CET 01:02
KST 09:02
  • 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: Winners10Intel 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
StarCraft, SC2, HotS, WC3, Returning to Blizzcon!45$5,000+ WardiTV 2025 Championship7[BSL21] RO32 Group Stage4Weekly Cups (Oct 26-Nov 2): Liquid, Clem, Solar win; LAN in Philly2Weekly Cups (Oct 20-26): MaxPax, Clem, Creator win10
StarCraft 2
General
Mech is the composition that needs teleportation t StarCraft, SC2, HotS, WC3, Returning to Blizzcon! RotterdaM "Serral is the GOAT, and it's not close" TL.net Map Contest #21: Winners Weekly Cups (Oct 20-26): MaxPax, Clem, Creator win
Tourneys
Constellation Cup - Main Event - Stellar Fest Sparkling Tuna Cup - Weekly Open Tournament $5,000+ WardiTV 2025 Championship Merivale 8 Open - LAN - Stellar Fest Sea Duckling Open (Global, Bronze-Diamond)
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
FlaSh on: Biggest Problem With SnOw's Playstyle [ASL20] Ask the mapmakers — Drop your questions BW General Discussion BGH Auto Balance -> http://bghmmr.eu/ Where's CardinalAllin/Jukado the mapmaker?
Tourneys
[ASL20] Grand Finals [BSL21] RO32 Group A - Saturday 21:00 CET [Megathread] Daily Proleagues [BSL21] RO32 Group B - Sunday 21:00 CET
Strategy
PvZ map balance Current Meta 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 Path of Exile Should offensive tower rushing be viable in RTS games? 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 The Games Industry And ATVI US Politics Mega-thread Russo-Ukrainian War Thread YouTube Thread
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
Formula 1 Discussion 2024 - 2026 Football Thread 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 Recent Gifted Posts
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: 964 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
23:00
OSC Elite Rising Star #17
ReBellioN vs HiGhDrA
Shameless vs Demi
LetaleX vs Mute
Percival vs TBD
CranKy Ducklings90
Liquipedia
BSL 21
20:00
ProLeague - RO32 Group B
spx vs rasowy
HBO vs KameZerg
Cross vs Razz
dxtr13 vs ZZZero
ZZZero.O112
LiquipediaDiscussion
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
White-Ra 312
ProTech118
UpATreeSC 5
StarCraft: Brood War
Artosis 600
ZZZero.O 109
NaDa 22
Super Smash Bros
hungrybox1413
Other Games
Grubby4767
FrodaN2093
fl0m557
B2W.Neo526
Pyrionflax327
Maynarde128
ForJumy 25
JuggernautJason10
Organizations
Other Games
gamesdonequick1359
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 18 non-featured ]
StarCraft 2
• RyuSc2 74
• Hupsaiya 71
• HeavenSC 27
• Kozan
• Migwel
• AfreecaTV YouTube
• sooper7s
• intothetv
• IndyKCrew
• LaughNgamezSOOP
StarCraft: Brood War
• HerbMon 19
• blackmanpl 3
• STPLYoutube
• ZZZeroYoutube
• BSLYoutube
Dota 2
• masondota2912
League of Legends
• imaqtpie3351
Other Games
• Scarra619
Upcoming Events
OSC
8h 58m
Wardi Open
11h 58m
Wardi Open
15h 58m
Replay Cast
22h 58m
WardiTV Korean Royale
1d 11h
Replay Cast
2 days
Kung Fu Cup
2 days
Classic vs Solar
herO vs Cure
Reynor vs GuMiho
ByuN vs ShoWTimE
Tenacious Turtle Tussle
2 days
The PondCast
3 days
RSL Revival
3 days
Solar vs Zoun
MaxPax vs Bunny
[ Show More ]
Kung Fu Cup
3 days
WardiTV Korean Royale
3 days
Replay Cast
3 days
RSL Revival
4 days
Classic vs Creator
Cure vs TriGGeR
Kung Fu Cup
4 days
CranKy Ducklings
5 days
RSL Revival
5 days
herO vs Gerald
ByuN vs SHIN
Kung Fu Cup
5 days
BSL 21
5 days
Tarson vs Julia
Doodle vs OldBoy
eOnzErG vs WolFix
StRyKeR vs Aeternum
Sparkling Tuna Cup
6 days
RSL Revival
6 days
Reynor vs sOs
Maru vs Ryung
Kung Fu Cup
6 days
WardiTV Korean Royale
6 days
BSL 21
6 days
JDConan vs Semih
Dragon vs Dienmax
Tech vs NewOcean
TerrOr vs Artosis
Liquipedia Results

Completed

Proleague 2025-11-07
SC4ALL: StarCraft II
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: 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.