What is minimax algorithm in AI?

What is minimax algorithm in AI?

Mini-max algorithm is a recursive or backtracking algorithm which is used in decision-making and game theory. It provides an optimal move for the player assuming that opponent is also playing optimally. This Algorithm computes the minimax decision for the current state. …

What is minimax method?

The Minimax algorithm is the most well-known strategy of play of two-player, zero-sum games. The minimax theorem was proven by John von Neumann in 1928. Minimax is a strategy of always minimizing the maximum possible loss which can result from a choice that a player makes.

How the minimax algorithm works for chess?

This is done by using the Minimax algorithm. In this algorithm, the recursive tree of all possible moves is explored to a given depth, and the position is evaluated at the ending “leaves” of the tree. The effectiveness of the minimax algorithm is heavily based on the search depth we can achieve.

What is the purpose of the minimax algorithm?

A minimax algorithm is a recursive program written to find the best gameplay that minimizes any tendency to lose a game while maximizing any opportunity to win the game. Graphically, we can represent minimax as an exploration of a game tree’s nodes to discover the best game move to make.

How is the minimax algorithm used in tic tac toe?

In short, a minimax algorithm is a recursive function created to help a player (the maximizer) decide on the gameplay that minimizes the maximum possibility to lose a game. To make this tutorial precise, the root node (the current state of the tic-tac-toe game) we will use will be a near-the-end state game board — as shown in figure 2 below.

What is the time complexity of Mini Max algorithm?

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:

How is minimax used in turn based games?

It is widely used in two player turn-based games such as Tic-Tac-Toe, Backgammon, Mancala, Chess, etc. In Minimax the two players are called maximizer and minimizer. The maximizer tries to get the highest score possible while the minimizer tries to do the opposite and get the lowest score possible.