SlideShare une entreprise Scribd logo
1  sur  30
ARTIFICIAL
INTELLIGENCE
Chapter 6
Adversarial search
Prepared by:
Issam Al-dehedhawy
Farah Al-Tufaili
ADVERSARIAL
SEARCH
Examining the
problems that arise
when we try to plan
ahead in a world
where other agents
are planning against
us.
OVERVIEW OF GAMES
Games are a form of multi-agent environment
What do other agents do and how do they affect
our success?
Cooperative vs. competitive multi-agent
environments .
Competitive multi-agent environments give rise to
adversarial search.
OUTLINES
Introduction to game
Optimal decisions in games
Optimal strategies
 Tic-tac-toe.
 The minimax algorithm.
 Optimal decisions in multiplayer games.
GAME SEARCH
Game-playing programs developed by AI researchers since the
beginning of the modern AI
– Programs playing chess, checkers, etc (1950s)
• Specifics of the game search:
– Sequences of player’s decisions we control
– Decisions of other player(s) we do not control
• Contingency problem:
– Many possible opponent’s moves must be “covered” by the
solution
– Opponent’s behavior introduces an uncertainty in the game
– We do not know exactly what the response is going to be
• Rational opponent – maximizes it own utility (payoff)
Function.
GAMES VS. SEARCH
Search – no adversary
-Solution is (heuristic) method for finding goal
-Heuristics and CSP techniques can find optimal solution
Evaluation function: estimate of cost from start to goal through
given node.
Examples: path planning, scheduling activities
Games – adversary
-Solution is strategy (strategy specifies move for every possible
opponent reply).
-Time limits force an approximate solution to be taken.
Evaluation function: evaluate “goodness” of
game position
Examples: chess, checkers, Othello, backgammon
TYPES OF GAME PROBLEMS
Types of game problems
Adversarial games:
win of one player is a loss of the other
– Cooperative games:
players have common interests and utility function
– A spectrum of game problems in between the two
TYPES OF GAME PROBLEMS
Fully cooperative games Adversarial
games
we focus on adversarial games only!!
OPTIMAL DECISIONS IN
GAMES
• Game problem formulation:
– Initial state: initial board position and identifies the player
to move
– successor function: legal moves a player can make
– Goal (terminal test): determines when the game is over
– Utility (payoff) function: measures the outcome of the
game and its desirability
• Search objective:
– find the sequence of player’s decisions (moves)
maximizing its utility (payoff)
– Consider the opponent’s moves and their utility
OPTIMAL STRATEGIES
-Find the contingent strategy for MAX assuming
an infallible MIN opponent.
-Assumption: Both players play optimally !!
Given a game tree, the optimal strategy can be
determined by using the minimax value of each
node:
-MINIMAX-VALUE(n)=
UTILITY(n) If n is a
terminal
maxs  successors(n) MINIMAX-VALUE(s) If n is a
max then
EXAMPLE OF AN ADVERSARIAL 2 PERSON
GAME:
TIC-TAC-TOE
Player 1 (x) moves
first
win dro
w
los
s
A two player game
where minmax
algorithm is applies
is Tic–Tac-Toe. In
this game in order to
win you must fill a
row,
a column or diagonal
(X or O).
GAME PROBLEM
FORMULATION (TIC-TAC-TOE)
Objectives:
• Player 1:
maximize
outcome
• Player 2:
minimize
outcome
- 0 1
Terminal (goal)
states
Utility:
 Minimax is a decision rule algorithm, which is
represented as a game-tree.
 It has applications in decision theory, game theory ,
statistics and philosophy.
 Minimax is applied in two player games. The one is
the min and the other is the max player.
 By agreement the root of the game-tree represents the
max player.
 It is assumed that each player aims to do the best
move for himself and therefore the worst move for his
opponent in order to win the game.
MINIMAX ALGORITHM
MINIMAX ALGORITHM
How to deal with the contingency
problem?
• Assuming that the opponent is rational
and always optimizes its behavior
(opposite to us) we consider the best
response. opponent’s
• Then the minimax algorithm
determines the best move
MINIMAX ALGORITHM
3 8 12 2 4 6 14 5 2
3 2 2
3Max
Min
Utilit
y
MINIMAX ALGORITHM
4 3 6 2 1 9 5 3 1
Max
Min
Utility
2 7 5
Max
MINIMAX ALGORITHM
2 1 9 5 3 1
Max
Min
Utilit
y 2 7 5
Max 4
4 3 6
MINIMAX ALGORITHM
2 1 9 5 3 1
Max
Min
Utilit
y 2 7 5
Max 4 6
4 3 6
MINIMAX ALGORITHM
4 3 6 2 1 9 5 3 1
Max
Min
Utilit
y 2 7 5
Max
4
64
MINIMAX ALGORITHM
4 3 6 2 1 9 5 3 1
Max
Min
2 7 5
Max
4
64 2
Utilit
y
MINIMAX ALGORITHM
4 3 6 2 1 9 5 3 1
Max
Min
2 7 5
Max
4
64 2 9
Utilit
y
MINIMAX ALGORITHM
4 3 6 2 1 9 5 3 1
Max
Min
2 7 5
Max
4
64 2 9
2
Utilit
y
MINIMAX ALGORITHM
2 1 9 5 3
3
Max
Min
2 7 5
Max
4
64 2 9
2
1
Utilit
y 4 3 6
MINIMAX ALGORITHM
2 1 9 5 3
3
Max
Min
2 7 5
Max
4
64 2 9
2
1
7
Utilit
y 4 3 6
MINIMAX ALGORITHM
2 1 9 5 3
3
Max
Min
2 7 5
Max
4
64 2 9
2
1
7
3
Utilit
y 4 3 6
MINIMAX ALGORITHM
2 1 9 5 3
3
Max
Min
2 7 5
Max
4
64 2 9
2
1
7
3
4
Utilit
y 4 3 6
MINIMAX ALGORITHM
function MINIMAX-DECISION(state) returns an action
inputs: state, current state in game
vMAX-VALUE(state)
return the action in SUCCESSORS(state) with value v
function MIN-VALUE(state) returns a utility value
if TERMINAL-TEST(state) then return UTILITY(state)
v  ∞
for a,s in SUCCESSORS(state) do
v  MIN(v,MAX-VALUE(s))
return v
function MAX-VALUE(state) returns a utility value
if TERMINAL-TEST(state) then return UTILITY(state)
v  ∞
for a,s in SUCCESSORS(state) do
v  MAX(v,MIN-VALUE(s))
return v
PROPERTIES OF MINIMAX
Complete? Yes (if tree is finite)
Optimal? Yes (against an optimal opponent)
Time complexity? O(bm)
Space complexity? O(bm) (depth-first
exploration,for algorithm that generates all
successors at once or O(m) for an algorithm that
generates suuccesors one at atime )
For chess, b ≈ 35, m ≈100 for "reasonable"
games
 exact solution completely infeasible
Minimax advantages:
-Returns an optimal action, assuming perfect
opponent play.
Minimax is the simplest possible (reasonable) game
search algorithm.
-Tic-Tac-Toe player, chances are you either looked
this up on Wikipedia, or
invented it in the process.)
Minimax disadvantages: It's completely infeasible in
practice.
! When the search tree is too large, we need to limit
the search depth and
apply an evaluation function to the cut-off states.
MULTIPLAYER GAMES
Games allow more than two players
Single minimax values become vectors

Contenu connexe

Tendances

Minmax Algorithm In Artificial Intelligence slides
Minmax Algorithm In Artificial Intelligence slidesMinmax Algorithm In Artificial Intelligence slides
Minmax Algorithm In Artificial Intelligence slidesSamiaAziz4
 
Adversarial search with Game Playing
Adversarial search with Game PlayingAdversarial search with Game Playing
Adversarial search with Game PlayingAman Patel
 
I. Mini-Max Algorithm in AI
I. Mini-Max Algorithm in AII. Mini-Max Algorithm in AI
I. Mini-Max Algorithm in AIvikas dhakane
 
knowledge representation using rules
knowledge representation using rulesknowledge representation using rules
knowledge representation using rulesHarini Balamurugan
 
Predicate logic_2(Artificial Intelligence)
Predicate logic_2(Artificial Intelligence)Predicate logic_2(Artificial Intelligence)
Predicate logic_2(Artificial Intelligence)SHUBHAM KUMAR GUPTA
 
Resolution,forward backward chaining
Resolution,forward backward chainingResolution,forward backward chaining
Resolution,forward backward chainingAnn Rose
 
Adversarial Search
Adversarial SearchAdversarial Search
Adversarial SearchMegha Sharma
 
2. forward chaining and backward chaining
2. forward chaining and backward chaining2. forward chaining and backward chaining
2. forward chaining and backward chainingmonircse2
 
I. AO* SEARCH ALGORITHM
I. AO* SEARCH ALGORITHMI. AO* SEARCH ALGORITHM
I. AO* SEARCH ALGORITHMvikas dhakane
 
First Order Logic resolution
First Order Logic resolutionFirst Order Logic resolution
First Order Logic resolutionAmar Jukuntla
 
First order logic in knowledge representation
First order logic in knowledge representationFirst order logic in knowledge representation
First order logic in knowledge representationSabaragamuwa University
 
Adversarial search
Adversarial searchAdversarial search
Adversarial searchNilu Desai
 
Constraint satisfaction problems (csp)
Constraint satisfaction problems (csp)   Constraint satisfaction problems (csp)
Constraint satisfaction problems (csp) Archana432045
 

Tendances (20)

Minmax Algorithm In Artificial Intelligence slides
Minmax Algorithm In Artificial Intelligence slidesMinmax Algorithm In Artificial Intelligence slides
Minmax Algorithm In Artificial Intelligence slides
 
Adversarial search with Game Playing
Adversarial search with Game PlayingAdversarial search with Game Playing
Adversarial search with Game Playing
 
Game playing in AI
Game playing in AIGame playing in AI
Game playing in AI
 
I. Mini-Max Algorithm in AI
I. Mini-Max Algorithm in AII. Mini-Max Algorithm in AI
I. Mini-Max Algorithm in AI
 
5 csp
5 csp5 csp
5 csp
 
knowledge representation using rules
knowledge representation using rulesknowledge representation using rules
knowledge representation using rules
 
Ai 8 puzzle problem
Ai 8 puzzle problemAi 8 puzzle problem
Ai 8 puzzle problem
 
Predicate logic_2(Artificial Intelligence)
Predicate logic_2(Artificial Intelligence)Predicate logic_2(Artificial Intelligence)
Predicate logic_2(Artificial Intelligence)
 
AI 6 | Adversarial Search
AI 6 | Adversarial SearchAI 6 | Adversarial Search
AI 6 | Adversarial Search
 
Resolution,forward backward chaining
Resolution,forward backward chainingResolution,forward backward chaining
Resolution,forward backward chaining
 
Adversarial Search
Adversarial SearchAdversarial Search
Adversarial Search
 
2. forward chaining and backward chaining
2. forward chaining and backward chaining2. forward chaining and backward chaining
2. forward chaining and backward chaining
 
Minimax
MinimaxMinimax
Minimax
 
AI Lecture 4 (informed search and exploration)
AI Lecture 4 (informed search and exploration)AI Lecture 4 (informed search and exploration)
AI Lecture 4 (informed search and exploration)
 
Ai lab manual
Ai lab manualAi lab manual
Ai lab manual
 
I. AO* SEARCH ALGORITHM
I. AO* SEARCH ALGORITHMI. AO* SEARCH ALGORITHM
I. AO* SEARCH ALGORITHM
 
First Order Logic resolution
First Order Logic resolutionFirst Order Logic resolution
First Order Logic resolution
 
First order logic in knowledge representation
First order logic in knowledge representationFirst order logic in knowledge representation
First order logic in knowledge representation
 
Adversarial search
Adversarial searchAdversarial search
Adversarial search
 
Constraint satisfaction problems (csp)
Constraint satisfaction problems (csp)   Constraint satisfaction problems (csp)
Constraint satisfaction problems (csp)
 

Similaire à Adversarial search

AI3391 Artificial Intelligence UNIT III Notes_merged.pdf
AI3391 Artificial Intelligence UNIT III Notes_merged.pdfAI3391 Artificial Intelligence UNIT III Notes_merged.pdf
AI3391 Artificial Intelligence UNIT III Notes_merged.pdfAsst.prof M.Gokilavani
 
Module 3 Game Theory (1).pptx
Module 3 Game Theory (1).pptxModule 3 Game Theory (1).pptx
Module 3 Game Theory (1).pptxDrNavaneethaKumar
 
OR PPT 280322 maximin final - nikhil tiwari.pptx
OR PPT 280322 maximin final - nikhil tiwari.pptxOR PPT 280322 maximin final - nikhil tiwari.pptx
OR PPT 280322 maximin final - nikhil tiwari.pptxVivekSaurabh7
 
9SearchAdversarial (1).pptx
9SearchAdversarial (1).pptx9SearchAdversarial (1).pptx
9SearchAdversarial (1).pptxumairshams6
 
Game Tree ( Oyun Ağaçları )
Game Tree ( Oyun Ağaçları )Game Tree ( Oyun Ağaçları )
Game Tree ( Oyun Ağaçları )Alp Çoker
 
21CSC206T_UNIT3.pptx.pdf ARITIFICIAL INTELLIGENCE
21CSC206T_UNIT3.pptx.pdf ARITIFICIAL INTELLIGENCE21CSC206T_UNIT3.pptx.pdf ARITIFICIAL INTELLIGENCE
21CSC206T_UNIT3.pptx.pdf ARITIFICIAL INTELLIGENCEudayvanand
 
Game theory.ppt for Micro Economics content
Game theory.ppt for Micro Economics contentGame theory.ppt for Micro Economics content
Game theory.ppt for Micro Economics contentDrDeeptiSharma12
 
Unit_I_Introduction(Part_III).ppt
Unit_I_Introduction(Part_III).pptUnit_I_Introduction(Part_III).ppt
Unit_I_Introduction(Part_III).pptganesh15478
 
AI3391 Artificial Intelligence Session 14 Adversarial Search .pptx
AI3391 Artificial Intelligence Session 14 Adversarial Search .pptxAI3391 Artificial Intelligence Session 14 Adversarial Search .pptx
AI3391 Artificial Intelligence Session 14 Adversarial Search .pptxAsst.prof M.Gokilavani
 
Game theory and its applications
Game theory and its applicationsGame theory and its applications
Game theory and its applicationsEranga Weerasekara
 

Similaire à Adversarial search (20)

AI3391 Artificial Intelligence UNIT III Notes_merged.pdf
AI3391 Artificial Intelligence UNIT III Notes_merged.pdfAI3391 Artificial Intelligence UNIT III Notes_merged.pdf
AI3391 Artificial Intelligence UNIT III Notes_merged.pdf
 
Minimax
MinimaxMinimax
Minimax
 
Module 3 Game Theory (1).pptx
Module 3 Game Theory (1).pptxModule 3 Game Theory (1).pptx
Module 3 Game Theory (1).pptx
 
Module_3_1.pptx
Module_3_1.pptxModule_3_1.pptx
Module_3_1.pptx
 
OR PPT 280322 maximin final - nikhil tiwari.pptx
OR PPT 280322 maximin final - nikhil tiwari.pptxOR PPT 280322 maximin final - nikhil tiwari.pptx
OR PPT 280322 maximin final - nikhil tiwari.pptx
 
adversial search.pptx
adversial search.pptxadversial search.pptx
adversial search.pptx
 
9SearchAdversarial (1).pptx
9SearchAdversarial (1).pptx9SearchAdversarial (1).pptx
9SearchAdversarial (1).pptx
 
Game Tree ( Oyun Ağaçları )
Game Tree ( Oyun Ağaçları )Game Tree ( Oyun Ağaçları )
Game Tree ( Oyun Ağaçları )
 
21CSC206T_UNIT3.pptx.pdf ARITIFICIAL INTELLIGENCE
21CSC206T_UNIT3.pptx.pdf ARITIFICIAL INTELLIGENCE21CSC206T_UNIT3.pptx.pdf ARITIFICIAL INTELLIGENCE
21CSC206T_UNIT3.pptx.pdf ARITIFICIAL INTELLIGENCE
 
1.game
1.game1.game
1.game
 
Unit II A - Game Theory
Unit II A - Game TheoryUnit II A - Game Theory
Unit II A - Game Theory
 
Game theory.ppt for Micro Economics content
Game theory.ppt for Micro Economics contentGame theory.ppt for Micro Economics content
Game theory.ppt for Micro Economics content
 
AI Lesson 07
AI Lesson 07AI Lesson 07
AI Lesson 07
 
Unit_I_Introduction(Part_III).ppt
Unit_I_Introduction(Part_III).pptUnit_I_Introduction(Part_III).ppt
Unit_I_Introduction(Part_III).ppt
 
Game Theory Economics
Game Theory EconomicsGame Theory Economics
Game Theory Economics
 
Game model
Game modelGame model
Game model
 
Game theory
Game theoryGame theory
Game theory
 
AI3391 Artificial Intelligence Session 14 Adversarial Search .pptx
AI3391 Artificial Intelligence Session 14 Adversarial Search .pptxAI3391 Artificial Intelligence Session 14 Adversarial Search .pptx
AI3391 Artificial Intelligence Session 14 Adversarial Search .pptx
 
Game theory and its applications
Game theory and its applicationsGame theory and its applications
Game theory and its applications
 
Minimax.pdf
Minimax.pdfMinimax.pdf
Minimax.pdf
 

Plus de Farah M. Altufaili

Plus de Farah M. Altufaili (10)

A Correlative Information-Theoretic Measure for Image Similarity
A Correlative Information-Theoretic Measure for Image SimilarityA Correlative Information-Theoretic Measure for Image Similarity
A Correlative Information-Theoretic Measure for Image Similarity
 
Fp growth
Fp growthFp growth
Fp growth
 
Stereo vision
Stereo visionStereo vision
Stereo vision
 
Writing a good cv
Writing a good cvWriting a good cv
Writing a good cv
 
Virtual Private Network VPN
Virtual Private Network VPNVirtual Private Network VPN
Virtual Private Network VPN
 
Fuzzy image processing- fuzzy C-mean clustering
Fuzzy image processing- fuzzy C-mean clusteringFuzzy image processing- fuzzy C-mean clustering
Fuzzy image processing- fuzzy C-mean clustering
 
Principal component analysis
Principal component analysisPrincipal component analysis
Principal component analysis
 
Tiny encryption algorithm
Tiny encryption algorithmTiny encryption algorithm
Tiny encryption algorithm
 
Polygon mesh
Polygon  meshPolygon  mesh
Polygon mesh
 
Nanotechnology and its impact on modern computer
Nanotechnology and its impact on modern computerNanotechnology and its impact on modern computer
Nanotechnology and its impact on modern computer
 

Adversarial search

  • 1. ARTIFICIAL INTELLIGENCE Chapter 6 Adversarial search Prepared by: Issam Al-dehedhawy Farah Al-Tufaili
  • 2. ADVERSARIAL SEARCH Examining the problems that arise when we try to plan ahead in a world where other agents are planning against us.
  • 3. OVERVIEW OF GAMES Games are a form of multi-agent environment What do other agents do and how do they affect our success? Cooperative vs. competitive multi-agent environments . Competitive multi-agent environments give rise to adversarial search.
  • 4. OUTLINES Introduction to game Optimal decisions in games Optimal strategies  Tic-tac-toe.  The minimax algorithm.  Optimal decisions in multiplayer games.
  • 5. GAME SEARCH Game-playing programs developed by AI researchers since the beginning of the modern AI – Programs playing chess, checkers, etc (1950s) • Specifics of the game search: – Sequences of player’s decisions we control – Decisions of other player(s) we do not control • Contingency problem: – Many possible opponent’s moves must be “covered” by the solution – Opponent’s behavior introduces an uncertainty in the game – We do not know exactly what the response is going to be • Rational opponent – maximizes it own utility (payoff) Function.
  • 6. GAMES VS. SEARCH Search – no adversary -Solution is (heuristic) method for finding goal -Heuristics and CSP techniques can find optimal solution Evaluation function: estimate of cost from start to goal through given node. Examples: path planning, scheduling activities Games – adversary -Solution is strategy (strategy specifies move for every possible opponent reply). -Time limits force an approximate solution to be taken. Evaluation function: evaluate “goodness” of game position Examples: chess, checkers, Othello, backgammon
  • 7. TYPES OF GAME PROBLEMS Types of game problems Adversarial games: win of one player is a loss of the other – Cooperative games: players have common interests and utility function – A spectrum of game problems in between the two
  • 8. TYPES OF GAME PROBLEMS Fully cooperative games Adversarial games we focus on adversarial games only!!
  • 9. OPTIMAL DECISIONS IN GAMES • Game problem formulation: – Initial state: initial board position and identifies the player to move – successor function: legal moves a player can make – Goal (terminal test): determines when the game is over – Utility (payoff) function: measures the outcome of the game and its desirability • Search objective: – find the sequence of player’s decisions (moves) maximizing its utility (payoff) – Consider the opponent’s moves and their utility
  • 10. OPTIMAL STRATEGIES -Find the contingent strategy for MAX assuming an infallible MIN opponent. -Assumption: Both players play optimally !! Given a game tree, the optimal strategy can be determined by using the minimax value of each node: -MINIMAX-VALUE(n)= UTILITY(n) If n is a terminal maxs  successors(n) MINIMAX-VALUE(s) If n is a max then
  • 11. EXAMPLE OF AN ADVERSARIAL 2 PERSON GAME: TIC-TAC-TOE Player 1 (x) moves first win dro w los s A two player game where minmax algorithm is applies is Tic–Tac-Toe. In this game in order to win you must fill a row, a column or diagonal (X or O).
  • 12. GAME PROBLEM FORMULATION (TIC-TAC-TOE) Objectives: • Player 1: maximize outcome • Player 2: minimize outcome - 0 1 Terminal (goal) states Utility:
  • 13.  Minimax is a decision rule algorithm, which is represented as a game-tree.  It has applications in decision theory, game theory , statistics and philosophy.  Minimax is applied in two player games. The one is the min and the other is the max player.  By agreement the root of the game-tree represents the max player.  It is assumed that each player aims to do the best move for himself and therefore the worst move for his opponent in order to win the game. MINIMAX ALGORITHM
  • 14. MINIMAX ALGORITHM How to deal with the contingency problem? • Assuming that the opponent is rational and always optimizes its behavior (opposite to us) we consider the best response. opponent’s • Then the minimax algorithm determines the best move
  • 15. MINIMAX ALGORITHM 3 8 12 2 4 6 14 5 2 3 2 2 3Max Min Utilit y
  • 16. MINIMAX ALGORITHM 4 3 6 2 1 9 5 3 1 Max Min Utility 2 7 5 Max
  • 17. MINIMAX ALGORITHM 2 1 9 5 3 1 Max Min Utilit y 2 7 5 Max 4 4 3 6
  • 18. MINIMAX ALGORITHM 2 1 9 5 3 1 Max Min Utilit y 2 7 5 Max 4 6 4 3 6
  • 19. MINIMAX ALGORITHM 4 3 6 2 1 9 5 3 1 Max Min Utilit y 2 7 5 Max 4 64
  • 20. MINIMAX ALGORITHM 4 3 6 2 1 9 5 3 1 Max Min 2 7 5 Max 4 64 2 Utilit y
  • 21. MINIMAX ALGORITHM 4 3 6 2 1 9 5 3 1 Max Min 2 7 5 Max 4 64 2 9 Utilit y
  • 22. MINIMAX ALGORITHM 4 3 6 2 1 9 5 3 1 Max Min 2 7 5 Max 4 64 2 9 2 Utilit y
  • 23. MINIMAX ALGORITHM 2 1 9 5 3 3 Max Min 2 7 5 Max 4 64 2 9 2 1 Utilit y 4 3 6
  • 24. MINIMAX ALGORITHM 2 1 9 5 3 3 Max Min 2 7 5 Max 4 64 2 9 2 1 7 Utilit y 4 3 6
  • 25. MINIMAX ALGORITHM 2 1 9 5 3 3 Max Min 2 7 5 Max 4 64 2 9 2 1 7 3 Utilit y 4 3 6
  • 26. MINIMAX ALGORITHM 2 1 9 5 3 3 Max Min 2 7 5 Max 4 64 2 9 2 1 7 3 4 Utilit y 4 3 6
  • 27. MINIMAX ALGORITHM function MINIMAX-DECISION(state) returns an action inputs: state, current state in game vMAX-VALUE(state) return the action in SUCCESSORS(state) with value v function MIN-VALUE(state) returns a utility value if TERMINAL-TEST(state) then return UTILITY(state) v  ∞ for a,s in SUCCESSORS(state) do v  MIN(v,MAX-VALUE(s)) return v function MAX-VALUE(state) returns a utility value if TERMINAL-TEST(state) then return UTILITY(state) v  ∞ for a,s in SUCCESSORS(state) do v  MAX(v,MIN-VALUE(s)) return v
  • 28. PROPERTIES OF MINIMAX Complete? Yes (if tree is finite) Optimal? Yes (against an optimal opponent) Time complexity? O(bm) Space complexity? O(bm) (depth-first exploration,for algorithm that generates all successors at once or O(m) for an algorithm that generates suuccesors one at atime ) For chess, b ≈ 35, m ≈100 for "reasonable" games  exact solution completely infeasible
  • 29. Minimax advantages: -Returns an optimal action, assuming perfect opponent play. Minimax is the simplest possible (reasonable) game search algorithm. -Tic-Tac-Toe player, chances are you either looked this up on Wikipedia, or invented it in the process.) Minimax disadvantages: It's completely infeasible in practice. ! When the search tree is too large, we need to limit the search depth and apply an evaluation function to the cut-off states.
  • 30. MULTIPLAYER GAMES Games allow more than two players Single minimax values become vectors