SlideShare a Scribd company logo
1 of 23
Game Playing (Tic-Tac-Toe),
ANDOR graph
By
Chinmaya , Hanoosh ,Rajkumar
Outline of the Talk
 Game Playing
 Tic-Tac-Toe
 Minimax Algorithm
 Alpha Beta Prunning
 AndOr graph and AO* Algorithm
 Summary
 References
Games vs Search Problems
 "Unpredictable" opponent : specifying a move for
every possible opponent reply
 Time limits : unlikely to find goal, must approximate
Game Playing Strategy
 Maximize winning possibility assuming that opponent
will try to minimize (Minimax Algorithm)
 Ignore the unwanted portion of the search tree
(Alpha Beta Pruning)
 Evaluation(Utility) Function
 A measure of winning possibility of the player
Tic-Tac-Toe
e(p) = 6 - 5 = 1
 Initial State: Board position of 3x3 matrix with 0 and X.
 Operators: Putting 0’s or X’s in vacant positions
alternatively
 Terminal test: Which determines game is over
 Utility function:
e(p) = (No. of complete rows, columns or diagonals
are still open for player ) – (No. of complete rows,
columns or diagonals are still open for opponent )
X O
Minimax Algorithm
 Generate the game tree
 Apply the utility function to each terminal state to get its
value
 Use these values to determine the utility of the nodes one
level higher up in the search tree
 From bottom to top
 For a max level, select the maximum value of its successors
 For a min level, select the minimum value of its successors
 From root node select the move which leads to highest
value
Game tree for Tic-Tac-Toe
Courtesy : Artificial Intelligence and Soft Computing. Behavioural and Cognitive Modelling of the Human Brain
Courtesy : Principles of Artificial Intelligence , Nilsson
Properties of Minimax
 Complete : Yes (if tree is finite)
 Time complexity : O(bd)
 Space complexity : O(bd) (depth-first exploration)
Observation
 Minimax algorithm, presented above, requires
expanding the entire state-space.
 Severe limitation, especially for problems with a
large state-space.
 Some nodes in the search can be proven to be
irrelevant to the outcome of the search
Alpha-Beta Strategy
 Maintain two bounds:
Alpha (α): a lower bound on best that the
player to move can achieve
Beta (β): an upper bound on what the
opponent can achieve
 Search, maintaining α and β
 Whenever α ≥ βhigher, or β ≤ αhigher further search at
this node is irrelevant
How to Prune the Unnecessary Path
 If beta value of any MIN node below a MAX node is
less than or equal to its alpha value, then prune the
path below the MIN node.
 If alpha value of any MAX node below a MIN node
exceeds the beta value of the MIN node, then prune
the nodes below the MAX node.
Example
Tic-Tac-Toe
(MAX) Start
X : MAX player
0 : MIN player
e(p) = (rows + cols + diagonals
open to ‘X’) – (Same to ‘0’)
e(p) = 0
X
X
X
e = 8 – 4 = 4
e = 8 – 5 = 3 e = 8 – 6 = 2
e = 5 – 4 = 1 e = 5 – 3 = 2
X X
0 0
X’s Turn
0’s Turn
Courtesy : CS621-Artificial Intelligence , 2007, Prof. Pushpak Bhatacharya
Alpha-Beta Search Algorithm
 If the MAXIMIZER nodes already possess αmin values, then their
current αmin value = Max (αmin value, α’min); on the other hand, if
the MINIMIZER nodes already possess βmax values, then their
current
βmax value = Min (βmax value, β’max).
 If the estimated βmax value of a MINIMIZER node N is less than the
αmin value of its parent MAXIMIZER node N’ then there is no need
to search below the node MINIMIZER node N. Similarly, if the
αmin value of a MAXIMIZER node N is more than the βmax value
of
its parent node N’ then there is no need to search below node N.
Alpha-Beta Analysis
 Pruning does not affect the final result.
 Assume a fixed branching factor and a fixed depth
 Best case: bd/2 + b(d/2)-1
 Approximate as bd/2
 Impact ?
Minmax: 109 = 1,000,000,000
Alpha-beta: 105+ 104 = 110,000
 But best-case analysis depends on choosing the best
move first at cut nodes (not always possible)
 The worst case : No cut-offs, and Alpha-Beta degrades
to Minmax
AND OR GRAPH
AND OR Graph
 OR graphs : generally used for
data driven approach
 AND OR graphs: used for
Goal driven approach
 Problems solvable by
decomposing into sub problems
some of which is to be solved.
 Graph consisting of OR arcs
and AND arcs
 OR : the node has to be solved.
 AND : all the nodes in the arc
has to be solved
Courtesy : Artificial Intelligence and Soft
Computing. Behavioural and Cognitive
Modelling of the Human Brain
How to explore
 Expand nodes
 Propagate values to ancestors
 Futility
 If the estimated cost of a solution becomes greater than
futility then abandon the search
 A threshold such that any solution with higher cost is too
expensive to be practical
AO* (high level view)
1. Given the Goal node, find its possible off-springs.
2. Estimate the h values at the leaves. The cost of the parent of
the leaf (leaves) is the minimum of the cost of the OR
clauses plus one or the cost of the AND clauses plus the
number of AND clauses. After the children with minimum h are
estimated, a pointer is attached to point from the parent
node to its promising children.
3. One of the unexpanded OR clauses / the set of unexpanded
AND clauses, where the pointer points from its parent, is now
expanded and the h of the newly generated children are
estimated. The effect of this h has to be propagated up to the
root by re-calculating the f of the parent or the parent of the
parents of the newly created child /children clauses through a
least cost path. Thus the pointers may be modified depending
on the revised cost of the existing clauses.
AO* illustration
Courtesy : Artificial Intelligence and Soft Computing. Behavioural and Cognitive Modelling of the Human Brain
Summary
 Explore game tree
 Min max
 Alpha Beta
 When perfection is unattainable, we must
approximate
 AND OR graph
 How to explore
 AO*
References
 D. E. Knuth and R. W. Moore. An analysis of alpha-beta pruning.
Artificial Intelligence, 6:293–326, 1975
 Rich, E. and Knight, K., Artificial Intelligence, McGraw-Hill, New York,
1991.
 Nilson, J. N., Principles of Artificial Intelligence, Morgan-Kaufmann,
San Mateo, CA, pp. 112-126,1980.
 Russel, S. and Norvig, P., Artificial Intelligence: A Modern Approach,
Prentice-Hall, Englewood Cliffs, NJ, 1995.
 Amit Konar , Artificial Intelligence and Soft Computing Behavioral and
Cognitive Modeling of the Human Brain, CRC Press 2000.

More Related Content

Similar to hanoosh-tictactoeqqqqqqqaaaaaaaaaaaa.ppt

12 adversal search
12 adversal search12 adversal search
12 adversal searchTianlu Wang
 
Sienna 13 limitations
Sienna 13 limitationsSienna 13 limitations
Sienna 13 limitationschidabdu
 
Adversarial search
Adversarial searchAdversarial search
Adversarial searchDheerendra k
 
Graph Traversal Algorithms - Breadth First Search
Graph Traversal Algorithms - Breadth First SearchGraph Traversal Algorithms - Breadth First Search
Graph Traversal Algorithms - Breadth First SearchAmrinder Arora
 
GamePlaying.ppt
GamePlaying.pptGamePlaying.ppt
GamePlaying.pptVihaanN2
 
ch_5 Game playing Min max and Alpha Beta pruning.ppt
ch_5 Game playing Min max and Alpha Beta pruning.pptch_5 Game playing Min max and Alpha Beta pruning.ppt
ch_5 Game playing Min max and Alpha Beta pruning.pptSanGeet25
 
I. Alpha-Beta Pruning in ai
I. Alpha-Beta Pruning in aiI. Alpha-Beta Pruning in ai
I. Alpha-Beta Pruning in aivikas dhakane
 
Bioinformatics t5-database searching-v2013_wim_vancriekinge
Bioinformatics t5-database searching-v2013_wim_vancriekingeBioinformatics t5-database searching-v2013_wim_vancriekinge
Bioinformatics t5-database searching-v2013_wim_vancriekingeProf. Wim Van Criekinge
 
Juegos minimax AlfaBeta
Juegos minimax AlfaBetaJuegos minimax AlfaBeta
Juegos minimax AlfaBetanelsonbc20
 
AI3391 Artificial intelligence Session 16 Alpha–Beta Pruning.pptx
AI3391 Artificial intelligence Session 16 Alpha–Beta Pruning.pptxAI3391 Artificial intelligence Session 16 Alpha–Beta Pruning.pptx
AI3391 Artificial intelligence Session 16 Alpha–Beta Pruning.pptxAsst.prof M.Gokilavani
 
Adversarial search
Adversarial searchAdversarial search
Adversarial searchpramod naik
 
Bias correction, and other uncertainty management techniques
Bias correction, and other uncertainty management techniquesBias correction, and other uncertainty management techniques
Bias correction, and other uncertainty management techniquesOlivier Teytaud
 
Uncertainties in large scale power systems
Uncertainties in large scale power systemsUncertainties in large scale power systems
Uncertainties in large scale power systemsOlivier Teytaud
 
cs-171-07-Games and Adversarila Search.ppt
cs-171-07-Games and Adversarila Search.pptcs-171-07-Games and Adversarila Search.ppt
cs-171-07-Games and Adversarila Search.pptSamiksha880257
 

Similar to hanoosh-tictactoeqqqqqqqaaaaaaaaaaaa.ppt (20)

Chess engine presentation
Chess engine presentationChess engine presentation
Chess engine presentation
 
Capgemini 1
Capgemini 1Capgemini 1
Capgemini 1
 
Daa chapter6
Daa chapter6Daa chapter6
Daa chapter6
 
12 adversal search
12 adversal search12 adversal search
12 adversal search
 
Sienna 13 limitations
Sienna 13 limitationsSienna 13 limitations
Sienna 13 limitations
 
Adversarial search
Adversarial searchAdversarial search
Adversarial search
 
Graph Traversal Algorithms - Breadth First Search
Graph Traversal Algorithms - Breadth First SearchGraph Traversal Algorithms - Breadth First Search
Graph Traversal Algorithms - Breadth First Search
 
GamePlaying.ppt
GamePlaying.pptGamePlaying.ppt
GamePlaying.ppt
 
Games.4
Games.4Games.4
Games.4
 
ch_5 Game playing Min max and Alpha Beta pruning.ppt
ch_5 Game playing Min max and Alpha Beta pruning.pptch_5 Game playing Min max and Alpha Beta pruning.ppt
ch_5 Game playing Min max and Alpha Beta pruning.ppt
 
I. Alpha-Beta Pruning in ai
I. Alpha-Beta Pruning in aiI. Alpha-Beta Pruning in ai
I. Alpha-Beta Pruning in ai
 
Bioinformatics t5-database searching-v2013_wim_vancriekinge
Bioinformatics t5-database searching-v2013_wim_vancriekingeBioinformatics t5-database searching-v2013_wim_vancriekinge
Bioinformatics t5-database searching-v2013_wim_vancriekinge
 
Juegos minimax AlfaBeta
Juegos minimax AlfaBetaJuegos minimax AlfaBeta
Juegos minimax AlfaBeta
 
AI3391 Artificial intelligence Session 16 Alpha–Beta Pruning.pptx
AI3391 Artificial intelligence Session 16 Alpha–Beta Pruning.pptxAI3391 Artificial intelligence Session 16 Alpha–Beta Pruning.pptx
AI3391 Artificial intelligence Session 16 Alpha–Beta Pruning.pptx
 
AI-08 Game Playing.pptx
AI-08 Game Playing.pptxAI-08 Game Playing.pptx
AI-08 Game Playing.pptx
 
Adversarial search
Adversarial searchAdversarial search
Adversarial search
 
Bias correction, and other uncertainty management techniques
Bias correction, and other uncertainty management techniquesBias correction, and other uncertainty management techniques
Bias correction, and other uncertainty management techniques
 
Uncertainties in large scale power systems
Uncertainties in large scale power systemsUncertainties in large scale power systems
Uncertainties in large scale power systems
 
cs-171-07-Games and Adversarila Search.ppt
cs-171-07-Games and Adversarila Search.pptcs-171-07-Games and Adversarila Search.ppt
cs-171-07-Games and Adversarila Search.ppt
 
Game playing.ppt
Game playing.pptGame playing.ppt
Game playing.ppt
 

Recently uploaded

URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppCeline George
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxRoyAbrique
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 

Recently uploaded (20)

URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 

hanoosh-tictactoeqqqqqqqaaaaaaaaaaaa.ppt

  • 1. Game Playing (Tic-Tac-Toe), ANDOR graph By Chinmaya , Hanoosh ,Rajkumar
  • 2. Outline of the Talk  Game Playing  Tic-Tac-Toe  Minimax Algorithm  Alpha Beta Prunning  AndOr graph and AO* Algorithm  Summary  References
  • 3. Games vs Search Problems  "Unpredictable" opponent : specifying a move for every possible opponent reply  Time limits : unlikely to find goal, must approximate
  • 4. Game Playing Strategy  Maximize winning possibility assuming that opponent will try to minimize (Minimax Algorithm)  Ignore the unwanted portion of the search tree (Alpha Beta Pruning)  Evaluation(Utility) Function  A measure of winning possibility of the player
  • 5. Tic-Tac-Toe e(p) = 6 - 5 = 1  Initial State: Board position of 3x3 matrix with 0 and X.  Operators: Putting 0’s or X’s in vacant positions alternatively  Terminal test: Which determines game is over  Utility function: e(p) = (No. of complete rows, columns or diagonals are still open for player ) – (No. of complete rows, columns or diagonals are still open for opponent ) X O
  • 6. Minimax Algorithm  Generate the game tree  Apply the utility function to each terminal state to get its value  Use these values to determine the utility of the nodes one level higher up in the search tree  From bottom to top  For a max level, select the maximum value of its successors  For a min level, select the minimum value of its successors  From root node select the move which leads to highest value
  • 7. Game tree for Tic-Tac-Toe Courtesy : Artificial Intelligence and Soft Computing. Behavioural and Cognitive Modelling of the Human Brain
  • 8. Courtesy : Principles of Artificial Intelligence , Nilsson
  • 9. Properties of Minimax  Complete : Yes (if tree is finite)  Time complexity : O(bd)  Space complexity : O(bd) (depth-first exploration)
  • 10. Observation  Minimax algorithm, presented above, requires expanding the entire state-space.  Severe limitation, especially for problems with a large state-space.  Some nodes in the search can be proven to be irrelevant to the outcome of the search
  • 11. Alpha-Beta Strategy  Maintain two bounds: Alpha (α): a lower bound on best that the player to move can achieve Beta (β): an upper bound on what the opponent can achieve  Search, maintaining α and β  Whenever α ≥ βhigher, or β ≤ αhigher further search at this node is irrelevant
  • 12. How to Prune the Unnecessary Path  If beta value of any MIN node below a MAX node is less than or equal to its alpha value, then prune the path below the MIN node.  If alpha value of any MAX node below a MIN node exceeds the beta value of the MIN node, then prune the nodes below the MAX node.
  • 14. Tic-Tac-Toe (MAX) Start X : MAX player 0 : MIN player e(p) = (rows + cols + diagonals open to ‘X’) – (Same to ‘0’) e(p) = 0 X X X e = 8 – 4 = 4 e = 8 – 5 = 3 e = 8 – 6 = 2 e = 5 – 4 = 1 e = 5 – 3 = 2 X X 0 0 X’s Turn 0’s Turn Courtesy : CS621-Artificial Intelligence , 2007, Prof. Pushpak Bhatacharya
  • 15. Alpha-Beta Search Algorithm  If the MAXIMIZER nodes already possess αmin values, then their current αmin value = Max (αmin value, α’min); on the other hand, if the MINIMIZER nodes already possess βmax values, then their current βmax value = Min (βmax value, β’max).  If the estimated βmax value of a MINIMIZER node N is less than the αmin value of its parent MAXIMIZER node N’ then there is no need to search below the node MINIMIZER node N. Similarly, if the αmin value of a MAXIMIZER node N is more than the βmax value of its parent node N’ then there is no need to search below node N.
  • 16. Alpha-Beta Analysis  Pruning does not affect the final result.  Assume a fixed branching factor and a fixed depth  Best case: bd/2 + b(d/2)-1  Approximate as bd/2  Impact ? Minmax: 109 = 1,000,000,000 Alpha-beta: 105+ 104 = 110,000  But best-case analysis depends on choosing the best move first at cut nodes (not always possible)  The worst case : No cut-offs, and Alpha-Beta degrades to Minmax
  • 18. AND OR Graph  OR graphs : generally used for data driven approach  AND OR graphs: used for Goal driven approach  Problems solvable by decomposing into sub problems some of which is to be solved.  Graph consisting of OR arcs and AND arcs  OR : the node has to be solved.  AND : all the nodes in the arc has to be solved Courtesy : Artificial Intelligence and Soft Computing. Behavioural and Cognitive Modelling of the Human Brain
  • 19. How to explore  Expand nodes  Propagate values to ancestors  Futility  If the estimated cost of a solution becomes greater than futility then abandon the search  A threshold such that any solution with higher cost is too expensive to be practical
  • 20. AO* (high level view) 1. Given the Goal node, find its possible off-springs. 2. Estimate the h values at the leaves. The cost of the parent of the leaf (leaves) is the minimum of the cost of the OR clauses plus one or the cost of the AND clauses plus the number of AND clauses. After the children with minimum h are estimated, a pointer is attached to point from the parent node to its promising children. 3. One of the unexpanded OR clauses / the set of unexpanded AND clauses, where the pointer points from its parent, is now expanded and the h of the newly generated children are estimated. The effect of this h has to be propagated up to the root by re-calculating the f of the parent or the parent of the parents of the newly created child /children clauses through a least cost path. Thus the pointers may be modified depending on the revised cost of the existing clauses.
  • 21. AO* illustration Courtesy : Artificial Intelligence and Soft Computing. Behavioural and Cognitive Modelling of the Human Brain
  • 22. Summary  Explore game tree  Min max  Alpha Beta  When perfection is unattainable, we must approximate  AND OR graph  How to explore  AO*
  • 23. References  D. E. Knuth and R. W. Moore. An analysis of alpha-beta pruning. Artificial Intelligence, 6:293–326, 1975  Rich, E. and Knight, K., Artificial Intelligence, McGraw-Hill, New York, 1991.  Nilson, J. N., Principles of Artificial Intelligence, Morgan-Kaufmann, San Mateo, CA, pp. 112-126,1980.  Russel, S. and Norvig, P., Artificial Intelligence: A Modern Approach, Prentice-Hall, Englewood Cliffs, NJ, 1995.  Amit Konar , Artificial Intelligence and Soft Computing Behavioral and Cognitive Modeling of the Human Brain, CRC Press 2000.