Logic Puzzle: Where is the koala?

  • Context: MHB 
  • Thread starter Thread starter sadsadsadsa
  • Start date Start date
  • Tags Tags
    Logic Puzzle
Click For Summary
SUMMARY

The logic puzzle titled "Where is the koala?" involves five houses of different colors, each inhabited by men from various territories, with unique animals, drinks, and cars. Key clues include the Tasmanian living in the red house, the Queenslander owning a wombat, and the man in the green house drinking cocoa. The solution reveals that the koala is located in the green house, owned by the Victorian, who drives a Volkswagen and drinks cocoa. The discussion also highlights the use of trial-and-error and programming in Prolog to solve the puzzle.

PREREQUISITES
  • Understanding of logic puzzles and deduction techniques
  • Familiarity with Prolog programming for logical reasoning
  • Knowledge of basic problem-solving strategies
  • Ability to interpret and analyze clues systematically
NEXT STEPS
  • Explore advanced Prolog programming techniques for solving logic puzzles
  • Research other types of logic puzzles and their solving strategies
  • Learn about constraint satisfaction problems in computer science
  • Investigate the use of algorithms in puzzle-solving
USEFUL FOR

Puzzle enthusiasts, computer science students, and anyone interested in logic and problem-solving methodologies will benefit from this discussion.

sadsadsadsa
Messages
15
Reaction score
0
Anyone like riddles? I've got funny one.

​The Math Riddle Question: Where is the koala?

There are five houses, each of a different color and inhabited by men from different territories, with one unique animal*, drink, and car.

Some facts are given: 1. The Tasmanian lives in the red house. 2. The Queenslander owns the wombat. 3. The man in the green house drinks cocoa. 4. The New South Welshman drinks eggnog. 5. The green house is immediately to the right (your right) of the ivory house. 6. The owner of the Oldsmobile also owns a crocodile. 7. The owner of the Ford lives in the yellow house. 8. The man in the middle house drinks milk. 9. The Western Australian lives in the first house on the le[. 10. The man who owns the Chevrolet lives in the house next to the house where the man owns a Tasmanian devil. 11. The Ford owner's house is next to the house where the platypus is kept. 12. The Mercedes-Benz owner drinks orange juice. 13. The Victorian drives a Volkswagen. 14. The Western Australian lives next to the blue house.
 
Mathematics news on Phys.org
This was an interesting puzzle. I had to use trial-and-error, an assumption about the missing drink, and in the end, while I was able to find out where the koala is, I was not able to fill in the entire table.

The koala lives with the bloke from Tasmania in the red house on the far right; he drinks orange juice and drives the Mercedes-Benz. I made an assumption that the remaining, unmentioned drink was water. Moreover, I was unable to ascertain whether the Queenslander who drives the Oldsmobile and owns the wombat, lives in the ivory house and drinks milk, or lives in the green house and drinks cocoa. The Victorian who drives a VW and owns a crocodile lives in the other house that the Queenslander does not inhabit.

Fun puzzle!
 
In Russia there is a saying, "Let the horse think (it has a big head)". In that spirit, I wrote a Prolog program similar to this one. I've got a different answer.

[sp]h(yellow, west, devil, _G130, ford)
h(blue, nsw, platipus, eggnog, chevrolet)
h(red, tasmania, crocodile, milk, oldsmobile)
h(ivory, queensland, wombat, juice, mercedes)
h(green, victoria, coala, cocoa, vw)[/sp]
 
Ach! I think I messed up on my logic somewhere. #6 is not satisfied by my table. a la GPS: "Recomputing."
 
sadsadsadsa said:
Anyone like riddles? I've got funny one...

Enough time has passed that you may now post your solution. (Yes)
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 59 ·
2
Replies
59
Views
108K
  • · Replies 1 ·
Replies
1
Views
8K
  • · Replies 2 ·
Replies
2
Views
8K
  • · Replies 15 ·
Replies
15
Views
7K
  • · Replies 64 ·
3
Replies
64
Views
46K
  • · Replies 21 ·
Replies
21
Views
7K
  • · Replies 70 ·
3
Replies
70
Views
18K
  • · Replies 5 ·
Replies
5
Views
6K