Unit 1 (A, B, C, D)
Unit 1 (A, B, C, D)
B. * Then Max will Never choose to | less, Alpha beta in action : Why can we cut off search? B=2 the beta of any min ancestor. This is beta cutoff 2 Oritis a min node and the beta value is < the alpha of any max ancestor. This is alpha cutoff. Calculating alpha-beta values : * Alpha-Beta calculations similar to Minimax, but the Pruning rule cuts down search. Final backed up value of node. 1. Might be the maximum value, 2. Ormight be an approximation where search cut off. Less than the minimax value at aMax node. More than the minimax value at a Mid node. We don't need to know the true value. Calculating alpha values at a max node : * After we obtain the final backed up value of the first child. 1. We set ex of the node to this value When we get the final backed up value of the second child, 1. We increase ix if the new value is larger. When we have the final child, or if fb cutoff. 1. a value becomes the final backed up value. 2. Only then can we set the B of the parent Min node. Calculating beta values at Min : * After we obtain the final backed up value of the first child, we set Bof the node to this value When we get the final backed up value of the second child 1. we decrease f if the new value is smaller ‘When we have the final child, or if a ~cutoff 1. B value becomes the final backed up valueSLICATIONS® & Expert Systems _1-60 GATE ACADEMY PUBI Artificial Intelligence ; Alpha-beta pruning example : efh kl Poor Min © MINIMAX (n, alpha, beta) TF nis at the search depth, RETURN V(n) FOR each child m of n value= MAXIMIN (m, alpha, beta) IF value < beta , beta = value TF beta < alpha, retum alpha RETURN beta Performance of Alpha-Beta % Pruning : -Pends on the order in which the nodes are encountered at the search, frontier. 2. Optimal - b!- if the Node is generated first, and the IN node is generated first. 3. Worst-b, 4 Average b™ - random ordering, FREY Game of Chance uM =.