Professional Documents
Culture Documents
Resolution Frws and BCKWRD Chaining
Resolution Frws and BCKWRD Chaining
food(Peanuts)
x,y eats(y,x) alive(y) food(x)
eats(Bill,Peanuts) Alive(Bill)
More Efficient Forward Chaining
Checking all rules will take too much time.
eats(y,x) alive(y)
Yes, y/Bill, x/peanuts Yes, y/Bill
Backward Chaining
• Depth First recursive proof
• space is linear in size of proof.
• Incomplete
• infinite loops
• Can be inefficient
• repeated subgoals
FOL to CNF
Resolution requires that FOL sentences be
represented in Conjunctive Normal Form
(CNF)
Everyone who loves all animals is loved by
someone.
FOL: x[y Animal ( y ) Loves( x, y )] [y Loves( y, x )]
CNF:
[ Animal( F ( x )) Loves(G ( x ), x )] [Loves( x, F ( x )) Loves(G ( x ), x )]
Resolution
Resolution
a single inference rule
provides a complete inference algorithm
when coupled with any complete search
algorithm.
{x/Bill, y/peanuts}
x,y – implicitly
knows(John, x) knows(John,Jane) {x / Jane} universally quantified
{x/Peanuts}
{y/Peanuts}