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.

eductions. Constraint satisfaction techniques, being an emerging research<br />

area, will be presented in detail in chapter 19. Means <strong>and</strong> ends analysis <strong>and</strong><br />

problem reduction techniques, on the other h<strong>and</strong>, are available in most text<br />

books [7] <strong>and</strong> we omit these for lack of space.<br />

Exercises<br />

1. Using the Euclidean distance of a node (x, y) from a fixed node (2, 2),<br />

i.e.,<br />

h = [ (x –2) 2 + (y –2) 2 1 / 2<br />

]<br />

solve the water-jug problem by paper <strong>and</strong> pencil by A* algorithm. Does<br />

this heuristic function return an optimal path? Consequently, can you call<br />

it an admissible heuristic?<br />

2. The 8-puzzle problem is similar to the 4-puzzle problem we discussed in<br />

chapter 1. The only difference is that there exist 9 cells <strong>and</strong> 8 tiles instead<br />

of the 4 cells <strong>and</strong> 3 tiles of a 4-puzzle problem. Can you select a heuristic<br />

function for the 8-puzzle problem? Solve the 8-puzzle problem by the A*<br />

algorithm with your selected heuristic function.<br />

3. Show the computation for the first 3 ply moves in a tac-tac-toe game using<br />

the α-β cut-off algorithm.<br />

4. Consider a room whose floor space is partitioned into equal sized blocks.<br />

Suppose there is a mobile robot (MR) in one block, <strong>and</strong> we want to move<br />

to a distant block. Some of the blocks are occupied with obstacles. The<br />

robot has to plan its trajectory so that it reaches the goal position from a<br />

given initial position without touching the obstacles. Can you design a<br />

heuristic function for the problem? If yes, solve the problem using the A*<br />

algorithm on a graph paper. Assume the location of the obstacles <strong>and</strong> the<br />

starting <strong>and</strong> the goal positions.<br />

References<br />

[1] Bender, E. A., Mathematical Methods in <strong>Artificial</strong> <strong>Intelligence</strong>, IEEE<br />

Computer Society Press, Los Alamitos, pp. 33-84, 1996.<br />

[2] Ginsberg, M., Essentials of <strong>Artificial</strong> <strong>Intelligence</strong>, Morgan Kaufmann,<br />

San Mateo, CA, pp. 49-103, 1993.

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

Saved successfully!

Ooh no, something went wrong!