Ai 4
Ai 4
Adversarial Search
• Informed Search
• Greedy Search
• A * Search
• Learning desired Heuristic Function
Today’s lecture
• Semester Project
• Assignment#1
• Adversarial Search
• Minimax Algorithm
• Alpha-beta pruning
Semester Project….Assign#1 —2-weeks
A B C
50 -50 1 3 15 -5
In AI, Chess and GO are commonly analysed games
• Types
• Perfect Information
• Zero-sum game
• Move ⟹ Action
• Position ⟹ State
• Is solved?
Game tree
• Nodes ⟹ states
• Edges ⟹ actions
A game can be de ned as space search problem…..
• Min value
• Compute MIN-Value at node n
• Loop over n’s children
• n’s estimate of the children’s min is dropping
• Who cares about n’s value? MAX
• Let α be the best value that MAX can get at any choice point
along the current path from the root
MINIMAX(state, α, β)
α — the value of best choice β — the value of best choice
found at any point of Path for found at any point of Path for
MAX, α = at-least MIN, β = atmost
Some examples of alpha beta pruning
10 8 4 50
• A function that takes in the state and outputs an estimate of the true minimax value of
that node