SlideShare a Scribd company logo
MINMAX ALGORITHM
BY
NAME: SURYAKUMARAN M
ROLL.NO: 24CSER025
UNIT.NO: 2
SUBJECT: FOUNDATION OF ARTIFICIAL INTELLIGENCE
WHAT IS MINMAX ?
 The MinMax algorithm, also known as minimax, is
a backtracking algorithm used in decision
making, game theory and artificial intelligence
(AI). It is used to find the optimal move for a player,
assuming that the opponent is also playing optimally.
 The algorithm is mostly employed for game play,
such as chess, checkers, tic-tac-toe, go, and other
two-player games
WORKING OF MIN-MAX PROCESS IN AI
 The Min-Max algorithm is a decision-making process used in
artificial intelligence for two-player games. It involves two
players: the maximizer and the minimizer, each aiming to
optimize their own outcomes.
Maximizing Player (Max):
 Aims to maximize their score or utility value.
 Chooses the move that leads to the highest possible utility
value, assuming the opponent will play optimally.
Cond…
Minimizing Player (Min):
 Aims to minimize the maximizes score or utility
value.
 Selects the move that results in the lowest possible
utility value for the maximize, assuming the
opponent will play optimally.
EXAMPLE OF MIN-MAX IN ACTION
 Consider a simplified version of a game where each
player can choose between two moves at each turn.
Here’s a basic game tree:
Max
/ 
Min Min
/  / 
+1 -10 +1
Cond..
 At the leaf nodes, the utility values are +1, -1, 0, and
+1.
 The minimizing player will choose the minimum
values from the child nodes: -1 (left subtree) and 0
(right subtree).
 The maximizing player will then choose the
maximum value between -1 and 0, which is 0.
ALPHA-BETA PRUNING OPTIMIZATION
IN MINI-MAX ALGORITHM
 Alpha-beta pruning enhances the Min-Max algorithm
by eliminating branches that do not affect the final
decision.
 Alpha (α): The best value that the maximizing player
can guarantee so far.
 Beta (β): The best value that the minimizing player
can guarantee so far.
During the search:
 If alpha geq beta, prune the remaining branches.
STRENGTHS OF THE MIN-MAX ALGORITHM
Optimal Decision Making:
 The Min-Max algorithm ensures optimal
decision making by considering all
possible moves and their outcomes. It
provides a strategic advantage by
predicting the opponent’s best responses
and choosing moves that maximize the
player’s benefit.
Cond..
Simplicity and Clarity:
 The Min-Max algorithm is conceptually
simple and easy to understand. Its
straightforward approach of evaluating
and propagating utility values through a
game tree makes it an accessible and
widely taught algorithm in AI.
WEAKNESSES OF THE MIN-MAX
ALGORITHM
Computational Complexity:
 The primary drawback of the Min-Max
algorithm is its computational complexity.
As the depth and branching factor of the
game tree increase, the number of nodes
to be evaluated grows exponentially. This
makes it computationally expensive and
impractical for games with deep and
complex trees, like Go.
Cond…
Depth Limitations:
 To manage computational demands, the
Min-Max algorithm often limits the depth
of the game tree. However, this can lead
to suboptimal decisions if critical moves lie
beyond the chosen depth. Balancing depth
and computational feasibility is a
significant challenge.
Cond…
Handling of Uncertain Environments:
 The Min-Max algorithm assumes
deterministic outcomes for each move,
which may not be realistic in uncertain or
probabilistic environments. Real-world
scenarios often involve uncertainty and
incomplete information, requiring
modifications to the basic Min-Max
approach.
CONCLUSION
 In summary, the minimax algorithm helps
the AI make optimal decisions by
considering the best and worst possible
outcomes for each move, assuming both
players play perfectly.
THANK YOU

More Related Content

PPTX
Mini-Max Algorithm in Artificial Intelligence.pptx
PPTX
Minimax
PPTX
Adversarial search
PPTX
Chess engine presentation
PPT
Game Tree ( Oyun Ağaçları )
PPTX
foundations of AI:module 3,csp,minimax algorithm
PPTX
ARTIFICIAL INTELLIGENCE CONSTRAINT SATISFACTION PROBLEMS (CSPS) AND MINI-MAX....
PPTX
adversial search.pptx
Mini-Max Algorithm in Artificial Intelligence.pptx
Minimax
Adversarial search
Chess engine presentation
Game Tree ( Oyun Ağaçları )
foundations of AI:module 3,csp,minimax algorithm
ARTIFICIAL INTELLIGENCE CONSTRAINT SATISFACTION PROBLEMS (CSPS) AND MINI-MAX....
adversial search.pptx

Similar to MINMAX ALGORITHM in machine learning.pptx (20)

PPTX
Minmax Algorithm In Artificial Intelligence slides
PPT
Gameplaying in artificial intelligence
PPT
Game Playing in Artificial Intelligence
PDF
21CSC206T_UNIT3.pptx.pdf ARITIFICIAL INTELLIGENCE
PPTX
AI algorithm in game playing
PPT
1.game
PPTX
FIXED_Game_Theory_to_Minimax_Presentation.pptx
PDF
AI3391 Artificial Intelligence UNIT III Notes_merged.pdf
PDF
Minimax.pdf
PPTX
AI3391 Artificial intelligence Session 15 Min Max Algorithm.pptx
PPTX
Game Playing Overview, And Example Domain.pptx
PPTX
Pure Strategy_Game Theory with various examples.pptx
PPTX
Heuristic search algorithm in ai and machine learning
PPTX
Adversarial Search in Artificial Intelligence.pptx
PPTX
Min-Max algorithm
PPTX
OR PPT 280322 maximin final - nikhil tiwari.pptx
PPTX
22PCOAM11 Unit 2: Session 8 Min-Max.pptx
PDF
Chess Engine
PPTX
AI_unit3.pptx
PPTX
AI UNIT 2 PPT.pptx JNTUH Syllabussssssss
Minmax Algorithm In Artificial Intelligence slides
Gameplaying in artificial intelligence
Game Playing in Artificial Intelligence
21CSC206T_UNIT3.pptx.pdf ARITIFICIAL INTELLIGENCE
AI algorithm in game playing
1.game
FIXED_Game_Theory_to_Minimax_Presentation.pptx
AI3391 Artificial Intelligence UNIT III Notes_merged.pdf
Minimax.pdf
AI3391 Artificial intelligence Session 15 Min Max Algorithm.pptx
Game Playing Overview, And Example Domain.pptx
Pure Strategy_Game Theory with various examples.pptx
Heuristic search algorithm in ai and machine learning
Adversarial Search in Artificial Intelligence.pptx
Min-Max algorithm
OR PPT 280322 maximin final - nikhil tiwari.pptx
22PCOAM11 Unit 2: Session 8 Min-Max.pptx
Chess Engine
AI_unit3.pptx
AI UNIT 2 PPT.pptx JNTUH Syllabussssssss
Ad

More from msivakumar1031976111 (6)

PPTX
this ppt contains tableau in deep learning techniques
PPTX
This ppt contains about tableau in deep learning techniques
PPTX
IOT CASE STUDY PPT about the surveillance using raspberry pi.pptx
PPTX
Leaf Disease Detection using Raspberry Pi.pptx
PPTX
an introduction to Topological Sort.pptx
PPTX
an EN Mean Value Theorem by Slidesgo.pptx
this ppt contains tableau in deep learning techniques
This ppt contains about tableau in deep learning techniques
IOT CASE STUDY PPT about the surveillance using raspberry pi.pptx
Leaf Disease Detection using Raspberry Pi.pptx
an introduction to Topological Sort.pptx
an EN Mean Value Theorem by Slidesgo.pptx
Ad

Recently uploaded (20)

PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
VCE English Exam - Section C Student Revision Booklet
PDF
Computing-Curriculum for Schools in Ghana
PPTX
Presentation on HIE in infants and its manifestations
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PPTX
Pharma ospi slides which help in ospi learning
PDF
Classroom Observation Tools for Teachers
PDF
Chinmaya Tiranga quiz Grand Finale.pdf
PPTX
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx
STATICS OF THE RIGID BODIES Hibbelers.pdf
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
102 student loan defaulters named and shamed – Is someone you know on the list?
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
human mycosis Human fungal infections are called human mycosis..pptx
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
Final Presentation General Medicine 03-08-2024.pptx
Final Presentation General Medicine 03-08-2024.pptx
VCE English Exam - Section C Student Revision Booklet
Computing-Curriculum for Schools in Ghana
Presentation on HIE in infants and its manifestations
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
Pharmacology of Heart Failure /Pharmacotherapy of CHF
2.FourierTransform-ShortQuestionswithAnswers.pdf
Pharma ospi slides which help in ospi learning
Classroom Observation Tools for Teachers
Chinmaya Tiranga quiz Grand Finale.pdf
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx

MINMAX ALGORITHM in machine learning.pptx

  • 1. MINMAX ALGORITHM BY NAME: SURYAKUMARAN M ROLL.NO: 24CSER025 UNIT.NO: 2 SUBJECT: FOUNDATION OF ARTIFICIAL INTELLIGENCE
  • 2. WHAT IS MINMAX ?  The MinMax algorithm, also known as minimax, is a backtracking algorithm used in decision making, game theory and artificial intelligence (AI). It is used to find the optimal move for a player, assuming that the opponent is also playing optimally.  The algorithm is mostly employed for game play, such as chess, checkers, tic-tac-toe, go, and other two-player games
  • 3. WORKING OF MIN-MAX PROCESS IN AI  The Min-Max algorithm is a decision-making process used in artificial intelligence for two-player games. It involves two players: the maximizer and the minimizer, each aiming to optimize their own outcomes. Maximizing Player (Max):  Aims to maximize their score or utility value.  Chooses the move that leads to the highest possible utility value, assuming the opponent will play optimally.
  • 4. Cond… Minimizing Player (Min):  Aims to minimize the maximizes score or utility value.  Selects the move that results in the lowest possible utility value for the maximize, assuming the opponent will play optimally.
  • 5. EXAMPLE OF MIN-MAX IN ACTION  Consider a simplified version of a game where each player can choose between two moves at each turn. Here’s a basic game tree: Max / Min Min / / +1 -10 +1
  • 6. Cond..  At the leaf nodes, the utility values are +1, -1, 0, and +1.  The minimizing player will choose the minimum values from the child nodes: -1 (left subtree) and 0 (right subtree).  The maximizing player will then choose the maximum value between -1 and 0, which is 0.
  • 7. ALPHA-BETA PRUNING OPTIMIZATION IN MINI-MAX ALGORITHM  Alpha-beta pruning enhances the Min-Max algorithm by eliminating branches that do not affect the final decision.  Alpha (α): The best value that the maximizing player can guarantee so far.  Beta (β): The best value that the minimizing player can guarantee so far. During the search:  If alpha geq beta, prune the remaining branches.
  • 8. STRENGTHS OF THE MIN-MAX ALGORITHM Optimal Decision Making:  The Min-Max algorithm ensures optimal decision making by considering all possible moves and their outcomes. It provides a strategic advantage by predicting the opponent’s best responses and choosing moves that maximize the player’s benefit.
  • 9. Cond.. Simplicity and Clarity:  The Min-Max algorithm is conceptually simple and easy to understand. Its straightforward approach of evaluating and propagating utility values through a game tree makes it an accessible and widely taught algorithm in AI.
  • 10. WEAKNESSES OF THE MIN-MAX ALGORITHM Computational Complexity:  The primary drawback of the Min-Max algorithm is its computational complexity. As the depth and branching factor of the game tree increase, the number of nodes to be evaluated grows exponentially. This makes it computationally expensive and impractical for games with deep and complex trees, like Go.
  • 11. Cond… Depth Limitations:  To manage computational demands, the Min-Max algorithm often limits the depth of the game tree. However, this can lead to suboptimal decisions if critical moves lie beyond the chosen depth. Balancing depth and computational feasibility is a significant challenge.
  • 12. Cond… Handling of Uncertain Environments:  The Min-Max algorithm assumes deterministic outcomes for each move, which may not be realistic in uncertain or probabilistic environments. Real-world scenarios often involve uncertainty and incomplete information, requiring modifications to the basic Min-Max approach.
  • 13. CONCLUSION  In summary, the minimax algorithm helps the AI make optimal decisions by considering the best and worst possible outcomes for each move, assuming both players play perfectly.