Posts

Showing posts with the label guard

The Green-Eyed Logic Puzzle

In the green-eyed logic puzzle, there is an island of 100 perfectly logical prisoners who have green eyes—but they don't know that. They have been trapped on the island since birth, have never seen a mirror, and have never discussed their eye color.

On the island, green-eyed people are allowed to leave, but only if they go alone, at night, to a guard booth, where the guard will examine eye color and either let the person go (green eyes) or throw them in the volcano (non-green eyes). The people don't know their own eye color; they can never discuss or learn their own eye color; they can only leave at night; and they are given only a single hint when someone from the outside visits the island. That's a tough life!

One day, a visitor comes to the island. The visitor tells the prisoners: "At least one of you has green eyes." 

On the 100th morning after, all the prisoners are gone, all having asked to leave on the night before. 

The Green-Eyed Logic Puzzle

How did they figure it out?


Here is the solution! 

The Green-Eyed Puzzle Solution


Here is that Puzzle! 

Nobody is going to dare to go the guard unless he is absolutely sure that he is green eyed; otherwise it would be suicidal move.

-------------------------------------------------------------------------------------
 
For a moment, let's assume there are only 2 prisoners named A & B trapped on island.

On first day, A is watching green eyed B & B can see green-eyed A. But both are not sure what is color of their own eyes. Instead, A(or B) waited B(or A) to escape from island since he is green-eyed. Rather both are sure that other too doesn't know anything about color of own eyes.

On next morning both see each other still on island. Here is what A thinks.


If I was non green-eyed then B would have realized that the person pointed by visitor in his statement ('at least one of you have green eyes') is himself. Hence, B would have realized that he is green-eyed & could have escaped easily. Since B didn't try to escape that means I too must have green eyes.

So A can conclude that he too have green eyes. Exactly same way, B concludes that he too has green eyes. Hence, on next day both can escape from the island.
 

Note that, if the night of the day on which visitor made statement is counted then next day would have 1st morning & 2nd night since visitor's visit. Now since A & B left on 2nd night, we can't see anybody on 2nd morning next day.

--------------------------------------------------------------------------------
 
Now let's assume there are 3 prisoners named A,B and C trapped on island.

Let's think from A's point of view as an example.What he thinks.

Let me assume I don't have green eyes.Now each B and C could see 1 green-eyed & other non green-eyed person. But still they don't know color of own eyes.So on that night nobody tries to escape.

On first morning I see both B and C still present there.

Now B can think that if he has no green eyes then C could have concluded that the person pointed by visitor's statement ('at least one of you have green eyes') is C himself (as both A & B are non green-eyed. This way, C would have realized that he is green-eyed.

In a very similar way, B would have realized that he too is green-eyed.

Now both of them could have escaped on that night as they are sure that they are green-eyed.

But on the second morning, I see again both of them are still there. So now I can conclude that I too have green eyes.


If A can conclude then why can't B and C?  So after seeing each other on 3rd day, each of 3 can conclude color of eyes is green. Now on 3rd night they all can escape safely.

This is called as inductive logic.

-------------------------------------------------------------------------------

If observed carefully, 2 prisoners need 2 nights and 3 prisoners need 3 nights to logically deduce that the each of them is green-eyed.

Hence, 100 prisoners would require 100 nights to absolutely make sure that each of them is green eyed.

That's why on the 100th morning day, there is no prisoner present on island. 


The Green-Eyed Puzzle Solution


What is The Password Trick?

A young man was standing outside a bar thinking to enter into bar. But there was a one problem. There was a guard standing in door asking password. Only those producing correct password allowed to enter. The young man stood there & started observing carefully. A man came to enter into bar. The guard said - twelve, the man answered six. Man allowed to enter. A lady came, guard said - six; she replied - three.The guard allowed her to enter.


Now thinking that he has cracked the trick of password generation the young man went to the guard. The guard said - ten, immediately the young man replied - five. But the guard denied his entry to the bar. Can you tell the reason? 

Decode the password generation process!
What's the password?

This was the trick! 

To Generate The Correct Password


Read here what happened? 

The trick for the password was different from that the young man was thinking. 

The password was the number of letters in the spelling of number that guard was saying.

TWELVE - SIX

SIX -THREE

Hence for TEN the password should have been THREE not half of TEN

This was the code language designed for the entry into the bar. 

This is the trick to generate the password!
Follow me on Blogarama