SlideShare a Scribd company logo
2
Most read
3
Most read
10
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.
Working
 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.
Minmax Algorithm In Artificial Intelligence slides
Minmax Algorithm In Artificial Intelligence slides
Minmax Algorithm In Artificial Intelligence slides
Minmax Algorithm In Artificial Intelligence slides
Properties
 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

PDF
I. Mini-Max Algorithm in AI
PDF
I. Alpha-Beta Pruning in ai
PPTX
Adversarial search
PPTX
Adversarial search
PPTX
Minmax and alpha beta pruning.pptx
PPTX
Alpha-beta pruning (Artificial Intelligence)
PPTX
Alpha beta
PPT
AI Lecture 4 (informed search and exploration)
I. Mini-Max Algorithm in AI
I. Alpha-Beta Pruning in ai
Adversarial search
Adversarial search
Minmax and alpha beta pruning.pptx
Alpha-beta pruning (Artificial Intelligence)
Alpha beta
AI Lecture 4 (informed search and exploration)

What's hot (20)

PDF
A* Search Algorithm
PPTX
Artificial Intelligence- TicTacToe game
PPTX
N queen problem
PDF
I.ITERATIVE DEEPENING DEPTH FIRST SEARCH(ID-DFS) II.INFORMED SEARCH IN ARTIFI...
PPTX
Graph coloring using backtracking
PPT
AI Lecture 3 (solving problems by searching)
PDF
I.BEST FIRST SEARCH IN AI
PPTX
Min-Max algorithm
PPTX
Ai 8 puzzle problem
PDF
Hill climbing algorithm in artificial intelligence
PPTX
Predicate logic
PPTX
Brute force method
PPT
Heuristic Search Techniques Unit -II.ppt
PPTX
Informed and Uninformed search Strategies
PPTX
Recognition-of-tokens
PPTX
Matching techniques
PPTX
Types of Parser
PPTX
Stressen's matrix multiplication
PPTX
Hill climbing algorithm
PPTX
heap Sort Algorithm
A* Search Algorithm
Artificial Intelligence- TicTacToe game
N queen problem
I.ITERATIVE DEEPENING DEPTH FIRST SEARCH(ID-DFS) II.INFORMED SEARCH IN ARTIFI...
Graph coloring using backtracking
AI Lecture 3 (solving problems by searching)
I.BEST FIRST SEARCH IN AI
Min-Max algorithm
Ai 8 puzzle problem
Hill climbing algorithm in artificial intelligence
Predicate logic
Brute force method
Heuristic Search Techniques Unit -II.ppt
Informed and Uninformed search Strategies
Recognition-of-tokens
Matching techniques
Types of Parser
Stressen's matrix multiplication
Hill climbing algorithm
heap Sort Algorithm
Ad

Similar to Minmax Algorithm In Artificial Intelligence slides (20)

PPTX
Min Max Algorithm in Artificial Intelligence
PPTX
Min Max Artificial Intelligence algorithm
PPTX
MINMAX ALGORITHM in machine learning.pptx
PPTX
Mini-Max Algorithm in Artificial Intelligence.pptx
PPTX
AI3391 Artificial intelligence Session 15 Min Max Algorithm.pptx
PPTX
foundations of AI:module 3,csp,minimax algorithm
PPTX
22PCOAM11 Unit 2: Session 8 Min-Max.pptx
PPTX
AI_unit3.pptx
PPTX
MINI-MAX ALGORITHM.pptx
PDF
Minimax.pdf
PPTX
AI_Session 14 Min Max Algorithm.pptx
PPTX
Minimax
PDF
AI3391 Artificial Intelligence UNIT III Notes_merged.pdf
PDF
Adversial-search.pdf topic of AI/ML for Diploma students
PPTX
Adversarial search
PPTX
Game Playing Overview, And Example Domain.pptx
PPTX
9SearchAdversarial (1).pptx
PPTX
FAI UNIT 3Search using games important.pptx
PPTX
adversial search.pptx
PPTX
Two player games
Min Max Algorithm in Artificial Intelligence
Min Max Artificial Intelligence algorithm
MINMAX ALGORITHM in machine learning.pptx
Mini-Max Algorithm in Artificial Intelligence.pptx
AI3391 Artificial intelligence Session 15 Min Max Algorithm.pptx
foundations of AI:module 3,csp,minimax algorithm
22PCOAM11 Unit 2: Session 8 Min-Max.pptx
AI_unit3.pptx
MINI-MAX ALGORITHM.pptx
Minimax.pdf
AI_Session 14 Min Max Algorithm.pptx
Minimax
AI3391 Artificial Intelligence UNIT III Notes_merged.pdf
Adversial-search.pdf topic of AI/ML for Diploma students
Adversarial search
Game Playing Overview, And Example Domain.pptx
9SearchAdversarial (1).pptx
FAI UNIT 3Search using games important.pptx
adversial search.pptx
Two player games
Ad

Recently uploaded (20)

PDF
TR - Agricultural Crops Production NC III.pdf
PPTX
Renaissance Architecture: A Journey from Faith to Humanism
PDF
Microbial disease of the cardiovascular and lymphatic systems
PDF
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PPTX
Week 4 Term 3 Study Techniques revisited.pptx
PPTX
PPH.pptx obstetrics and gynecology in nursing
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PDF
VCE English Exam - Section C Student Revision Booklet
PDF
01-Introduction-to-Information-Management.pdf
PDF
Pre independence Education in Inndia.pdf
PDF
Basic Mud Logging Guide for educational purpose
PPTX
Institutional Correction lecture only . . .
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PDF
RMMM.pdf make it easy to upload and study
TR - Agricultural Crops Production NC III.pdf
Renaissance Architecture: A Journey from Faith to Humanism
Microbial disease of the cardiovascular and lymphatic systems
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
Abdominal Access Techniques with Prof. Dr. R K Mishra
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
Week 4 Term 3 Study Techniques revisited.pptx
PPH.pptx obstetrics and gynecology in nursing
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
VCE English Exam - Section C Student Revision Booklet
01-Introduction-to-Information-Management.pdf
Pre independence Education in Inndia.pdf
Basic Mud Logging Guide for educational purpose
Institutional Correction lecture only . . .
O5-L3 Freight Transport Ops (International) V1.pdf
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
FourierSeries-QuestionsWithAnswers(Part-A).pdf
RMMM.pdf make it easy to upload and study

Minmax Algorithm In Artificial Intelligence slides

  • 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. Working  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.
  • 10. Properties  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.