17
ADVERSARIAL SEARCH
ALPHA-BETA PRUNING
Subscribe
ALPHA-BETA PRUNING.
A
B D
C
MAX
MIN
3 8
12 6
4
2 14 5 2
3 2 2
3
a1
a2
b1
b2
b3 c1
c2
c3 d1
d2
d3
Terminal
Subscribe
ALPHA-BETA PRUNING.
A
B
MAX
MIN
3 8
12
[-∞,3]
[-∞, ∞]
α= The value of the best (highest value)
choice we have found so far at any choice
point along the path for MAX.
β= The value of the best (lowest value)
choice we have found so far at any choice
point along the path for MIN.
If α > β Prune
Terminal
Subscribe
ALPHA-BETA PRUNING.
A
B D
C
MAX
MIN
3 8
12 6
4
2 14 5 2
[3,3]
[3, ∞]
[-∞,2]
[-∞,14]
Subscribe
ALPHA-BETA PRUNING.
A
B D
C
MAX
MIN
3 8
12 6
4
2 14 5 2
[3,3]
[3, 3]
[-∞,2]
[2,2]
Terminal
Example
Subscribe
A
D E F G
B
C
2 3 -5
6 -3
MAX
MAX
MIN
Terminal
Complexity
Best Case: O(bd/2 )
Worst Case: O(bd )
=
3
β=min<3
=max>6
β=3
=max>3
=-3
β=min<-3
=
3
Thanks For
Watching
Reference:
Artificial Intelligence
A Modern Approach Third Edition
Peter Norvig and Stuart J. Russell
Subscribe
Like
Share
Next Topic: Knowledge Base Agents
OMega TechEd
About the Channel
This channel helps you to prepare for BSc IT and BSc computer science subjects.
In this channel we will learn Business Intelligence ,Artificial Intelligence, Digital Electronics,
Internet OF Things Python programming , Data-Structure etc.
Which is useful for upcoming university exams.
Gmail: omega.teched@gmail.com
Social Media Handles:
omega.teched
megha_with
Subscribe

Alpha beta pruning