Download presentation
Presentation is loading. Please wait.
Published byBriana Willis Modified over 8 years ago
1
STRUCTURES AND STRATEGIES FOR STATE SPACE SEARCH 3 3.0Introduction 3.1Graph Theory 3.2Strategies for State Space Search 3.3Using the State Space to Represent Reasoning with the Predicate Calculus 3.4Epilogue and References 3.5Exercises Slide 3.1
2
A R T I F I C I A L I N T E L L I G E N C E: Structure and Strategies for Complex Problem Solving, 4th Edition George F. Luger © 2002 Addison Wesley Slide 3.2 Figure 3.14: Graph of Figure 3.13 at iteration 6 of breadth-first search. States on open and closed are highlighted.
3
A R T I F I C I A L I N T E L L I G E N C E: Structure and Strategies for Complex Problem Solving, 4th Edition George F. Luger © 2002 Addison Wesley Slide 3.3 Function depth_first_search algorithm
4
A R T I F I C I A L I N T E L L I G E N C E: Structure and Strategies for Complex Problem Solving, 4th Edition George F. Luger © 2002 Addison Wesley Slide 3.4 A trace of depth_first_search on the graph of Figure 3.13
5
A R T I F I C I A L I N T E L L I G E N C E: Structure and Strategies for Complex Problem Solving, 4th Edition George F. Luger © 2002 Addison Wesley Slide 3.5 Figure 3.15: Breadth-first search of the 8-puzzle, showing order in which states were removed from open.
6
A R T I F I C I A L I N T E L L I G E N C E: Structure and Strategies for Complex Problem Solving, 4th Edition George F. Luger © 2002 Addison Wesley Slide 3.6 Figure 3.16: Graph of Figure 3.13 at iteration 6 of depth-first search. States on open and closed are highlighted.
7
A R T I F I C I A L I N T E L L I G E N C E: Structure and Strategies for Complex Problem Solving, 4th Edition George F. Luger © 2002 Addison Wesley Slide 3.7 Figure 3.17: Depth-first search of the 8-puzzle with a depth bound of 5.
8
A R T I F I C I A L I N T E L L I G E N C E: Structure and Strategies for Complex Problem Solving, 4th Edition George F. Luger © 2002 Addison Wesley Slide 3.8 Figure 3.18: State space graph of a set of implications in the propositional calculus.
9
A R T I F I C I A L I N T E L L I G E N C E: Structure and Strategies for Complex Problem Solving, 4th Edition George F. Luger © 2002 Addison Wesley Slide 3.9 Figure 3.19: And/or graph of the expression q Ÿ r p.
10
A R T I F I C I A L I N T E L L I G E N C E: Structure and Strategies for Complex Problem Solving, 4th Edition George F. Luger © 2002 Addison Wesley Slide 3.10
11
A R T I F I C I A L I N T E L L I G E N C E: Structure and Strategies for Complex Problem Solving, 4th Edition George F. Luger © 2002 Addison Wesley Slide 3.11 Figure 3.20: And/or graph of the expression q r p.
12
A R T I F I C I A L I N T E L L I G E N C E: Structure and Strategies for Complex Problem Solving, 4th Edition George F. Luger © 2002 Addison Wesley Slide 3.12 Figure 3.21: And/or graph of a set of propositional calculus expressions.
13
A R T I F I C I A L I N T E L L I G E N C E: Structure and Strategies for Complex Problem Solving, 4th Edition George F. Luger © 2002 Addison Wesley Slide 3.13 Figure 3.22: And/or graph of part of the state space for integrating a function, from Nilsson (1971).
14
A R T I F I C I A L I N T E L L I G E N C E: Structure and Strategies for Complex Problem Solving, 4th Edition George F. Luger © 2002 Addison Wesley Slide 3.14 The facts and rules of this example are given as English sentences followed by their predicate calculus equivalents:
15
A R T I F I C I A L I N T E L L I G E N C E: Structure and Strategies for Complex Problem Solving, 4th Edition George F. Luger © 2002 Addison Wesley Slide 3.15 Figure 3.23: The solution subgraph showing that fred is at the museum.
16
A R T I F I C I A L I N T E L L I G E N C E: Structure and Strategies for Complex Problem Solving, 4th Edition George F. Luger © 2002 Addison Wesley Slide 3.16 Five rules for a simple subset of English grammar are:
17
A R T I F I C I A L I N T E L L I G E N C E: Structure and Strategies for Complex Problem Solving, 4th Edition George F. Luger © 2002 Addison Wesley Slide 3.17 Figure 3.24: And/or graph searched by the financial advisor.
18
A R T I F I C I A L I N T E L L I G E N C E: Structure and Strategies for Complex Problem Solving, 4th Edition George F. Luger © 2002 Addison Wesley Slide 3.18 Figure 3.25:And/or graph for the grammar of Example 3.3.6. Some of the nodes (np, art, etc.) have been written more than once to simplify drawing the graph.
19
A R T I F I C I A L I N T E L L I G E N C E: Structure and Strategies for Complex Problem Solving, 4th Edition George F. Luger © 2002 Addison Wesley Slide 3.19 Figure 3.26: Parse tree for the sentence “The dog bites the man.” Note that this is a subtree of the graph of Figure 3.25.
20
A R T I F I C I A L I N T E L L I G E N C E: Structure and Strategies for Complex Problem Solving, 4th Edition George F. Luger © 2002 Addison Wesley Slide 3.20 Figure 3.27: A graph to be searched.
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.