Showing posts with label Lateral Thinking. Show all posts
Showing posts with label Lateral Thinking. Show all posts

Sunday, March 16, 2014

Practice Lateral Thinking with Riddle #3: Black and White Hat Demon

,

Riddle of the Black and White Hat Demon
(Difficulty: Hard)

Yet another riddle that I've done a poor job renaming. This is a riddle I heard while I was in Game Theory class several years ago, I take no credit for it other than butchering the actual details.
It goes a little something like this:
Somewhere in the world there is a small village of people who live on a tiny island. They have a population of only 100 people, but every single citizen has perfect logic, perfect memory, perfect hearing, and perfect vision. Life is good on the island.
However, one day a powerful and cruel demon appears and declares that he will kill the inhabitants. But unfortunately for him there are rules that he must follow. He has to let the citizens play for their lives. He must line up all the citizens single-file so they all face the same direction. He must then go about putting black hats and white hats on their heads (he does it randomly, so there is no set number of white or black hats). The citizens are not able to move, but they are able to see every person in front of them, as well as every hat they wear. The citizens are not allowed to gesture or speak until the demon gets to them, and they cannot see behind them. However, they can hear what the others say.
The demon then starts at the back of the line and asks "what color of hat are you wearing?". To which the citizen is allowed to say only "black" or "white", and nothing else. If they are correct, they live. If they are incorrect, they die.
The demon gives them a night to congregate and talk out their plan. The ritual starts in the morning.
What should the citizens do?
Whew, what long riddle. No doubt you're a bit unsure of where to start.
Here are some things to consider:
  • The citizens are essentially unable to act until it comes to their turn. When it arrives at their turn, the only thing they are able to do is say "black" or "white". So whatever you do, the response of "black" or "white" has to be telling.
  • The citizens are basically super-human. So if you think of an answer that wouldn't work for normal humans, you might actually be okay.
COMMON STRATEGIES (possible answers you may have come up with)
Given that, here are some ideas that I've heard which are good, but not the best response:
  • Strategy 1: Say the color of the hat of the person directly in front of you. While everyone things this plan is brilliant at first, unfortunately it doesn't save as many people as you might think. 

    Lets say these are the hat colors of the first 6 people:
    BWWBWB
    B= black hat
    W= white hatHere is how it would play out:1. first person(B) says "white" since the next citizen is wearing a white hat- dies
    2. The second person(W) says "white" because he knows his hat color is white- lives
    3. The third person(W) says "black" because the next person is wearing black- dies
    4. The fourth person (B) says "black" because he knows he is wearing black- lives
    5. The fifth person (W) says "black" because the next person is wearing black- dies
    6. The sixth person (B) says "black" because he knows his hat is black- livesAs we can see, every other person will live, and if the person in between is lucky, he gets to live too. With this method you will save somewhere above 50% of all citizens. The method is not terrible, but given the circumstances there are better methods.
  • Strategy 2: Another interesting response I've heard is, "The first person whose turn it is, will pick the color that has the majority".So the first person will look at the number of black and white hats, and see which color is more popular. He would then say "white" if white is the dominant hat color. The rest of the people in line would also say that color. So it would basically be responding with all white, or all black. This is an interesting strategy since it guarantees that at least the majority will survive (51% and upwards). Depending on the demographic of black hat wearers and white hat wearers, this could do better than the previous answer. But is not the best.
  • Strategy 3: In this strategy, every person will look at the line ahead of him and say the most common color of hat. This is essentially a mix of the two strategies above. The thought behind it is that in case there is a block of black hats in a majority of white hats such as WWWWWBBB, nearing the end you will be able to account for those black hats with perfect accuracy; which is something strategy 2 had issues with.However great this strategy seems at first, it is ultimately flawed. I'll demonstrate it with an example:If you have this pattern: BWBWBWBWBWBWWith an equal number of black and white hats, you will end up saving no one:
    The first person will see a majority of white hats and say W (and die), the second person will see a majority of black hats and say B (and die), this process continues until everyone dies.
Go ahead, give it a shot.
I'll provide a walkthrough with the answer at this link here (coming soon).
Read more →

Monday, March 3, 2014

Practice Lateral Thinking with Riddle #2: The Salesman and the 3 Daughters

,
This a fantastic little riddle I heard from Day9, a popular Starcraft commentator. I'm obviously going to somewhat butcher it by telling it from memory.
There was once an insurance salesman who went door to door trying to sell insurance.
He happened to knock upon a door in a particular cul de sac, and a nice woman opened the door. The insurance salesman then proceeded to talk about how great his insurance is.
The woman stopped him and said, "Hold on. I have a challenge for you. I like my insurance agents to be clever, and if you can answer my question, I will buy your insurance."
The insurance salesman thought about it for a moment and decided to play.
She said, "I have three daughters, and I want you to guess their ages".
"okay", said the agent
"Your first hint is: Their ages multiplied together is 36".
"Okay", said the agent, while trying to think of the possibilities
"Your second hint is: Their ages added together is equal to the number of the house next door"
The insurance saleman excused himself for a moment and went next door. He saw the number of the house, and returned.
"I need one more hint" he said.
She smiled and said, "Your final hint is that my eldest daughter plays piano".
How old are the daughters?
Your immediate response is probably the same response as most people who hear this riddle, "wait, you aren't going to tell me the number of the house next door?"
Nope, you don't need it. You can figure it out without it.
So where do you start?
Here's a suggestion, start with the first hint, and think about it for a moment.
If you're truly stumped and need someone to walk you through the thinking. Maybe start reading the walkthrough a short step at a time. It can be found here.
Read more →

Friday, February 21, 2014

Practice Lateral Thinking with Riddle # 1:The Liar and Honest Village (The Question)

,
Riddles are fantastic ways to practice lateral thinking!

If you've heard riddles, you've probably heard the one about the liar's village and honest village. But allow me to remind you anyways:
Somewhere there lies a pair of villages. The first village is called "Honest Village" where all of its inhabitants always tell the truth. The second village is called "Liar Village" where all its inhabitants always tell lies.
One day, you are walking towards the village and run into a fork in the road. One road leads to the Honest Village, while the other leads to the Liar Village, but you are unsure which road leads to which village.
However, there is a guard at the fork- who is willing to answer 1 question. You are uncertain which village he is from, but wish to know the location of each village.
What do you ask?
I realize there are a multitude of variations of this puzzle, and you have probably heard them before. But I decided to go with a rather bare bones version with a single guard (I believe the first version I heard had two guards).
Anyways, rather than jumping straight in and thinking of a multitude of questions, we should probably observe the possibilities.
  • The guard could be from the Honest Village, or from the Liar Village
  • The Liar Village could be on the right, or it could be on the left
  • The Honest Village could be on the left, or on the right
  • The two villages can't be in the same direction
So lets just think of a rather commonly asked question:
"Which way to Honest Village?"
Suppose the answer was: Honest Village on the right, Liar Village on the left. Here's how it would look:
  • If the guard was a liar, he would say "Left"
  • If the guard was honest, he would say "Right"
This isn't a useful response for the person who wants to go to Honest Village. Since you are unsure whether the guard is from Liar village or from Honest village, you won't be able to say for certain which direction lies Honest Village.
That's all the hints I can give you without starting to walk you through to the answer. If you really are stumped, perhaps you can start reading the walkthrough.

Read more →