Jump to content
BrainDen.com - Brain Teasers
  • 4

Green and Yellow hats


bonanova
 Share

Question

Here's a toughie. A room full of prisoners is given hats, whose color only the others can see. And just to be different, let's say they are yellow or green. No communication is permitted. At a signal, given by the warden, the prisoners must simultaneously shout out the color of their own hat. Those who guess wrong are subsequently executed.

Beforehand, the prisoners meet to determine a strategy -- a set of rules, not necessarily the same for each prisoner -- that will guarantee the greatest number of survivors. As an added wrinkle, the warden may attend the meeting and then use his knowledge of their strategy when he chooses the colors of their hats.

If there are 100 prisoners, how many can be assured of surviving?

 

Link to comment
Share on other sites

24 answers to this question

Recommended Posts

  • 1
  Reveal hidden contents

 

Link to comment
Share on other sites

  • 1

@Molly Mae, here is a demonstration that the answer can bestrictly greater than zero. 

  Reveal hidden contents

 

Link to comment
Share on other sites

  • 0

As always, we hope for some communication. The prisoners can see each other. It’s not clear they can hear each other (after all, if they shout simultaneously, they can’t benefit from hearing the others). Are they allowed to turn their bodies to face in a variety of directions, or some such thing? You said “no communication”, and I fear you mean it, but just askin’...

Link to comment
Share on other sites

  • 0
  On 1/23/2018 at 6:13 AM, Izzy said:

Are they allowed to move at all, like to sort themselves without communication? Or do they start off in their positions in the room with hats placed on them, only allowed to say one word? 

Expand  

Hmmm. OP does not rule out movement. But it does rule out communicating. So let's say that if the prisoners want to be at some preferred location in the room, that's permissible. But their chosen location can't be in any way influenced by hat color -- i.e., all movement must occur before the hats are placed.

Link to comment
Share on other sites

  • 0
  Reveal hidden contents
Edited by Molly Mae
Link to comment
Share on other sites

  • 0

  Reveal hidden contents
Link to comment
Share on other sites

  • 0
  On 1/23/2018 at 4:05 PM, Izzy said:

 

  Reveal hidden contents
Expand  

This is basically my stumbling block.  Any strategy you could come up with could be countered by the warden.  If you could anticipate that the warden would do all in his power to flummox your strategy, you could (as a logical individual) decide to go completely against the strategy.  That, however, doesn't guarantee any successes either.

  Reveal hidden contents

Link to comment
Share on other sites

  • 0
  On 1/23/2018 at 5:24 PM, Molly Mae said:

 

  Reveal hidden contents

 

Expand  

 

  Reveal hidden contents

@bonanova, is the warden perfectly logical? Are the prisoners perfectly logical? 

Link to comment
Share on other sites

  • 0
  On 1/23/2018 at 5:34 PM, Izzy said:

 

  Reveal hidden contents

@bonanova, is the warden perfectly logical? Are the prisoners perfectly logical? 

Expand  

I figured it would be a "toughie" because hat puzzles tend to have counterintuitive answers.  Now that we've become accustomed to that, we may be looking for an answer that isn't there given the new constraints.

Link to comment
Share on other sites

  • 0
  Reveal hidden contents

 

Link to comment
Share on other sites

  • 0
  On 1/24/2018 at 3:28 AM, Izzy said:
  Reveal hidden contents

 

Expand  

The only problem is that it doesn't guarantee that anybody lives.

Too much WiFoM

Edited by Molly Mae
Link to comment
Share on other sites

  • 0
  On 1/24/2018 at 11:08 PM, Izzy said:
  Reveal hidden contents

 

Expand  
  Reveal hidden contents
Edited by Molly Mae
Link to comment
Share on other sites

  • 0

@bonanova, it should be the second post in the thread. Someone upvoted it, so it's no longer in chronological order.

Thanks. :D Honestly, I was going to keep trying to come up with a better one, so thanks for putting me out of my misery. Is there a way to prove that there isn't a *better* solution?

Edited by Izzy
Link to comment
Share on other sites

  • 0
  On 1/24/2018 at 11:08 PM, Izzy said:
  Reveal hidden contents

 

Expand  

This approach saves |n/2| prisoners, and that is optimal.

Link to comment
Share on other sites

  • 0
  On 1/25/2018 at 10:16 PM, Izzy said:

@bonanova, it should be the second post in the thread. Someone upvoted it, so it's no longer in chronological order.

Thanks. :D Honestly, I was going to keep trying to come up with a better one, so thanks for putting me out of my misery. Is there a way to prove that there isn't a *better* solution?

Expand  
  Reveal hidden contents


 

Link to comment
Share on other sites

  • 0

@bonanova

  Reveal hidden contents

Just calculated the groups of three case, and half the time two people are saved, and the other half one person is saved. So, you get the same expected value, but can't guarantee as many.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...