# 10 dwarves and a giant.

#### Sakha

10 dwarves where hanging around and a big giant came, he said that tomorrow he will put them on a column, each of them facing forward. He will put them white and black hats, and ask from the last to the first which color is his hat, if one told it right, he live, if not he die. The dwarves had a night to make a plan, and they made a plan that 9 of the dwarves would 100% live, and the last one had 50-50.

Some stuff to know:
They can only say White or Black.
They're all facing forward, so the last one can see all the 9 hats of his friends, and the 9th could see all the 8 hats, and so on.

Related General Discussion News on Phys.org

#### Gear300

Is the giant a black hole?

#### rootX

They can decide to pronounce white/black differently depending upon what's the color of next dwarf hat.

If the next dwarf has white then take longer time to say your hat color and if it is black say it faster.

Last edited:

#### Jimmy Snyder

Each of the 10 told the color of the hat on the one directly in front.

#### humanino

Assign 0 to white and 1 to black (for instance). The first one (last in the row) sees all other hats, adds all the numbers, and says b or w according to the parity of the sum of other hats. 50/50% will it match his own hat. Later on, the next in the line can deduce the color of his own hat, by the knowledge of all hats in front of him.

#### Sakha

They can decide to pronounce white/black differently depending upon what's the color of next dwarf hat.

If the next dwarf has white then take longer time to say your hat color and if it is black say it faster.
Thats a way, but what we want is a real logical answer. Thats why its with giant and dwarves, to state the control the giant has over the dwarves.
Each of the 10 told the color of the hat on the one directly in front.
What if the one on your back tells you're black, and the guy in front of you is white, will you save yourself or the one in front of you.
Assign 0 to white and 1 to black (for instance). The first one (last in the row) sees all other hats, adds all the numbers, and says b or w according to the parity of the sum of other hats. 50/50% will it match his own hat. Later on, the next in the line can deduce the color of his own hat, by the knowledge of all hats in front of him.
Yep you got it.
The last one says white if he looks a even number of blacks, and the others deduce from it and keep it going.

### Physics Forums Values

We Value Quality
• Topics based on mainstream science
• Proper English grammar and spelling
We Value Civility
• Positive and compassionate attitudes
• Patience while debating
We Value Productivity
• Disciplined to remain on-topic
• Recognition of own weaknesses
• Solo and co-op problem solving