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.

Total Neighbours<br />

160,240 <strong>and</strong> 240,320 ------- status: occupied node<br />

240,240 <strong>and</strong> 400,400 ------- status: empty node<br />

80,320 <strong>and</strong> 160,400 ------- status: empty node<br />

number of neighbours =3<br />

path node selected<br />

240,240 <strong>and</strong> 400,400<br />

A.9 The World Program<br />

This C++ program builds a map of the obstacles <strong>and</strong> the room boundary by<br />

first determining the room boundary <strong>and</strong> then employing the depth first<br />

traversal following an ordered priority based directed traversal.<br />

NOTE: Save the BGI file with the program in A-drive.<br />

The sample run of the program is presented below.<br />

The workspace is rectangular <strong>and</strong> co-ordinates are (85,85), (85,395), (395,85)<br />

& (395,395)<br />

Starting position of robot x(enter value between 85 - 395): 100<br />

Starting position of robot y(enter value between 85 - 395): 380

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

Saved successfully!

Ooh no, something went wrong!