Prolog solution to Einstein’s riddle
Artificial Intelligence, Informatics, Mathematics, Uncategorized | (0)
The following puzzle is said to be invented by Einstein. Supposedly, he also claimed that only 2% of the world's population would be smart enough to solve it.
There are 5 houses in 5 different colors in a row. In each house lives a person with a different nationality. These 5 owners drink a certain drink, smoke a certain brand of cigar, and keep a certain pet. No owners have the same pet, smoke the same brand of cigar or drink the same drink.
The question is: WHO OWNS THE FISH?
HINTS:
the Brit lives in the red house
the Swede keeps dogs as pets
the Dane ...