0% found this document useful (0 votes)
110 views

Alpha Beta Pruning Algorithm

The document discusses the alpha-beta pruning algorithm for game tree search. It explains that alpha-beta pruning performs a depth-first search while updating alpha and beta values to prune branches that cannot affect the result. The key points are that max players update only alpha and min players update only beta, and pruning occurs when alpha is greater than or equal to beta. Examples are provided to illustrate how alpha-beta pruning evaluates game trees more efficiently than exhaustive search.

Uploaded by

Variable 14
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
110 views

Alpha Beta Pruning Algorithm

The document discusses the alpha-beta pruning algorithm for game tree search. It explains that alpha-beta pruning performs a depth-first search while updating alpha and beta values to prune branches that cannot affect the result. The key points are that max players update only alpha and min players update only beta, and pruning occurs when alpha is greater than or equal to beta. Examples are provided to illustrate how alpha-beta pruning evaluates game trees more efficiently than exhaustive search.

Uploaded by

Variable 14
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 27

MCSE601L - ARTIFICIAL I NTELLIGENCE

11/14/2022 1
Alpha-Beta Pruning Algorithm

11/14/2022 2
Alpha Beta Pruning

3
Alpha Beta Pruning
Important points to remember:

• Perform DFS
• α≥β then Pruning to be done
• Max player will update only the value of Alpha
• Min player will update only the value of Beta
• During Backtracking the tree , the node values will be
passed to upper nodes instead of values of alpha and beta
• We will pass the alpha and beta only to the child nodes
Alpha Beta Pruning

11/14/2022 5
Alpha Beta Pruning
Initial value

11/14/2022 6
Alpha Beta Pruning

11/14/2022 7
Alpha Beta Pruning

11/14/2022 8
Alpha Beta Pruning

11/14/2022 9
Alpha Beta Pruning

11/14/2022 10
Alpha Beta Pruning

11/14/2022 11
Alpha Beta Pruning

11/14/2022 12
Alpha Beta Pruning

11/14/2022 13
Alpha Beta Pruning

11/14/2022 14
Alpha Beta Pruning

11/14/2022 15
Alpha Beta Pruning

11/14/2022 16
Alpha Beta Pruning

11/14/2022 17
Alpha Beta Pruning

11/14/2022 18
Alpha Beta Pruning

11/14/2022 19
Alpha Beta Pruning

11/14/2022 20
Alpha Beta Pruning

11/14/2022 21
Alpha Beta Pruning

11/14/2022 22
Alpha Beta Pruning

11/14/2022 23
Alpha Beta Pruning Solution
ABDI

11/14/2022 24
Alpha Beta Pruning
Solution:
Example - 2
ABD

11/14/2022 25
Alpha Beta Pruning
Properties of α-β
• Pruning does not affect final result

• Good move ordering improves effectiveness of pruning

• With "perfect ordering," time complexity = O(b m/2)


 doubles depth of search

• A simple example of the value of reasoning about which


computations are relevant (a form of metareasoning)

26
Alpha Beta Pruning

α-β algorithm

27

You might also like