Resolution
Ordering is especially important for recursive rule sets
The two sets of rules on the right are logically equivalent
- Conjunction is commutative
But they are computationally very different
ancestor(X,Y) :- parent(X,Y).
ancestor(X,Y) :- parent(X,Y).