• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 03:01
CEST 09:01
KST 16: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
Serral wins HomeStory Cup 2914Serral wins Maestros of the Game 243ByuL, and the Limitations of Standard Play3Team Liquid Map Contest #22: Results and Winners7Code S Season 2 (2026): RO4 and Finals Preview12
Community News
Balance hotfix patch 5.0.16b (July 16)12Reynor: GSL Loss Wasn't About Preparation Format13[IPSL] Spring 2026 Grand Finals - This Weekend!5Weekly Cups (July 6 - 12): Protoss strike back12BSL Season 22 Full Overview & Conclusion8
StarCraft 2
General
Balance hotfix patch 5.0.16b (July 16) Reynor: GSL Loss Wasn't About Preparation Format Is the larve respawn broken? 5.0.16 patch for SC2 goes live (8 worker start) BGE Stara Zagora to be held again in June 2025
Tourneys
Master Swan Open (Global Bronze-Master 2) WardiTV Summer Cup 2026 GSL CK #5 Race War RSL Revival: Season 6 - Qualifiers and Main Event HomeStory Cup 29
Strategy
[G] Having the right mentality to improve
Custom Maps
New Map Maker - Looking for Advice - Love or Hate Work In Progress Melee Maps [D]RTS in all its shapes and glory <3
External Content
The PondCast: SC2 News & Results Mutation # 534 Burning Evacuation Mutation # 533 Die Together Mutation # 532 Nuclear Family
Brood War
General
Etiquete rules in Asl? Recommended FPV games (post-KeSPA) Pros Debate: Zerg Unfairly Nerfed? (ASL S22 map) BGH Auto Balance -> http://bghmmr.eu/ screpdb: new Starcraft reporting tool
Tourneys
[IPSL] Spring 2026 Grand Finals - This Weekend! Escore Tournament - Season 3 [Megathread] Daily Proleagues [ASL22] Wildcard Qualifier
Strategy
Fighting Spirit mining rates Simple Questions, Simple Answers Creating a full chart of Zerg builds Relatively freeroll strategies
Other Games
General Games
Path of Exile General RTS Discussion Thread Beyond All Reason Nintendo Switch Thread Stormgate/Frost Giant Megathread
Dota 2
Looking for a Dota Mentor 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
TL Mafia
TL Mafia Power Rank NeO.D_StephenKing vs This Guy From 1 Million Dance TL Mafia Community Thread Vanilla Mini Mafia
Community
General
US Politics Mega-thread Russo-Ukrainian War Thread UK Politics Mega-thread YouTube Thread Canadian Politics Mega-thread
Fan Clubs
The IdrA Fan Club The HerO Fan Club!
Media & Entertainment
Movie Discussion! Anime Discussion Thread [Req][Books] Good Fantasy/SciFi books Series you have seen recently...
Sports
2024 - 2026 Football Thread MLB/Baseball 2023 McBoner: A hockey love story Tennis[sport] Formula 1 Discussion
World Cup 2022
Tech Support
Simple Questions Simple Answers FPS when play League Of Legend on laptop How to clean a TTe Thermaltake keyboard?
TL Community
The Automated Ban List Northern Ireland Global Starcraft
Blogs
Poker (part 2)
Nebuchad
The Experiences We Want and …
TrAiDoS
An Exploration of th…
waywardstrategy
Gauntlet SC2: A Retrospectiv…
Ctone23
ramps on octagon
StaticNine
Funny Nicknames
LUCKY_NOOB
Evil Gacha Games and the…
ffswowsucks
Customize Sidebar...

Website Feedback

Closed Threads



Active: 13232 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
Next event in 1h 59m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
WinterStarcraft787
StarCraft: Brood War
NaDa 39
ajuk12(nOOB) 21
Bale 17
Icarus 11
Dota 2
NeuroSwarm169
League of Legends
JimRising 738
Other Games
summit1g5362
ceh9350
C9.Mang0293
XaKoH 177
RuFF_SC264
Happy22
Trikslyr11
Organizations
Other Games
gamesdonequick1889
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
[ Show 13 non-featured ]
StarCraft 2
• Berry_CruncH315
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Dota 2
• lizZardDota2125
League of Legends
• Stunt681
Upcoming Events
Replay Cast
1h 59m
CrankTV Team League
3h 59m
WardiTV Qualifier
4h 59m
Epic.LAN
5h 59m
Big Brain Bouts
8h 59m
SHIN vs Elazer
Percival vs Nicoract
Reynor vs Lambo
Replay Cast
16h 59m
RSL Revival
1d 1h
Clem vs Lambo
Scarlett vs Cure
CranKy Ducklings
1d 2h
Epic.LAN
1d 5h
IPSL
1d 8h
Dragon vs Hawk
[ Show More ]
RSL Revival
2 days
Classic vs Trap
herO vs SHIN
Sparkling Tuna Cup
2 days
OSC
2 days
IPSL
2 days
Bonyth vs Ret
WardiTV Weekly
3 days
Monday Night Weeklies
3 days
PiGosaur Cup
4 days
The PondCast
5 days
Replay Cast
6 days
CrankTV Team League
6 days
Replay Cast
6 days
Liquipedia Results

Completed

Proleague 2026-07-13
HSC XXIX
Eternal Conflict S2 E2

Ongoing

IPSL Spring 2026
Acropolis #4
CSL 2026 Summer (S21)
KCM Race Survival 2026 Season 3
Escore Tournament S3: W3
RSL Revival: Season 6
CranK Gathers Season 4: BW vs SC2 Team League
SCTL 2026 Spring
Stake Ranked Episode 3
XSE Pro League 2026
IEM Cologne Major 2026
Stake Ranked Episode 2
CS Asia Championships 2026
Asian Champions League 2026
IEM Atlanta 2026
PGL Astana 2026

Upcoming

ASL S22 SEASON OPEN Day 1
Escore Tournament S3: W4
ASL S22 SEASON OPEN Day 2
Escore Tournament S3: W5
CSLAN 4
Blizzard Classic Cup 2026
HSC XXX
SC4ALL II: StarCraft II
Kung Fu Cup 2026 Grand Finals
Light Tournament 2026
Eternal Conflict S2 Finale
Eternal Conflict S2 E3
Logitech G Connect 2026
StarSeries Fall 2026
FISSURE Playground #5
BLAST Open Fall 2026
Esports World Cup 2026
BLAST Bounty Summer 2026
BLAST Bounty Summer 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 © 2026 TLnet. All Rights Reserved.