• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 08:18
CEST 14:18
KST 21:18
  • 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
[ASL22] Finals Preview: Sweet Victory!9[ASL22] Ro4 Preview: Mirror Mirror6[ASL22] Ro8 Preview: Within Reach5[ASL22] Ro8 Preview: In A Tizzy11[ASL22] Ro16 Preview: Holy Diver5
Community News
[$1250] International ShieldBattery League31Weekly Cups (October 5-11): Farewell to 5.0.162Rollback Netcode in Brood War1275.0.17 Patch Notes - October 7, 202624Weekly Cups Results (Sep 28-Oct 4)0
StarCraft 2
General
SCII needs to put more weight on strategy and tact No more sc2 streamers on team liquid? Server Blocker Terran AddOns placement How do you feel about the mass reverts in the 5.0.17 PTR?
Tourneys
RSL goes to London! 2026 Offline Finals Nov 21-22 Sparkling Tuna Cup - Weekly Open Tournament Stellar Fest TWO the Moon (Dec 16-20) Master Swan Open (Global Bronze-Master 2) $3,500 WardiTV Not-Summer Championship
Strategy
[H] ZvP Mid-Late Game: Stalkers Collossi HT
Custom Maps
[G] How to playtest arcade maps [A] Nemrods 1/4 players [M] (2) Sweltering Sands [M] (2) Frigid Storage
External Content
The PondCast: SC2 News & Results Mutation # 547 Temple Of Terror Mutation # 546 Catch the Train Mutation # 545 And Drops and Rifts
Brood War
General
Practice Partners (Official) Rollback Netcode in Brood War [Megathread] Daily Funny Videos GG Lan Fest Sofia, Bulgaria [this November] [Recap] Hive ZvZ in MonstarZ vs Dreams
Tourneys
[$1250] International ShieldBattery League [ASL22] Grand Finals 2v2v2v2 Tournament Small VOD Thread 2.0
Strategy
Cliff Jump Revisited (1 in a 1000 strategy) Simple Questions, Simple Answers Replay Review Process - What do you do?
Other Games
General Games
Nintendo Switch Thread Dawn of War IV Warcraft III: The Frozen Throne Stormgate/Frost Giant Megathread General RTS Discussion Thread
Dota 2
Dota 2 Champions League Season 3 Begins April 25!
League of Legends
[TL LoL EUW IHs] Teemo shall perish
Heroes of the Storm
Heroes of the Storm 2.0
Hearthstone
Deck construction bug
TL Mafia
TL Mafia Community Thread
Community
General
Russo-Ukrainian War Thread US Politics Mega-thread Artificial Intelligence Thread The Chess Thread Things Aren’t Peaceful in Palestine
Fan Clubs
Serral Fan Club
Media & Entertainment
[Manga] One Piece Movie Discussion!
Sports
MLB/Baseball 2023 Football (Soccer) Thread TeamLiquid Health and Fitness Initiative For 2023
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
Recent Gifted Posts
Blogs
ShieldBattery on Mac
Kraekkling
The Link Between Gaming and …
TrAiDoS
[ASL22] Ro4 Day1 Ticket Giv…
bITt.mAN
38 yo Retired SWE loo…
PurE)Rabbit-SF
Can Bots Beat Pros?? Starcr…
namkraft
Customize Sidebar...

Website Feedback

Closed Threads



Active: 7596 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 Invitational
20:00
Not-Summer Championship
WardiTV528
TaKeTV 235
IndyStarCraft 208
TKL 204
Liquipedia
Sparkling Tuna Cup
19:00
Weekly #151 (SHIN Mod Edition)
ByuN vs SHINLIVE!
herO vs TBD
ByuN435
CranKy Ducklings151
SHIN 32
CranKy Ducklings SOOP16
LiquipediaDiscussion
AI Arena Tournament
01:00
Swiss - Round 6
Laughngamez YouTube
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
ByuN 435
IndyStarCraft 208
TKL 204
SHIN 32
MindelVK 22
StarCraft: Brood War
Britney 47111
Calm 4646
Mini 612
Horang2 568
Soma 556
EffOrt 513
firebathero 433
actioN 356
Stork 354
Soulkey 268
[ Show more ]
BeSt 255
Hyuk 190
Last 168
Snow 154
Zeus 148
Leta 115
Free 82
ggaemo 78
Hyun 74
Sharp 71
hero 55
Pusan 54
ToSsGirL 50
Shinee 46
Sea.KH 43
PianO 29
HiyA 27
Sexy 24
Sacsri 23
Killer 21
Yoon 21
Bishop 18
Hm[arnc] 13
JYJ 13
yabsab 12
Dota 2
XaKoH 441
420jenkins168
Counter-Strike
x6flipin329
Other Games
singsing2305
B2W.Neo1222
DeMusliM227
Khaldor203
crisheroes128
Fuzer 67
Organizations
StarCraft: Brood War
UltimateBattle 19
[ Show 13 non-featured ]
StarCraft 2
• Adnapsc2 9
• Gemini_19 9
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• Migwel
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Dota 2
• C_a_k_e 3900
• WagamamaTV750
• lizZardDota2201
Upcoming Events
OSC
42m
IPSL
3h 42m
BSL Open Qualifier
6h 42m
WardiTV Weekly
22h 42m
IntoTheTV X SOOP
1d 22h
PiGosaur Cup
2 days
The PondCast
2 days
Kung Fu Cup
2 days
IntoTheTV X SOOP
3 days
FEL
5 days
[ Show More ]
FEL
6 days
Sparkling Tuna Cup
6 days
Liquipedia Results

Completed

ASL Season 22
Blizzard Classic Cup 2026
Copium Cup

Ongoing

Acropolis #5
IPSL Winter 2026-27
KCM Race Survival 2026 Season 4
Acropolis #5 - GSC
HCC Season 3
Thunderpick World Champ. '26
ESL Pro League Season 24
Stake Ranked Episode 4
1win Private Club #1
Logitech G Play Connect 2026
SL StarSeries Fall 2026
FISSURE Playground #3
BLAST Open Fall 2026
Esports World Cup 2026

Upcoming

BSL Season 23
SC4ALL II: Brood War
BSL 23: Non-Korean Championship
HSC XXX
Stellar Fest 2: Lunar Cup
SC4ALL II: StarCraft II
Kung Fu Cup 2026 Grand Finals
RSL Offline Finals
eXTREMESLAND 2026
PGL Major Singapore 2026
Stake Ranked Episode 6
BLAST Rivals Fall 2026
IEM Beijing 2026
Stake Ranked Episode 5
PGL Masters Bucharest 2026
1win Private Club #2
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.