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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

c) ¬ ( ¬ P ) = P<br />

d) ¬ ( ∃X P) = ∀ X ¬P<br />

e) ¬ ( ∀ X P) = ∃ X ¬ P<br />

In the present context, we rewrite the sentence as<br />

∀ X (¬ Child (X) ∨ ¬ (∃Y (Takes (X, Y) ∧ Biscuit (Y))) ∨ Loves (john, X ))<br />

⇒∀X (¬ Child (X) ∨ ∀ Y (¬ Takes (X, Y) ∨ ¬ Biscuit (Y)) ∨ Loves<br />

(john, X))<br />

Step III: Renaming the variables within the scope of quantifiers:<br />

Rename ∃X by ∃ Y when {∃ X} is a subset / proper subset of {∀ X}. In<br />

the present context, since X <strong>and</strong> Y are distinct, the above operation cannot be<br />

carried out.<br />

Step IV: Moving of quantifiers in the front of the expression: Bring all<br />

quantifiers at the front of the expression.<br />

Applying this on the example yields:<br />

⇒∀ X ∀ Y ¬ Child (X) ∨ ¬ Takes (X,Y) ∨ ¬ Biscuit (Y) ∨ Loves (john, X)<br />

Step V: Replacing existential quantifier as Skolem function of essential<br />

quantifiers: When an existential quantifier (Y) precedes an essential quantifier<br />

(X), replace Y as S (X), where S is the Skolem function [3]. In this example,<br />

since Y is not a subset of X, such a situation does not arise. Also the essential<br />

quantifier is dropped from the sentence.<br />

Step VI: Putting the resulting expression in conjunctive normal form<br />

(CNF): For example, if the original expression is in the form P ∨ (Q ∧ R),<br />

then replace it by (P ∨ Q) ∧ ( P ∨ R).<br />

In the present context, the resulting expression corresponding to<br />

expression (3) being in CNF, we need not do any operation at this step.<br />

Step VII: Writing one clause per line: If the original expression is of the<br />

following CNF, then rewrite each clause/ line, as illustrated below.

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

Saved successfully!

Ooh no, something went wrong!