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.

On (A, Ta) ∧ On (B, Ta) ∧On (C, Ta) ∧ On (D, Ta) ∧ Box (A)<br />

∧Box (B) ∧Cone (C) ∧ Sphere (D).<br />

Suppose we have the following rules to define the height of an object from the<br />

table.<br />

1. If On (X, Y ) ∧ On (Y, Z) ∧On (Z, Ta) Then Height-of (X, 3).<br />

2. If On (X, Y ) ∧On (Y, Ta) Then Height-of (X, 2).<br />

3. If On (X, Ta) Then Height-of (X, 1).<br />

We could define height by a generic approach. But to illustrate the<br />

concept of the optimization, the present definition is adequate.<br />

The optimization problem in the present context is: Maximize h, such<br />

that On(c,_) ∧ Height-of (c, h) is true, where ‘_’ denotes something. The<br />

solution of the problem can be evaluated easily by considering all the possible<br />

stacking, such that C is on top. Note that D being spherical is excluded from<br />

the stack.<br />

The possible stackings are:<br />

i) On (C, Ta) ∧ Height-of (C,1).<br />

ii) On (C,A) ∧On (A, Ta ) ∧ Height-of (C, 2)<br />

iii) On (C, B) ∧On(B, Ta) ∧ Height-of (C,2)<br />

iv) On(C, B) ∧ On(B, A) ∧On(A, Ta) ∧ Height-of (C,3).<br />

v) On(C, A) ∧On(A, B) ∧On (B, Ta) ∧ Height-of (C,3).<br />

Out of these 5 possible stackings, the last two yield Height (=3) for C.<br />

So, we may select any of them as the solution (see fig 19.6 (a) &(b)).<br />

D<br />

(a ) On (C,B) ∧ On (B,A) ∧ On (A, Ta) ∧ Height- of (C, 3).<br />

B<br />

A<br />

C

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

Saved successfully!

Ooh no, something went wrong!