06.03.2013 Views

Artificial Intelligence and Soft Computing: Behavioral ... - Arteimi.info

Artificial Intelligence and Soft Computing: Behavioral ... - Arteimi.info

Artificial Intelligence and Soft Computing: Behavioral ... - Arteimi.info

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

S: = S ∪ {variable or constant / term};<br />

Q: = P[variable or constant / term];<br />

End;<br />

End Case of;<br />

End while;<br />

If P or Q contain a Next-symbol Then Unify: = fail<br />

Else Unify: = Success;<br />

End.<br />

5.10 Robinson’s Inference Rule<br />

Consider predicates P, Q1, Q2 <strong>and</strong> R. Let us assume that with appropriate<br />

substitution S, Q1 [S] = Q2 [S] .<br />

Then (P ∨ Q1) ∧ (Q2 ∨ R) with Q1 [S] = Q2 [S] yields ( P ∨ R) [S].<br />

P ∨ Q1, ¬Q 2 ∨ R Q 1 [S] = Q 2 [S]<br />

Symbolically, ______________________________<br />

(P ∨ R) [S]<br />

The above rule is referred to as Robinson’s inference rule [8]. It is also<br />

referred to as the resolution principle in predicate logic. The following<br />

example illustrates the rule.<br />

Let P = Loves (X, father-of (X)),<br />

Q1= Likes (X, mother-of (X))),<br />

Q2 = Likes( john, Y),<br />

R = Hates (X, Y).<br />

After unifying Q1 <strong>and</strong> Q2, we have<br />

Q= Q1 = Q2 =Likes (john, mother-of (john))<br />

Where the substitution S is given by<br />

S= { john /X, mother-of (X) / Y}<br />

= {john / X, mother-of (john) / Y}.<br />

The resolvent (P ∨ R) [s] is, thus, computed as follows.<br />

( P ∨ R) [S]<br />

=Loves (john, father-of (john)) ∨ hates (john, mother-of(john)).

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!