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.

Based on the above discussion, we now present the main steps in the α-β<br />

search algorithm.<br />

i) Create a new node, if it is the beginning move, else exp<strong>and</strong> the<br />

existing tree by depth first manner. To make a decision about the<br />

selection of a move at depth d, the tree should be exp<strong>and</strong>ed at least<br />

up to a depth (d + 2).<br />

ii) Compute e(n) for all leave (fringe) nodes n in the tree.<br />

iii) Compute α ’ min (for max nodes) <strong>and</strong> β ’ max values (for min nodes) at<br />

the ancestors of the fringe nodes by the following guidelines.<br />

Estimate the minimum of the values (e or α) possessed by the<br />

children of a MINIMIZER node N <strong>and</strong> assign it its β ’ max value.<br />

Similarly, estimate the maximum of the values (e or β) possessed<br />

by the children of a MAXIMIZER node N <strong>and</strong> assign it its α ’ min<br />

value.<br />

βmax =1<br />

C<br />

αmin =1<br />

e(n) = 1 2 3<br />

Pass - II<br />

B<br />

D<br />

Fig. 4.15: A thinks of the alternative move F, <strong>and</strong> also mentally generates<br />

the next ply move G; e(G) = -1; so βmax at F is –1. Now, βmax<br />

at F is less than αmin of A. Thus there is no need to search below<br />

F. G may be pruned from the search space.<br />

A<br />

βmax = -1<br />

E<br />

F<br />

G<br />

-1

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

Saved successfully!

Ooh no, something went wrong!