Logic Analysis and reasoning (wearing a hat) Game

Source: Internet
Author: User

The problem is as follows:

The three men argued in the park who were the smartest to lose. An old man came to wear a hat and said that I have five hats, three black hats and two white hats. I will bring them to you, you can only see the hats of the other party. Whoever says what color he is wearing is the smartest. The old man put on a black hat for all three people. After a while, someone guessed what he was wearing. He told the old man to wear his poetry black hat, how can I guess this person?

The problem is analyzed as follows:

For convenience, we call the three persons A, B, and C respectively.

The abbreviation of Black is B, and that of white is W.

Here we use a for analysis (centered on a). The same applies to B and C.

A, B, and C have the following possibilities:

A B C

① B

② B W

③ W B W

④ W B

First case:

A sees that both B and C are black. A will hesitate to think about whether it is white or black...

Similarly, B and c both think about it,

Since everyone is thinking about it, no one will quickly say the color of his hat, so a considers himself as black.

Case 2:

There are only two white ones in total. If a sees that B and C are both white, it is very sure that they are black.

Third case:

In the second case, B should be able to quickly say that he is black.

Case 4:

A sees that B and C are black. A will hesitate to think about whether he is wearing white or black...

B sees that A is white, C is black, and B will hesitate to think about whether he is wearing white or black, because B cannot determine whether he is wearing another white hat, if B can see that C is also white, then the answer is revealed.

C is the same as B's, and B's thinking is the same. So again, everyone is hesitating to think...

The analysis ends with such a game,

Someone must be able to quickly say that they are wearing a black hat!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.