39. Define Minimax Algorithm and explains its terminologies.

Minimax refers to a recursive algorithm used for selecting an optimal move for a player assuming that the other player is also playing optimally.

However, a game can be specified as a search problem with the following elements: