zebra-puzzle Questions
6
Solved
Firstly I'm not necessarily looking for a complete algorithm I can just copy and paste, then call it a day. Any "general approach" solutions would be fine for me!
This entire post was spurred by ...
Beadle asked 28/1, 2013 at 19:12
15
Solved
Edit: this puzzle is also known as "Einstein's Riddle"
The Who owns the Zebra (you can try the online version here) is an example of a classic set of puzzles and I bet that most people on Stack Ov...
Prehension asked 25/11, 2008 at 21:14
2
Solved
I am reading "Learn Prolog Now" and one of its exercises I haven't been able to solve myself is the following:
There is a street with three
neighboring houses that all have a
different c...
Auriculate asked 17/1, 2011 at 18:0
1
I am a complete beginner to programming and have to create and solve a riddle in Prolog using GNU Prolog, similar to the Einstein riddle, albeit less sophisticated. I have been trying to create a r...
Calliope asked 24/11, 2013 at 15:45
3
Solved
I need some help with a prolog homework for my AI class. The question is to write prolog code for einstein's puzzle. I know how to write it down in my own but there are some constraints in the home...
Unsecured asked 12/2, 2012 at 21:5
2
Solved
I have been given an exercise to solve the zebra puzzle using a constraint solver of my choice, and I tried it using the Prolog clpfd library.
I am aware that there are other more idiomatic ways t...
Headliner asked 20/6, 2012 at 15:23
1
Solved
this is my code currently, I am trying to solve the zebra puzzle.
exists(A,(A,_,_,_,_)).
exists(A,(_,A,_,_,_)).
exists(A,(_,_,A,_,_)).
exists(A,(_,_,_,A,_)).
exists(A,(_,_,_,_,A)).
rightOf(A,B,(B...
Kerwon asked 7/9, 2011 at 17:46
1
I am new to Prolog and I'm trying to model a riddle like the Einstein riddle, also known as the Zebra riddle, (but with 10 houses and 30 hints) in Prolog and I'm using this model example as a start...
Lyrebird asked 13/12, 2010 at 11:23
1
© 2022 - 2024 — McMap. All rights reserved.