SlideShare a Scribd company logo
2
Most read
11
Most read
Mini-Max Algorithm
in Artificial
Intelligence
 Mini-max algorithm is a recursive or backtracking algorithm
which is used in decision-making and game theory.
 Mini-Max algorithm uses recursion to search through the
game- tree.
 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.
 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.
Workin
g
 An example of game-tree which is representing the two-player game.
 In this example, there are two players one is called Maximizer and
other is called Minimizer.
 Maximizer will try to get the Maximum possible score, and
Minimizer will try to get the minimum possible score.
 This algorithm applies DFS, so in this game-tree, we have to go all the way
through the leaves to reach the terminal nodes.
 At the terminal node, the terminal values are given so we will compare those
value and
backtrack the tree until the initial state occurs.
faximizer
linin1izer
Te1winal
node
Terminal alue
laximizer
linhuizer
laxin1izer
T ern1inal
node
T erminal value
Ia.rimizer
linilnizer
laximiz.er
Terminal
node
-1 4 2 6 -3 -5 0
T erminal value
4
linimizer
7 - . la.'.imize1·
Terminal
node
-1
4 2
6 -3 -5
T erminal alue
Propertie
s  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
 The main drawback of the minimax algorithm is that it gets really
slow for complex games such as Chess, go, etc. This type of games
has a huge branching factor, and the player has lots of choices to
decide. This limitation of the minimax algorithm can be improved
from alpha-beta pruning.

More Related Content

PPTX
Min Max Artificial Intelligence algorithm
PPTX
Minmax Algorithm In Artificial Intelligence slides
PPTX
foundations of AI:module 3,csp,minimax algorithm
PDF
AI3391 Artificial Intelligence UNIT III Notes_merged.pdf
PDF
I. Mini-Max Algorithm in AI
PPTX
9SearchAdversarial (1).pptx
PPTX
Artificial intelligence dic_SLIDE_3.pptx
PPTX
Minimax
Min Max Artificial Intelligence algorithm
Minmax Algorithm In Artificial Intelligence slides
foundations of AI:module 3,csp,minimax algorithm
AI3391 Artificial Intelligence UNIT III Notes_merged.pdf
I. Mini-Max Algorithm in AI
9SearchAdversarial (1).pptx
Artificial intelligence dic_SLIDE_3.pptx
Minimax

Similar to Min Max Algorithm in Artificial Intelligence (20)

PPTX
Chess engine presentation
PPTX
AI_unit3.pptx
PPTX
GAME PLAYING, PLANNING AND CONSTRAINT SATISFACTION​
PPT
Unit_I_Introduction(Part_III).ppt
PPTX
MINI-MAX ALGORITHM.pptx
PPTX
adversial search.pptx
PPTX
Mini-Max Algorithm in Artificial Intelligence.pptx
PPTX
Min-Max algorithm
PPTX
AI_Session 14 Min Max Algorithm.pptx
PPTX
FIXED_Game_Theory_to_Minimax_Presentation.pptx
PDF
GAME THEORY AND MONTE CARLO SEARCH SPACE TREE
PDF
12 adversal search
PPTX
AI3391 Artificial intelligence Session 15 Min Max Algorithm.pptx
PDF
Classic AI problem: Search-and-games.pdf
PPTX
Minimax algorithm ex.pptx
PPT
Jarrar.lecture notes.aai.2011s.ch6.games
PPT
Adversarial Search and Game-Playing .ppt
PPTX
MINMAX ALGORITHM in machine learning.pptx
PPTX
22PCOAM11 Unit 2: Session 8 Min-Max.pptx
PPTX
Minmax and alpha beta pruning.pptx
Chess engine presentation
AI_unit3.pptx
GAME PLAYING, PLANNING AND CONSTRAINT SATISFACTION​
Unit_I_Introduction(Part_III).ppt
MINI-MAX ALGORITHM.pptx
adversial search.pptx
Mini-Max Algorithm in Artificial Intelligence.pptx
Min-Max algorithm
AI_Session 14 Min Max Algorithm.pptx
FIXED_Game_Theory_to_Minimax_Presentation.pptx
GAME THEORY AND MONTE CARLO SEARCH SPACE TREE
12 adversal search
AI3391 Artificial intelligence Session 15 Min Max Algorithm.pptx
Classic AI problem: Search-and-games.pdf
Minimax algorithm ex.pptx
Jarrar.lecture notes.aai.2011s.ch6.games
Adversarial Search and Game-Playing .ppt
MINMAX ALGORITHM in machine learning.pptx
22PCOAM11 Unit 2: Session 8 Min-Max.pptx
Minmax and alpha beta pruning.pptx
Ad

More from vipulkondekar (20)

PPTX
Free-Counselling-and-Admission-Facilitation-at-WIT-Campus.pptx
PPTX
Machine Learning Presentation for Engineering
PPTX
Exploring-Scholarship-Opportunities.pptx
PPTX
Documents-Required-for- Engineering Admissions.pptx
PPTX
Backpropagation algorithm in Neural Network
PPTX
AO Star Algorithm in Artificial Intellligence
PPTX
A Star Algorithm in Artificial intelligence
PPTX
Artificial Intelligence Problem Slaving PPT
PPT
Deep Learning approach in Machine learning
PPT
Artificial Neural Network and Machine Learning
PPT
Microcontroller Timer Counter Modules and applications
PPT
Microcontroller 8051 timer and counter module
PPT
Microcontroller 8051 Timer Counter Interrrupt
PPTX
Microcontroller Introduction and the various features
PPTX
Avishkar competition presentation template
PPTX
Introduction to prototyping in developing the products
PPTX
KNN Algorithm Machine_Learning_KNN_Presentation.pptx
PPTX
New Education Policy Presentation at VIT
PPT
Random Forest algorithm in Machine learning
PPTX
APPLICATIONS OF AI IN CYBERSECURITY.pptx
Free-Counselling-and-Admission-Facilitation-at-WIT-Campus.pptx
Machine Learning Presentation for Engineering
Exploring-Scholarship-Opportunities.pptx
Documents-Required-for- Engineering Admissions.pptx
Backpropagation algorithm in Neural Network
AO Star Algorithm in Artificial Intellligence
A Star Algorithm in Artificial intelligence
Artificial Intelligence Problem Slaving PPT
Deep Learning approach in Machine learning
Artificial Neural Network and Machine Learning
Microcontroller Timer Counter Modules and applications
Microcontroller 8051 timer and counter module
Microcontroller 8051 Timer Counter Interrrupt
Microcontroller Introduction and the various features
Avishkar competition presentation template
Introduction to prototyping in developing the products
KNN Algorithm Machine_Learning_KNN_Presentation.pptx
New Education Policy Presentation at VIT
Random Forest algorithm in Machine learning
APPLICATIONS OF AI IN CYBERSECURITY.pptx
Ad

Recently uploaded (20)

PPTX
OOP with Java - Java Introduction (Basics)
PDF
R24 SURVEYING LAB MANUAL for civil enggi
PPTX
UNIT-1 - COAL BASED THERMAL POWER PLANTS
PDF
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
PDF
Digital Logic Computer Design lecture notes
PPT
introduction to datamining and warehousing
PPTX
additive manufacturing of ss316l using mig welding
PPT
Introduction, IoT Design Methodology, Case Study on IoT System for Weather Mo...
PPTX
Current and future trends in Computer Vision.pptx
PDF
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
PPT
Mechanical Engineering MATERIALS Selection
PDF
Model Code of Practice - Construction Work - 21102022 .pdf
PDF
Automation-in-Manufacturing-Chapter-Introduction.pdf
PDF
PPT on Performance Review to get promotions
PDF
Embodied AI: Ushering in the Next Era of Intelligent Systems
PDF
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
PDF
Operating System & Kernel Study Guide-1 - converted.pdf
PPTX
CYBER-CRIMES AND SECURITY A guide to understanding
PDF
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
PPTX
Artificial Intelligence
OOP with Java - Java Introduction (Basics)
R24 SURVEYING LAB MANUAL for civil enggi
UNIT-1 - COAL BASED THERMAL POWER PLANTS
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
Digital Logic Computer Design lecture notes
introduction to datamining and warehousing
additive manufacturing of ss316l using mig welding
Introduction, IoT Design Methodology, Case Study on IoT System for Weather Mo...
Current and future trends in Computer Vision.pptx
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
Mechanical Engineering MATERIALS Selection
Model Code of Practice - Construction Work - 21102022 .pdf
Automation-in-Manufacturing-Chapter-Introduction.pdf
PPT on Performance Review to get promotions
Embodied AI: Ushering in the Next Era of Intelligent Systems
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
Operating System & Kernel Study Guide-1 - converted.pdf
CYBER-CRIMES AND SECURITY A guide to understanding
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
Artificial Intelligence

Min Max Algorithm in Artificial Intelligence

  • 2.  Mini-max algorithm is a recursive or backtracking algorithm which is used in decision-making and game theory.  Mini-Max algorithm uses recursion to search through the game- tree.  In this algorithm two players play the game, one is called MAX and other is called MIN.
  • 3.  Both the players fight it as the opponent player gets the minimum benefit while they get the maximum benefit.  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.
  • 4. Workin g  An example of game-tree which is representing the two-player game.  In this example, there are two players one is called Maximizer and other is called Minimizer.  Maximizer will try to get the Maximum possible score, and Minimizer will try to get the minimum possible score.
  • 5.  This algorithm applies DFS, so in this game-tree, we have to go all the way through the leaves to reach the terminal nodes.  At the terminal node, the terminal values are given so we will compare those value and backtrack the tree until the initial state occurs.
  • 9. 4 linimizer 7 - . la.'.imize1· Terminal node -1 4 2 6 -3 -5 T erminal alue
  • 10. Propertie s  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).
  • 11. Limitation  The main drawback of the minimax algorithm is that it gets really slow for complex games such as Chess, go, etc. This type of games has a huge branching factor, and the player has lots of choices to decide. This limitation of the minimax algorithm can be improved from alpha-beta pruning.