• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 11:01
CEST 17:01
KST 00:01
  • 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
Team Liquid Map Contest #22 - The Finalists12[ASL21] Ro16 Preview Pt1: Fresh Flow9[ASL21] Ro24 Preview Pt2: News Flash10[ASL21] Ro24 Preview Pt1: New Chaos0Team Liquid Map Contest #22 - Presented by Monster Energy21
Community News
2026 GSL Season 1 Qualifiers11Maestros of the Game 2 announced32026 GSL Tour plans announced10Weekly Cups (April 6-12): herO doubles, "Villains" prevail0MaNa leaves Team Liquid20
StarCraft 2
General
MaNa leaves Team Liquid Oliveira Would Have Returned If EWC Continued Team Liquid Map Contest #22 - The Finalists 2026 GSL Tour plans announced Blizzard Classic Cup @ BlizzCon 2026 - $100k prize pool
Tourneys
2026 GSL Season 1 Qualifiers Sparkling Tuna Cup - Weekly Open Tournament Master Swan Open (Global Bronze-Master 2) SEL Doubles (SC Evo Bimonthly) $5,000 WardiTV TLMC tournament - Presented by Monster Energy
Strategy
Custom Maps
[D]RTS in all its shapes and glory <3 [A] Nemrods 1/4 players [M] (2) Frigid Storage
External Content
Mutation # 521 Memorable Boss The PondCast: SC2 News & Results Mutation # 520 Moving Fees Mutation # 519 Inner Power
Brood War
General
Pros React To: Tulbo in Ro.16 Group A mca64Launcher - New Version with StarCraft: Remast BGH Auto Balance -> http://bghmmr.eu/ Data needed BW General Discussion
Tourneys
[ASL21] Ro16 Group B Korean KCM Race Survival 2026 Season 2 [Megathread] Daily Proleagues [ASL21] Ro16 Group A
Strategy
What's the deal with APM & what's its true value Any training maps people recommend? Fighting Spirit mining rates Muta micro map competition
Other Games
General Games
General RTS Discussion Thread Battle Aces/David Kim RTS Megathread Nintendo Switch Thread Stormgate/Frost Giant Megathread Starcraft Tabletop Miniature Game
Dota 2
The Story of Wings Gaming Official 'what is Dota anymore' discussion
League of Legends
G2 just beat GenG in First stand
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
Vanilla Mini Mafia Mafia Game Mode Feedback/Ideas TL Mafia Community Thread Five o'clock TL Mafia
Community
General
US Politics Mega-thread Russo-Ukrainian War Thread Things Aren’t Peaceful in Palestine YouTube Thread Canadian Politics Mega-thread
Fan Clubs
The IdrA Fan Club
Media & Entertainment
Anime Discussion Thread [Req][Books] Good Fantasy/SciFi books [Manga] One Piece Movie Discussion!
Sports
McBoner: A hockey love story 2024 - 2026 Football Thread Formula 1 Discussion Cricket [SPORT]
World Cup 2022
Tech Support
[G] How to Block Livestream Ads
TL Community
The Automated Ban List
Blogs
Reappraising The Situation T…
TrAiDoS
lurker extra damage testi…
StaticNine
Broowar part 2
qwaykee
Funny Nicknames
LUCKY_NOOB
Iranian anarchists: organize…
XenOsky
ASL S21 English Commentary…
namkraft
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1546 users

Sultan and his Viziers - Page 2

Blogs > fanatacist
Post a Reply
Prev 1 2 All
fanatacist
Profile Blog Joined August 2007
10319 Posts
January 31 2008 21:43 GMT
#21
On February 01 2008 06:07 DaasEuGen wrote:
the first vizier looks at someone who has a red hat and says: "red". one can be wrong, so it doesn't matter which colour the hat of the first person has. then the one the first vizier looked at looks at another vizier with a red hat and says "red". this goes on until the perons with the last red hat cannot see any remaining red hats. this person closes his eyes and says "red". this is the signal for the other viziers, that the remaining hats are blue.
Is this wrong?

Yes, because then you get 2 possible mistakes. And making eye contact is under communication n_n.
Peace~
Desade
Profile Joined April 2007
Germany50 Posts
Last Edited: 2008-02-01 00:18:37
February 01 2008 00:15 GMT
#22
On January 31 2008 12:18 fanatacist wrote:
Show nested quote +
On January 31 2008 11:47 Macavenger wrote:
On January 31 2008 11:07 Oceanic wrote:
I'm working on a solution but can you tell me if I'm on the right track?
+ Show Spoiler +
The 1st person says the color of the person after him and he is the person who gets it wrong.


+ Show Spoiler [For Oceanic] +
That breaks down at the third person, as the second person must repeat the answer of the first, giving the third no information. It also isn't stated that the viziers know which order they'll be asked in.


I somehow read that there were 4 viziers the first time I read the problem and solved that.

+ Show Spoiler [Special case for 4 hats] +
The first vizier looks at the three hats visible to him. If he sees a 2-1 split, he announces the color he sees 2 of; if the split is 3-0 he announces the color he sees 0 of. From this, the other 3 can each infer their own hat color - If I'm not first and see the same color on the other two who aren't first, if the first guy calls that color I'm the opposite, whereas if he calls the opposite I'm the same. If I see each color on the other 2, I know I'm whatever color he calls. If the first person's call is wrong, the other 3 all announce their colors correctly, if he happened to be correct with his signal color the last simply "guesses" wrong.


I'm trying to work out a way to generalize that to an unspecified number of hats now.

+ Show Spoiler +
Not knowing whether there's an even number of viziers - and thus whether I can count on the first guy seeing some level of imbalance in the number of hats - is kinda screwing with me at the moment.


Edit: Ok, I got it.

+ Show Spoiler [Solution] +
The first vizier announces red if he sees an odd number of red hats, and blue if he sees an even number of red hats. Since all other viziers can count whether the number of red hats they see not counting the first vizier is odd or even, they can all determine the color of hat they wear from this information. Again, if the first vizier announced his color incorrectly, all the following announce their own correctly; otherwise the last vizier intentionally announces his color incorrectly to meet that condition.


+ Show Spoiler +
That last sentence is unnecessary - only one CAN be wrong - but yes you got it correct, nicely done [:


I really have a problem with these riddles. In this case it's ok cause you offered help on understanding the question correctly. But without further explanation it's really a matter of luck (how u interpret the question at first glance) and not so much an indication of intelligence.

+ Show Spoiler +
I thought for example they'd not be allowed to communicate with each other concerning every aspect, therefore even the part of making a plan. Also I didn't realize what the actual question was. Wether to name the plan they come up with or to determine in which way the sultan places the hats.
So my solution was: They all wear the same colour. Hence when one of them answers incorrectly,
the others know (because they know there can only be one incorrect answer) that they all wear the same colour.
In other words in my interpretation of the problem each visier is on his own and you have to solve it from the point of view of one of them
I love 1 base bos
fanatacist
Profile Blog Joined August 2007
10319 Posts
Last Edited: 2008-02-01 00:33:19
February 01 2008 00:32 GMT
#23
On February 01 2008 09:15 Desade wrote:
Show nested quote +
On January 31 2008 12:18 fanatacist wrote:
On January 31 2008 11:47 Macavenger wrote:
On January 31 2008 11:07 Oceanic wrote:
I'm working on a solution but can you tell me if I'm on the right track?
+ Show Spoiler +
The 1st person says the color of the person after him and he is the person who gets it wrong.


+ Show Spoiler [For Oceanic] +
That breaks down at the third person, as the second person must repeat the answer of the first, giving the third no information. It also isn't stated that the viziers know which order they'll be asked in.


I somehow read that there were 4 viziers the first time I read the problem and solved that.

+ Show Spoiler [Special case for 4 hats] +
The first vizier looks at the three hats visible to him. If he sees a 2-1 split, he announces the color he sees 2 of; if the split is 3-0 he announces the color he sees 0 of. From this, the other 3 can each infer their own hat color - If I'm not first and see the same color on the other two who aren't first, if the first guy calls that color I'm the opposite, whereas if he calls the opposite I'm the same. If I see each color on the other 2, I know I'm whatever color he calls. If the first person's call is wrong, the other 3 all announce their colors correctly, if he happened to be correct with his signal color the last simply "guesses" wrong.


I'm trying to work out a way to generalize that to an unspecified number of hats now.

+ Show Spoiler +
Not knowing whether there's an even number of viziers - and thus whether I can count on the first guy seeing some level of imbalance in the number of hats - is kinda screwing with me at the moment.


Edit: Ok, I got it.

+ Show Spoiler [Solution] +
The first vizier announces red if he sees an odd number of red hats, and blue if he sees an even number of red hats. Since all other viziers can count whether the number of red hats they see not counting the first vizier is odd or even, they can all determine the color of hat they wear from this information. Again, if the first vizier announced his color incorrectly, all the following announce their own correctly; otherwise the last vizier intentionally announces his color incorrectly to meet that condition.


+ Show Spoiler +
That last sentence is unnecessary - only one CAN be wrong - but yes you got it correct, nicely done [:


I really have a problem with these riddles. In this case it's ok cause you offered help on understanding the question correctly. But without further explanation it's really a matter of luck (how u interpret the question at first glance) and not so much an indication of intelligence.

+ Show Spoiler +
I thought for example they'd not be allowed to communicate with each other concerning every aspect, therefore even the part of making a plan. Also I didn't realize what the actual question was. Wether to name the plan they come up with or to determine in which way the sultan places the hats.
So my solution was: They all wear the same colour. Hence when one of them answers incorrectly,
the others know (because they know there can only be one incorrect answer) that they all wear the same colour.
In other words in my interpretation of the problem each visier is on his own and you have to solve it from the point of view of one of them

+ Show Spoiler +
That's a pretty twisted interpretation o;

Peace~
DaasEuGen
Profile Blog Joined May 2007
Germany35 Posts
Last Edited: 2008-02-01 19:02:51
February 01 2008 11:58 GMT
#24
On February 01 2008 06:43 fanatacist wrote:
Show nested quote +
On February 01 2008 06:07 DaasEuGen wrote:
the first vizier looks at someone who has a red hat and says: "red". one can be wrong, so it doesn't matter which colour the hat of the first person has. then the one the first vizier looked at looks at another vizier with a red hat and says "red". this goes on until the perons with the last red hat cannot see any remaining red hats. this person closes his eyes and says "red". this is the signal for the other viziers, that the remaining hats are blue.
Is this wrong?

Yes, because then you get 2 possible mistakes. And making eye contact is under communication n_n.

1. Where do you see 2 mistakes? i see only one, the first vizier
2. Then you should have made clear what you mean when you define as communication. if i one vizier tells the others + Show Spoiler +
if there is a odd or even number of red hats
, that is as much communication as eye conntact.
fanatacist
Profile Blog Joined August 2007
10319 Posts
February 01 2008 12:11 GMT
#25
On February 01 2008 20:58 DaasEuGen wrote:
Show nested quote +
On February 01 2008 06:43 fanatacist wrote:
On February 01 2008 06:07 DaasEuGen wrote:
the first vizier looks at someone who has a red hat and says: "red". one can be wrong, so it doesn't matter which colour the hat of the first person has. then the one the first vizier looked at looks at another vizier with a red hat and says "red". this goes on until the perons with the last red hat cannot see any remaining red hats. this person closes his eyes and says "red". this is the signal for the other viziers, that the remaining hats are blue.
Is this wrong?

Yes, because then you get 2 possible mistakes. And making eye contact is under communication n_n.

1. Where do you see 2 mistakes? i see only one, the first vizier
2. Then you should have made clear what you mean when you define as communication. if i one vizier tells the others + Show Spoiler +
if there is a odd or even number of red hats
, that is as much communication as eye conntact.

1. Nevermind, I missed the bit where he closed his eyes.
2. ... I'm not going to list every possible method of communication or define it in textbook terminologies. It is self-evident that communication means the transfer of information, and making eye contact or choosing not to do so is transferring information. Also, what? They are allowed to strategize BEFORE the test, which is when the viziers plan that there will be + Show Spoiler +
an even or odd amount of a certain color hats
. You clearly missed the point of the solution - please re-read it.
Peace~
DaasEuGen
Profile Blog Joined May 2007
Germany35 Posts
February 01 2008 19:22 GMT
#26
in your solution they are also transfering information. i thought the aim was to let the sultan think that there is no communication, and if you make only subtile eyecontact it looks like the viziers don't communicate. in my oppinion its the same for your solution, it looks like they dont communicate, but they do. but i think the problem is not accurate enough in its description (thats the reason why i normally don't like such problems), so if by "They are not allowed to communicate with each other in any way" is meant they they still can communicate by saying "red" or "blue", the my solution is of course wrong
fanatacist
Profile Blog Joined August 2007
10319 Posts
February 02 2008 00:38 GMT
#27
... No offense man but you're sounding pretty dumb. Red and blue is the only thing they are allowed to say, that is said from the beginning - to realize that it can be used as a method is the strategy itself. Let me repeat myself - it's the only thing they are allowed to do once the game starts.
Peace~
DaasEuGen
Profile Blog Joined May 2007
Germany35 Posts
February 02 2008 12:24 GMT
#28
i think you don't understand me. it is said: "hey are not allowed to communicate with each other in any way". saying red or blue is a method of communicating, there are no exceptions made for this case. if you solution is right, imao mine should also be right. but let us say you are right and i am wrong, i am tired of arguing and your blog should not be about two people arguing if the solution to a problem is right or wrong.
Zherak
Profile Blog Joined November 2007
Norway256 Posts
February 02 2008 13:53 GMT
#29
This is the problem with putting riddles in context - DaasEuGen's answer is indeed some sort of solution, though a lot weaker one than the 'correct solution'. The 'correct solution' is better, though, because it doesn't rely on the viziers having to make eye-contact, only on hearing each other's answers.
The bowsprit got mixed with the rudder sometimes...
fanatacist
Profile Blog Joined August 2007
10319 Posts
February 02 2008 14:51 GMT
#30
On February 02 2008 21:24 DaasEuGen wrote:
i think you don't understand me. it is said: "hey are not allowed to communicate with each other in any way". saying red or blue is a method of communicating, there are no exceptions made for this case. if you solution is right, imao mine should also be right. but let us say you are right and i am wrong, i am tired of arguing and your blog should not be about two people arguing if the solution to a problem is right or wrong.

I understood you perfectly, but if there was no possible form of communication at all, there would be no point to this problem. The proper solutions works within the limits of the problem - no communication, except the ability to say "red" or "blue". The fact that a person has to come to the conclusion that using this as a form of communication is in itself the answer to the riddle. Trying to use some sort of trick form of communication in order to get to the same result and saying that red and blue are communication too is faulty, seeing as they are explicitly allowed to say red and blue, as it is essential to both the solution and the set-up of the problem. Why not just make them Morse code the color of each other's hats to each other, if we use your method? Then they can have any color hat on their head and they will know!
Peace~
BottleAbuser
Profile Blog Joined December 2007
Korea (South)1888 Posts
Last Edited: 2008-02-02 18:07:13
February 02 2008 18:05 GMT
#31
Should make that part of the problem description: they not only know color of every other vizier's hat, they know every previous vizier's guess.

It's possible for a problem to be constructed without even that, where no one knows what anyone else picked.

Also, the given solutions only work if there is a finite number of viziers. I think.
Compilers are like boyfriends, you miss a period and they go crazy on you.
fanatacist
Profile Blog Joined August 2007
10319 Posts
February 02 2008 21:02 GMT
#32
On February 03 2008 03:05 BottleAbuser wrote:
Should make that part of the problem description: they not only know color of every other vizier's hat, they know every previous vizier's guess.

It's possible for a problem to be constructed without even that, where no one knows what anyone else picked.

Also, the given solutions only work if there is a finite number of viziers. I think.

Uh, that's pretty obvious, since they say it aloud? And wouldn't that give away the answer?

Once again, I'm not going to include a list of things you can't do or the exact subtleties of what is allowed - the solution and problem are what they are.

And yea, how are you going to have an infinite amount of viziers?
Peace~
BottleAbuser
Profile Blog Joined December 2007
Korea (South)1888 Posts
February 03 2008 01:59 GMT
#33
Eh. See this problem, here. We're not constrained by real logistics, right?
Compilers are like boyfriends, you miss a period and they go crazy on you.
fanatacist
Profile Blog Joined August 2007
10319 Posts
February 03 2008 15:47 GMT
#34
On February 03 2008 10:59 BottleAbuser wrote:
Eh. See this problem, here. We're not constrained by real logistics, right?

The mental leap to realizing that they know the hat colors of all those before them, and thus using that information as communication, is essential to this problem, is what I'm trying to say. Give away a part of it in the problem description and that makes the solution that much easier to arrive at.
Peace~
Prev 1 2 All
Please log in or register to reply.
Live Events Refresh
WardiTV Map Contest Tou…
11:00
Group A
WardiTV1069
IndyStarCraft 207
TKL 188
Rex113
3DClanTV 49
EnkiAlexander 34
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
IndyStarCraft 207
TKL 188
LamboSC2 182
Rex 113
StarCraft: Brood War
Britney 40700
Calm 6443
Bisu 2762
Jaedong 1526
Horang2 1463
Soma 683
Mini 445
Larva 419
Light 267
Soulkey 231
[ Show more ]
actioN 227
ggaemo 226
Rush 193
Leta 136
PianO 74
Backho 72
Aegong 66
hero 65
Shinee 57
Pusan 51
sorry 50
Hyun 49
Sea.KH 42
Hm[arnc] 22
Sexy 19
yabsab 18
JYJ 15
IntoTheRainbow 15
Terrorterran 14
Sacsri 12
GoRush 10
SilentControl 8
Free 7
Rock 6
Dota 2
Gorgc4384
qojqva1814
Counter-Strike
fl0m1370
Heroes of the Storm
XaKoH 106
Other Games
singsing1725
Liquid`RaSZi1344
B2W.Neo605
Beastyqt441
Lowko324
Hui .141
ArmadaUGS84
Mew2King78
RotterdaM67
QueenE58
KnowMe49
Trikslyr30
FrodaN0
Organizations
Counter-Strike
PGL161
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 17 non-featured ]
StarCraft 2
• StrangeGG 33
• iHatsuTV 4
• sooper7s
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
StarCraft: Brood War
• Michael_bg 10
• HerbMon 2
• STPLYoutube
• ZZZeroYoutube
• BSLYoutube
Dota 2
• Noizen39
League of Legends
• Jankos1683
• TFBlade1584
Upcoming Events
Replay Cast
9h
Escore
19h
WardiTV Map Contest Tou…
20h
OSC
1d
Korean StarCraft League
1d 12h
CranKy Ducklings
1d 19h
WardiTV Map Contest Tou…
1d 20h
IPSL
2 days
WolFix vs nOmaD
dxtr13 vs Razz
BSL
2 days
UltrA vs KwarK
Gosudark vs cavapoo
dxtr13 vs HBO
Doodle vs Razz
CranKy Ducklings
2 days
[ Show More ]
Sparkling Tuna Cup
2 days
WardiTV Map Contest Tou…
2 days
Ladder Legends
3 days
BSL
3 days
StRyKeR vs rasowy
Artosis vs Aether
JDConan vs OyAji
Hawk vs izu
IPSL
3 days
JDConan vs TBD
Aegong vs rasowy
Replay Cast
3 days
Wardi Open
3 days
Afreeca Starleague
3 days
Bisu vs Ample
Jaedong vs Flash
Monday Night Weeklies
4 days
RSL Revival
4 days
Afreeca Starleague
4 days
Barracks vs Leta
Royal vs Light
WardiTV Map Contest Tou…
4 days
RSL Revival
5 days
Replay Cast
6 days
The PondCast
6 days
WardiTV Map Contest Tou…
6 days
Liquipedia Results

Completed

Proleague 2026-04-15
RSL Revival: Season 4
NationLESS Cup

Ongoing

BSL Season 22
ASL Season 21
CSL 2026 SPRING (S20)
IPSL Spring 2026
KCM Race Survival 2026 Season 2
StarCraft2 Community Team League 2026 Spring
WardiTV TLMC #16
Nations Cup 2026
IEM Rio 2026
PGL Bucharest 2026
Stake Ranked Episode 1
BLAST Open Spring 2026
ESL Pro League S23 Finals
ESL Pro League S23 Stage 1&2
PGL Cluj-Napoca 2026
IEM Kraków 2026

Upcoming

Escore Tournament S2: W3
Escore Tournament S2: W4
Acropolis #4
BSL 22 Non-Korean Championship
CSLAN 4
Kung Fu Cup 2026 Grand Finals
HSC XXIX
uThermal 2v2 2026 Main Event
2026 GSL S2
RSL Revival: Season 5
2026 GSL S1
XSE Pro League 2026
IEM Cologne Major 2026
Stake Ranked Episode 2
CS Asia Championships 2026
IEM Atlanta 2026
Asian Champions League 2026
PGL Astana 2026
BLAST Rivals Spring 2026
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 © 2026 TLnet. All Rights Reserved.