Einstein quiz: Difference between revisions
Jump to navigation
Jump to search
(→Answer: code works for simple (non-neighbour) relations) |
(links added) |
||
| Line 4: | Line 4: | ||
==Question== | ==Question== | ||
How to solve the Einstein quiz and similarly structured problems using [[R-tools]]? | How to solve the Einstein quiz [http://amazeingart.com/fun/einstein-quiz.html] and similarly structured problems using [[R-tools]]? | ||
Facts: | Facts: | ||
| Line 28: | Line 28: | ||
** The Norwegian lives next to the blue house. | ** The Norwegian lives next to the blue house. | ||
** The man who smokes Blend has a neighbor who drinks water. | ** The man who smokes Blend has a neighbor who drinks water. | ||
Question: | |||
Can you determine who keeps fish? | Can you determine who keeps fish? | ||
| Line 103: | Line 105: | ||
==See also== | ==See also== | ||
* [http://www.amazeingart.com/fun/einstein-quiz-answer.html The real solution to Einstein quiz] | |||
==References== | ==References== | ||
Revision as of 19:54, 30 May 2012
| Moderator:Nobody (see all) Click here to sign up. |
| This page is a stub. You may improve it into a full page. |
| Upload data
|
The Einstein quiz is a logic puzzle.
Question
How to solve the Einstein quiz [1] and similarly structured problems using R-tools?
Facts:
- There are 5 houses in 5 different colors.
- In each house lives a person with a different nationality.
- These 5 owners drink a certain beverage, 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.
- Hints:
- The Brit lives in a red house.
- The Swede keeps dogs as pets.
- The Dane drinks tea.
- The green house is on the left of the white house.
- The green house owner drinks coffee.
- The person who smokes Pall Mall rears birds.
- The owner of the yellow house smokes Dunhill.
- The man living in the house right in the centre drinks milk.
- The Norwegian lives in the first house.
- The man who smokes Blend lives next to the one who keeps cats.
- The man who keeps horses lives next to the man who smokes Dunhill.
- The owner who smokes Blue Master drinks beer.
- The German smokes Prince.
- The Norwegian lives next to the blue house.
- The man who smokes Blend has a neighbor who drinks water.
Question:
Can you determine who keeps fish?
Answer
The known relations as a table.
| Obs | First | Second |
|---|---|---|
| 1 | Brit | Red house |
| 2 | Swede | Dog |
| 3 | Dane | Tea |
| 4 | Green house | Coffee |
| 5 | Pall Mall | Bird |
| 6 | Yellow house | Dunhill |
| 7 | House 3 | Milk |
| 8 | Norwegian | House 1 |
| 9 | Blue Master | Beer |
| 10 | German | Prince |
These cannot be solved with this solver:
- The green house is on the left of the white house.
- The man who smokes Blend lives next to the one who keeps cats.
- The man who keeps horses lives next to the man who smokes Dunhill.
- The Norwegian lives next to the blue house.
- The man who smokes Blend has a neighbor who drinks water.
Rationale
See also
References
Related files
<mfanonymousfilelist></mfanonymousfilelist>