Minimax Search Technique
Minimax Search Technique
and game theory. It provides an optimal move for the player assuming that opponent is also
playing optimally.
Overview
In this algorithm two players play the game, one is called MAX and other is called MIN.
Both the players fight it as the opponent player gets the minimum benefit while they get
the maximum benefit.
Both Players of the game are opponent of each other, where MAX will select the
maximized value and MIN will select the minimized value.
The minimax algorithm performs a depth-first search algorithm for the exploration of the
complete game tree.
The minimax algorithm proceeds all the way down to the terminal node of the tree, then
backtrack the tree as the recursion.
At the terminal node, the terminal values are given so we will compare those value and
backtrack the tree until the initial state occurs.
After generating the whole game tree and getting the leaf nodes:
After backing-up of values. We assume MAX starts the game