Institut for Matematik og Datalogi |
sibling
, try changing the order of the terms (more specific: the placement of the diff
-part). Do the definitions have the same set of answers?diff
(diff(X, Y) :- X \= Y.
), in the difinition of sibling
. Try to predict the behavior. (Using trace.
to understand what is going on may be helpfull.)diff
, and different permutations of the terms).