next up previous
Next: Example 2 Up: No Title Previous: Example 1

Some rules

There are some branches, given the nature of a relation, are going to fail - idea is to prune them using a cut.

(1)  relation(...) :- ... .
(2)  relation(...) :- ... .
...
(i)  relation(...) :-
       t1,t2,t3,!,t4,t5,t6.

(i+1) relation(...) :- ... .
(n) relation(...) :- ... .



Omer F Rana
Sun Feb 16 21:01:24 GMT 1997