The Answer: "Einstein"'s 15 relations problem


I start by numbering the constraints to make it easier to refer to constraints while I am keeping notes.

  1. The Englishman lives in the red house.
  2. The Swed keeps dogs.
  3. The Dane drinks tea.
  4. The green house is just to the left of the white one.
  5. The owner of the green house drinks coffee.
  6. The Pall Mall smoker keeps birds.
  7. The owner of the yellow house smokes Dunhills.
  8. The man in the center house drinks milk.
  9. The Norwegian lives in the first house.
  10. The Blend smoker has a neighbor who keeps cats.
  11. The man who smokes Blue Masters drinks beer.
  12. The man who keeps horses lives next to the Dunhill smoker.
  13. The German smokes Prince.
  14. The Norwegian lives next to the blue house.
  15. The Blend smoker has a neighbor who drinks water.

Start by filling in a constraint relation table with the values given directly by the constraints. Constraints:

  1. The man in the center house drinks milk.
  2. The Norwegian lives in the first house.
  3. The Norwegian lives next to the blue house.

From constraint number 5 we can see that the center tile, which drinks milk, can not be a green house. So the fourth house from the left must be green, and the fifth white.

  1. The green house is just to the left of the white one.
  2. The owner of the green house drinks coffee.

Nationality Norwegian
House Color Blue Green White
Drinks Milk Coffee
Pets
Smokes

The Englishman lives in a red house. We know that the far left house, or first house, is a Norwegian from constraint number 9, and given constraint 1 that an Englishman lives in a red house we know that the Norwegian's house is not red. So We now know that the Norwegian's house is not red,blue,green, or white so by process of elimination it is Yellow.

  1. The Englishman lives in the red house.
  2. The Norwegian lives in the first house.

Then by elimination the center house is Red. From constraint 1 it is also the Englishman's house

Nationality Norwegian British
House Color Yellow Blue Red Green White
Drinks Milk Coffee
Pets
Smokes

From constraint 7 we know that the Norwegian smokes Dunhills. From constraints we know that the person next to the Norwegian keeps horses, and becuase of the Norwegians corner location that must be the person in the Blue house.

  1. The owner of the yellow house smokes Dunhills.
  2. The man who keeps horses lives next to the Dunhill smoker.

From constraint 3 we know the Norwegian is not drinking Tea, from constraint 5 we know he does not drink coffee, and from constraint 8 we know he does not drink milk. That means the Norwegian must drink either water or beer. Since the Norwegian does not smoke Blue Masters, we know from constraint 11 he does not drink beer. By elimination this means the Norwegian must drink water.

  1. The Dane drinks tea.
  2. The owner of the green house drinks coffee.
  3. The man in the center house drinks milk.
  4. The man who smokes Blue Masters drinks beer.

Nationality Norwegian British
House Color Yellow Blue Red Green White
Drinks Water Milk Coffee
Pets Horses
Smokes Dunhills

From constraint 15 we know that the person next to the Norwegian smokes Blend.

  1. The Blend smoker has a neighbor who drinks water.

We already know the Norwegian and Brit, and from constraints 2 and 13 we know that the person in the blue house is neither Swed or German. By elimination that makes him a Dane.

  1. The Swede keeps dogs.
  2. The German smokes Prince.

We also know that the Dane drinks tea.

  1. The Dane drinks tea.

Nationality Norwegian Dane British
House Color Yellow Blue Red Green White
Drinks Water Tea Milk Coffee
Pets Horses
Smokes Dunhills Blend

By process of elimination we see that the person in the white house must drink beer. From constraint 11 we also know that they smoke Blue Masters.

  1. The man who smokes Blue Masters drinks beer.

Nationality Norwegian Dane British
House Color Yellow Blue Red Green White
Drinks Water Tea Milk Coffee Beer
Pets Horses
Smokes Dunhills Blend Blue Masters

We know from constraint 13 that the German smokes Prince so he can not be the person in the white house, and by elimination he must live in the green house.

  1. The German smokes Prince.
By elimination once we place the German we know by elimination that the Swed lives in the white house.

Nationality Norwegian Dane British German Swed
House Color Yellow Blue Red Green White
Drinks Water Tea Milk Coffee Beer
Pets Horses
Smokes Dunhills Blend Prince Blue Masters

By elimination we can place the Pall Malls. Then by constraint 6 that lets us identify who keeps the birds. From a constraint 2 we are told the Swed keeps dogs.

  1. The Swed keeps dogs.
  2. The Pall Mall smoker keeps birds.

Nationality Norwegian Dane British German Swed
House Color Yellow Blue Red Green White
Drinks Water Tea Milk Coffee Beer
Pets Horses Birds Dogs
Smokes Dunhills Blend Pall Malls Prince Blue Masters

From constraint 10 we know that the Norwegian must keep cats, and then by elimination the German keeps the unknown pet, the fish.

  1. The Blend smoker has a neighbor who keeps cats.

Nationality Norwegian Dane British German Swed
House Color Yellow Blue Red Green White
Drinks Water Tea Milk Coffee Beer
Pets Cats Horses Birds Dogs
Smokes Dunhills Blend Pall Malls Prince Blue Masters