# Tessellate S.T.E.M.S. (2019) - Computer Science - School - Set 4 - Subjective Problem 2

The Emperor of Persia wants his daughter to marry the smartest of 3 extremely intelligent young princes, and so the Emperor's wise ministers devised an intelligence test.

The princes are gathered into a room and seated, facing one another, and are shown $2$ black hats and $3$ white hats . They are blindfolded, and $1$ hat is placed on each of their heads, with the remaining hats hidden in a different room.

The Emperor tells them that the first prince to deduce the color of his own hat without removing it or looking at it will marry his daughter. A wrong guess will mean death. The blindfolds are then removed.

You are one of the princes. You see $2$ white hats on the other princes' heads. After some time you realize that the other princes are unable to deduce the color of their hat, or are unwilling to guess. What color is your hat? Explain how you arrived at the solution.

Note: You know that your competitors are very intelligent and want nothing more than to marry the princess. You also know that the Emperor is a man of his word, and he has said that the test is a fair test of intelligence.

This problem is a part of Tessellate S.T.E.M.S (2019)

Note by Tessellate Stems Computer Science
2 years, 5 months ago

This discussion board is a place to discuss our Daily Challenges and the math and science related to those challenges. Explanations are more than just a solution — they should explain the steps and thinking strategies that you used to obtain the solution. Comments should further the discussion of math and science.

When posting on Brilliant:

• Use the emojis to react to an explanation, whether you're congratulating a job well done , or just really confused .
• Ask specific questions about the challenge or the steps in somebody's explanation. Well-posed questions can add a lot to the discussion, but posting "I don't understand!" doesn't help anyone.
• Try to contribute something new to the discussion, whether it is an extension, generalization or other idea related to the challenge.

MarkdownAppears as
*italics* or _italics_ italics
**bold** or __bold__ bold
- bulleted- list
• bulleted
• list
1. numbered2. list
1. numbered
2. list
Note: you must add a full line of space before and after lists for them to show up correctly
paragraph 1paragraph 2

paragraph 1

paragraph 2

[example link](https://brilliant.org)example link
> This is a quote
This is a quote
    # I indented these lines
# 4 spaces, and now they show
# up as a code block.

print "hello world"
# I indented these lines
# 4 spaces, and now they show
# up as a code block.

print "hello world"
MathAppears as
Remember to wrap math in $$ ... $$ or $ ... $ to ensure proper formatting.
2 \times 3 $2 \times 3$
2^{34} $2^{34}$
a_{i-1} $a_{i-1}$
\frac{2}{3} $\frac{2}{3}$
\sqrt{2} $\sqrt{2}$
\sum_{i=1}^3 $\sum_{i=1}^3$
\sin \theta $\sin \theta$
\boxed{123} $\boxed{123}$

Sort by:

It's white.

If your hat is black, another prince will see one black and one white hat and reason as follows: "If my hat is black, the white-hatted prince will see two black hats and will instantly know his hat is white. He hasn't spoken, so my hat must be white."

No prince has done that yet, so your hat is white.

This assumes some things about deduction speed, of course, but I think it's the intended answer.

- 2 years, 5 months ago

Yeah, I think it is fair to assume some things about deduction speed.

I was wondering if we can pinpoint what those assumptions are.

- 2 years, 5 months ago

Yeah the deduction speed matters

- 2 years, 4 months ago

It's easy.

Let's say our prince has Black hat then 2nd prince see's one Black and One White hat , in no way he can deduce his color . The 3rd prince see's that seconf prince can't deduce his color so he must have wore a white hat because if he had a blacck hat then he(2nd prince) would had deduced his hat color but we know the 2nnd and 3rd prince can't deduce their hat colour so our prince has white hat.

Voila!

- 2 years, 4 months ago

The education system must be flexible for modern change. Over the past 20 years, society has changed significantly, but the ideology of education in schools, colleges and universities of the United States remained the same. Because of this, there are problems of social adaptation of a large number of students. Many students simply stop learning and prefer to buy a term paper at the PapersOwl. The educational system does not use all the features of modern online learning. An online training format could help improve the quality of education around the world. Students no longer need to write essays and other paperwork. They need other types of work that are really relevant. The acquisition of various gadgets can significantly simplify life and free up a large amount of time.

- 1 year, 11 months ago