• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 00:03
CET 06:03
KST 14:03
  • 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 (Jan 5-11): Clem wins big offline, Trigger upsets2$21,000 Rongyi Cup Season 3 announced (Jan 22-Feb 7)15Weekly Cups (Dec 29-Jan 4): Protoss rolls, 2v2 returns7[BSL21] Non-Korean Championship - Starts Jan 103SC2 All-Star Invitational: Jan 17-1823
StarCraft 2
General
Weekly Cups (Jan 5-11): Clem wins big offline, Trigger upsets SC2 All-Star Invitational: Jan 17-18 When will we find out if there are more tournament SC2 Spotted on the EWC 2026 list? Weekly Cups (Dec 29-Jan 4): Protoss rolls, 2v2 returns
Tourneys
$21,000 Rongyi Cup Season 3 announced (Jan 22-Feb 7) $25,000 Streamerzone StarCraft Pro Series announced WardiTV Winter Cup WardiTV Mondays SC2 AI Tournament 2026
Strategy
Simple Questions Simple Answers
Custom Maps
Map Editor closed ?
External Content
Mutation # 508 Violent Night Mutation # 507 Well Trained Mutation # 506 Warp Zone Mutation # 505 Rise From Ashes
Brood War
General
[ASL21] Potential Map Candidates Potential ASL qualifier breakthroughs? A cwal.gg Extension - Easily keep track of anyone BGH Auto Balance -> http://bghmmr.eu/ BW General Discussion
Tourneys
[Megathread] Daily Proleagues [BSL21] Grand Finals - Sunday 21:00 CET [BSL21] Non-Korean Championship - Starts Jan 10 SLON Grand Finals – Season 2
Strategy
Game Theory for Starcraft Simple Questions, Simple Answers Current Meta [G] How to get started on ladder as a new Z player
Other Games
General Games
Beyond All Reason Nintendo Switch Thread Awesome Games Done Quick 2026! Mechabellum Stormgate/Frost Giant Megathread
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
Vanilla Mini Mafia Mafia Game Mode Feedback/Ideas
Community
General
US Politics Mega-thread Things Aren’t Peaceful in Palestine Russo-Ukrainian War Thread European Politico-economics QA Mega-thread Trading/Investing Thread
Fan Clubs
White-Ra Fan Club
Media & Entertainment
Anime Discussion Thread
Sports
2024 - 2026 Football Thread
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List TL+ Announced
Blogs
My 2025 Magic: The Gathering…
DARKING
Physical Exercise (HIIT) Bef…
TrAiDoS
Life Update and thoughts.
FuDDx
How do archons sleep?
8882
James Bond movies ranking - pa…
Topin
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1596 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
PiGosaur Cup
01:00
#64
PiGStarcraft566
SteadfastSC156
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
PiGStarcraft566
WinterStarcraft374
RuFF_SC2 194
SteadfastSC 156
Livibee 1
StarCraft: Brood War
Britney 21489
Shuttle 379
Stork 266
ggaemo 117
BeSt 109
EffOrt 37
Mind 22
Noble 18
Icarus 14
Bale 8
[ Show more ]
ZergMaN 5
Dota 2
monkeys_forever800
League of Legends
JimRising 635
C9.Mang0529
Counter-Strike
Coldzera 1451
Super Smash Bros
hungrybox1299
Mew2King60
Other Games
summit1g6174
XaKoH 220
ViBE117
minikerr39
Liquid`Ken3
Organizations
Other Games
gamesdonequick2766
StarCraft: Brood War
UltimateBattle 109
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 17 non-featured ]
StarCraft 2
• Mapu13
• Kozan
• LaughNgamezSOOP
• sooper7s
• AfreecaTV YouTube
• Migwel
• intothetv
• IndyKCrew
StarCraft: Brood War
• RayReign 34
• STPLYoutube
• ZZZeroYoutube
• BSLYoutube
League of Legends
• Rush1023
• Lourlo1014
• Stunt155
Other Games
• Scarra3198
• Shiphtur186
Upcoming Events
WardiTV Invitational
6h 58m
The PondCast
1d 4h
OSC
1d 6h
OSC
2 days
All Star Teams
2 days
INnoVation vs soO
sOs vs Scarlett
uThermal 2v2 Circuit
3 days
All Star Teams
3 days
MMA vs DongRaeGu
Rogue vs Oliveira
Sparkling Tuna Cup
4 days
OSC
4 days
Replay Cast
5 days
[ Show More ]
Wardi Open
5 days
Liquipedia Results

Completed

Proleague 2026-01-13
Big Gabe Cup #3
NA Kuram Kup

Ongoing

C-Race Season 1
IPSL Winter 2025-26
BSL 21 Non-Korean Championship
CSL 2025 WINTER (S19)
OSC Championship Season 13
Underdog Cup #3
BLAST Bounty Winter Qual
eXTREMESLAND 2025
SL Budapest Major 2025
ESL Impact League Season 8
BLAST Rivals Fall 2025
IEM Chengdu 2025
PGL Masters Bucharest 2025

Upcoming

Escore Tournament S1: W4
Acropolis #4
IPSL Spring 2026
Bellum Gens Elite Stara Zagora 2026
HSC XXVIII
Rongyi Cup S3
Thunderfire SC2 All-star 2025
Nations Cup 2026
BLAST Open Spring 2026
ESL Pro League Season 23
ESL Pro League Season 23
PGL Cluj-Napoca 2026
IEM Kraków 2026
BLAST Bounty Winter 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.