Next: Logical Variables (I)
Up: Syntax and Semantics of
Previous: Searching (I)
- Searching allows finding all solutions to a query
- Backtracking is performed right to left
(but other strategies also possible)
-
- ?- pet(X), animal(Y).
X = spot, Y = spot ;
X = spot, Y = barry ;
X = spot, Y = hobbes ;
X = barry, Y = spot ;
X = barry, Y = barry ;
X = barry, Y = hobbes
Last modification: Thu Oct 7 12:04:03 MEST 1999 <webmaster@clip.dia.fi.upm.es>