Lec11&12-Adversarial Search
Lec11&12-Adversarial Search
Adversarial Searches
The initial state and legal moves for each side define the game tree for the game
Two players named MAX and MIN playing opposite each other
MAX moves first
Both take turns until the game is over
The winner gets the reward while the loser pays a penalty
Game Trees
Given a game tree, the optimal strategy can be determined from minimax
value of each node
MAX must have a contingent strategy that specifies its move at the start and
then for each move by MIN
An optimal strategy, in general, leads to outcomes at least as good as any
other strategy when one is playing against an infallible opponent
Partial game tree (tic-tac-toe)
Types of algorithms in Adversarial search
Complete- Min-Max algorithm is Complete. It will definitely find a solution (if exist),
in the finite search tree.
Optimal- Min-Max algorithm is optimal if both opponents are playing optimally.
Time complexity- As it performs DFS for the game-tree, so the time complexity of
Min-Max algorithm is O(bm), where b is branching factor of the game-tree, and m is
the maximum depth of the tree.
Space Complexity- Space complexity of Mini-max algorithm is also similar to DFS
which is O(bm).
Limitation of the minimax Algorithm: