Intro to AI: Lecture 4 Volker Sorge MiniMax Algorithm
Example: Tic-Tac-Toe
Alpha-Beta Pruning
Adversarial Search Volker Sorge Intro to AI: Problem of Games - - PowerPoint PPT Presentation
Intro to AI: Lecture 4 Volker Sorge MiniMax Algorithm Example: Tic-Tac-Toe Alpha-Beta Pruning Adversarial Search Volker Sorge Intro to AI: Problem of Games Lecture 4 Volker Sorge MiniMax Algorithm Example: Tic-Tac-Toe Alpha-Beta
Intro to AI: Lecture 4 Volker Sorge MiniMax Algorithm
Example: Tic-Tac-Toe
Alpha-Beta Pruning
Intro to AI: Lecture 4 Volker Sorge MiniMax Algorithm
Example: Tic-Tac-Toe
Alpha-Beta Pruning
Intro to AI: Lecture 4 Volker Sorge MiniMax Algorithm
Example: Tic-Tac-Toe
Alpha-Beta Pruning
Intro to AI: Lecture 4 Volker Sorge MiniMax Algorithm
Example: Tic-Tac-Toe
Alpha-Beta Pruning
◮ Max layer: It is Max’s turn. ◮ Min layer: It is Min’s turn.
◮ In Max layer: take maximum utility value of children. ◮ In Min layer: take minimum utility value of children.
Intro to AI: Lecture 4 Volker Sorge MiniMax Algorithm
Example: Tic-Tac-Toe
Alpha-Beta Pruning
1 begin 2
3
4
5
6
7
8
9
10
11
12
13 end
Intro to AI: Lecture 4 Volker Sorge MiniMax Algorithm
Example: Tic-Tac-Toe
Alpha-Beta Pruning
Intro to AI: Lecture 4 Volker Sorge MiniMax Algorithm
Example: Tic-Tac-Toe
Alpha-Beta Pruning
Intro to AI: Lecture 4 Volker Sorge MiniMax Algorithm
Example: Tic-Tac-Toe
Alpha-Beta Pruning
Intro to AI: Lecture 4 Volker Sorge MiniMax Algorithm
Example: Tic-Tac-Toe
Alpha-Beta Pruning
Intro to AI: Lecture 4 Volker Sorge MiniMax Algorithm
Example: Tic-Tac-Toe
Alpha-Beta Pruning
Intro to AI: Lecture 4 Volker Sorge MiniMax Algorithm
Example: Tic-Tac-Toe
Alpha-Beta Pruning
Intro to AI: Lecture 4 Volker Sorge MiniMax Algorithm
Example: Tic-Tac-Toe
Alpha-Beta Pruning
Intro to AI: Lecture 4 Volker Sorge MiniMax Algorithm
Example: Tic-Tac-Toe
Alpha-Beta Pruning
Intro to AI: Lecture 4 Volker Sorge MiniMax Algorithm
Example: Tic-Tac-Toe
Alpha-Beta Pruning
◮ Max would never do a move, or ◮ Min would never do a move.
Intro to AI: Lecture 4 Volker Sorge MiniMax Algorithm
Example: Tic-Tac-Toe
Alpha-Beta Pruning
◮ in a Max node if value is > β ◮ in Min node if value is < α
Intro to AI: Lecture 4 Volker Sorge MiniMax Algorithm
Example: Tic-Tac-Toe
Alpha-Beta Pruning
Intro to AI: Lecture 4 Volker Sorge MiniMax Algorithm
Example: Tic-Tac-Toe
Alpha-Beta Pruning
Intro to AI: Lecture 4 Volker Sorge MiniMax Algorithm
Example: Tic-Tac-Toe
Alpha-Beta Pruning
Intro to AI: Lecture 4 Volker Sorge MiniMax Algorithm
Example: Tic-Tac-Toe
Alpha-Beta Pruning
α=−∞ β=+∞
α=−∞ β=+∞
α=−∞ β=+∞
Intro to AI: Lecture 4 Volker Sorge MiniMax Algorithm
Example: Tic-Tac-Toe
Alpha-Beta Pruning
4>β? α=4 β=+∞ α=−∞ β=+∞
α=−∞ β=+∞
Intro to AI: Lecture 4 Volker Sorge MiniMax Algorithm
Example: Tic-Tac-Toe
Alpha-Beta Pruning
α=−∞ β=5
5<α? α=−∞ β=5 α=−∞ β=+∞
Intro to AI: Lecture 4 Volker Sorge MiniMax Algorithm
Example: Tic-Tac-Toe
Alpha-Beta Pruning
6>β? α=−∞ β=5 α=−∞ β=5 α=−∞ β=+∞
Intro to AI: Lecture 4 Volker Sorge MiniMax Algorithm
Example: Tic-Tac-Toe
Alpha-Beta Pruning
α=5 β=+∞
α=5 β=+∞
5>β? α=5 β=+∞
Intro to AI: Lecture 4 Volker Sorge MiniMax Algorithm
Example: Tic-Tac-Toe
Alpha-Beta Pruning
3>β? α=5 β=+∞ α=5 β=+∞
α=5 β=+∞
Intro to AI: Lecture 4 Volker Sorge MiniMax Algorithm
Example: Tic-Tac-Toe
Alpha-Beta Pruning
4<α? α=5 β=+∞ α=5 β=+∞
Intro to AI: Lecture 4 Volker Sorge MiniMax Algorithm
Example: Tic-Tac-Toe
Alpha-Beta Pruning