SlideShare a Scribd company logo
1 of 45
George F Luger
ARTIFICIAL INTELLIGENCE 6th edition
Structures and Strategies for Complex Problem Solving
Structures and Strategies For Space
State Search
Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009
3.0 Introduction
3.1 Graph Theory
3.2 Strategies for Space State Search
3.3 Using Space State to Represent
Reasoning with the Predicate
Calculus
3.4 Epilogue and References
3.5 Exercises
1
Figure 3.1: The city of Königsberg.
Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009
2
Figure 3.2: Graph of the Königsberg bridge system.
Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009
3
Figure 3.3: A labeled directed graph.
Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009
4
Figure 3.4: A rooted tree, exemplifying family relationships.
Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009
5
Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009
6
Fig 3.5 (a) The finite state graph for a flip flop and
(b) its transition matrix.
Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009
7
Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009
Fig 3.6 (a) The finite state graph and (b) the transition
matrix for string recognition example
8
Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009
9
10
11
12
Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009
Fig 3.8 State space of the 8-puzzle generated by “move blank” operations
13
Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009
Fig 3.9 An instance of the travelling salesperson problem
14
Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009
Fig 3.10 Search for the travelling salesperson problem. Each arc is marked with
the total weight of all paths from the start node (A) to its endpoint.
15
Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009
Fig 3.11 An instance of the travelling salesperson problem with the nearest
neighbor path in bold. Note this path (A, E, D, B, C, A), at a cost of 550,
is not the shortest path. The comparatively high cost of arc (C, A)
defeated the heuristic.
16
Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009
Fig 3.12 State space in which goal-directed search effectively prunes
extraneous search paths.
17
18
Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009
Fig 3.13 State space in which data-directed search prunes irrelevant data and
their consequents and determines one of a number of possible goals.
19
Function backtrack algorithm
Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009
20
A trace of backtrack on the graph of figure 3.12
Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009
21
Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009
Fig 3.14 Backtracking search of a hypothetical state space space.
22
Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009
Fig 3.15 Graph for breadth - and depth - first search examples.
23
Function breadth_first search algorithm
Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009
24
A trace of breadth_first_search on the graph of Figure 3.13
Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009
25
Fig 3.16 Graph of Fig 3.15 at iteration 6 of breadth-first search. States on
open and closed are highlighted.
Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009
26
Function depth_first_search algorithm
Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009
27
A trace of depth_first_search on the graph of Figure 3.13
Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009
28
29
Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009
Fig 3.17 Breadth-first search of the 8-puzzle, showing order in which states
were removed from open.
30
Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009
Fig 3.18 Graph of fig 3.15 at iteration 6 of depth-first search. States on
open and closed are highlighted.
31
Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009
Fig 3.19 Depth-first search of the 8-puzzle with a depth bound of 5.
32
Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009
Fig 3.20 State space graph of a set of implications in the propositional
calculus.
33
Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009
Fig 3.21 And/or graph of the expression q Λ r → p.
34
Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009
35
Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009
Fig 3.22 And/or graph of the expression q v r → p
36
Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009
Fig 3.23 And/or graph of a set of propositional calculus expressions.
37
Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009
Fig 3.24 And/or graph of part of the state space for integrating a function, from
Nilsson (1971).
38
The facts and rules of this example are given as English sentences followed by
their predicate calculus equivalents:
Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009
39
Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009
Fig 3.25 The solution subgraph showing that Fred is at the museum.
40
Five rules for a simple subset of English grammar are:
Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009
41
Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009
Fig 3.26 And/or graph searched by the financial advisor.
42
Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009
Fig 3.27 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.
43
Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009
Fig 3.28 Parse tree for the sentence “The dog bites the man.” Note this is a
subtree of the graph of fig 3.27.
44
Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009
Fig 3.29 A graph to be searched.
45

More Related Content

Recently uploaded

Tales from a Passkey Provider Progress from Awareness to Implementation.pptx
Tales from a Passkey Provider  Progress from Awareness to Implementation.pptxTales from a Passkey Provider  Progress from Awareness to Implementation.pptx
Tales from a Passkey Provider Progress from Awareness to Implementation.pptx
FIDO Alliance
 
“Iamnobody89757” Understanding the Mysterious of Digital Identity.pdf
“Iamnobody89757” Understanding the Mysterious of Digital Identity.pdf“Iamnobody89757” Understanding the Mysterious of Digital Identity.pdf
“Iamnobody89757” Understanding the Mysterious of Digital Identity.pdf
Muhammad Subhan
 
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
panagenda
 

Recently uploaded (20)

Tales from a Passkey Provider Progress from Awareness to Implementation.pptx
Tales from a Passkey Provider  Progress from Awareness to Implementation.pptxTales from a Passkey Provider  Progress from Awareness to Implementation.pptx
Tales from a Passkey Provider Progress from Awareness to Implementation.pptx
 
“Iamnobody89757” Understanding the Mysterious of Digital Identity.pdf
“Iamnobody89757” Understanding the Mysterious of Digital Identity.pdf“Iamnobody89757” Understanding the Mysterious of Digital Identity.pdf
“Iamnobody89757” Understanding the Mysterious of Digital Identity.pdf
 
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
 
UiPath manufacturing technology benefits and AI overview
UiPath manufacturing technology benefits and AI overviewUiPath manufacturing technology benefits and AI overview
UiPath manufacturing technology benefits and AI overview
 
How we scaled to 80K users by doing nothing!.pdf
How we scaled to 80K users by doing nothing!.pdfHow we scaled to 80K users by doing nothing!.pdf
How we scaled to 80K users by doing nothing!.pdf
 
Easier, Faster, and More Powerful – Notes Document Properties Reimagined
Easier, Faster, and More Powerful – Notes Document Properties ReimaginedEasier, Faster, and More Powerful – Notes Document Properties Reimagined
Easier, Faster, and More Powerful – Notes Document Properties Reimagined
 
Continuing Bonds Through AI: A Hermeneutic Reflection on Thanabots
Continuing Bonds Through AI: A Hermeneutic Reflection on ThanabotsContinuing Bonds Through AI: A Hermeneutic Reflection on Thanabots
Continuing Bonds Through AI: A Hermeneutic Reflection on Thanabots
 
Observability Concepts EVERY Developer Should Know (DevOpsDays Seattle)
Observability Concepts EVERY Developer Should Know (DevOpsDays Seattle)Observability Concepts EVERY Developer Should Know (DevOpsDays Seattle)
Observability Concepts EVERY Developer Should Know (DevOpsDays Seattle)
 
How to Check CNIC Information Online with Pakdata cf
How to Check CNIC Information Online with Pakdata cfHow to Check CNIC Information Online with Pakdata cf
How to Check CNIC Information Online with Pakdata cf
 
Microsoft CSP Briefing Pre-Engagement - Questionnaire
Microsoft CSP Briefing Pre-Engagement - QuestionnaireMicrosoft CSP Briefing Pre-Engagement - Questionnaire
Microsoft CSP Briefing Pre-Engagement - Questionnaire
 
How to Check GPS Location with a Live Tracker in Pakistan
How to Check GPS Location with a Live Tracker in PakistanHow to Check GPS Location with a Live Tracker in Pakistan
How to Check GPS Location with a Live Tracker in Pakistan
 
JohnPollard-hybrid-app-RailsConf2024.pptx
JohnPollard-hybrid-app-RailsConf2024.pptxJohnPollard-hybrid-app-RailsConf2024.pptx
JohnPollard-hybrid-app-RailsConf2024.pptx
 
Overview of Hyperledger Foundation
Overview of Hyperledger FoundationOverview of Hyperledger Foundation
Overview of Hyperledger Foundation
 
Frisco Automating Purchase Orders with MuleSoft IDP- May 10th, 2024.pptx.pdf
Frisco Automating Purchase Orders with MuleSoft IDP- May 10th, 2024.pptx.pdfFrisco Automating Purchase Orders with MuleSoft IDP- May 10th, 2024.pptx.pdf
Frisco Automating Purchase Orders with MuleSoft IDP- May 10th, 2024.pptx.pdf
 
Portal Kombat : extension du réseau de propagande russe
Portal Kombat : extension du réseau de propagande russePortal Kombat : extension du réseau de propagande russe
Portal Kombat : extension du réseau de propagande russe
 
Human Expert Website Manual WCAG 2.0 2.1 2.2 Audit - Digital Accessibility Au...
Human Expert Website Manual WCAG 2.0 2.1 2.2 Audit - Digital Accessibility Au...Human Expert Website Manual WCAG 2.0 2.1 2.2 Audit - Digital Accessibility Au...
Human Expert Website Manual WCAG 2.0 2.1 2.2 Audit - Digital Accessibility Au...
 
TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...
TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...
TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...
 
AI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by AnitarajAI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by Anitaraj
 
ChatGPT and Beyond - Elevating DevOps Productivity
ChatGPT and Beyond - Elevating DevOps ProductivityChatGPT and Beyond - Elevating DevOps Productivity
ChatGPT and Beyond - Elevating DevOps Productivity
 
Introduction to FIDO Authentication and Passkeys.pptx
Introduction to FIDO Authentication and Passkeys.pptxIntroduction to FIDO Authentication and Passkeys.pptx
Introduction to FIDO Authentication and Passkeys.pptx
 

Featured

How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 

Featured (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

AIStateSpaceSearch(SSS)_SixthEdChap3.ppt

  • 1. George F Luger ARTIFICIAL INTELLIGENCE 6th edition Structures and Strategies for Complex Problem Solving Structures and Strategies For Space State Search Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 3.0 Introduction 3.1 Graph Theory 3.2 Strategies for Space State Search 3.3 Using Space State to Represent Reasoning with the Predicate Calculus 3.4 Epilogue and References 3.5 Exercises 1
  • 2. Figure 3.1: The city of Königsberg. Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 2
  • 3. Figure 3.2: Graph of the Königsberg bridge system. Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 3
  • 4. Figure 3.3: A labeled directed graph. Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 4
  • 5. Figure 3.4: A rooted tree, exemplifying family relationships. Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 5
  • 6. Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 6
  • 7. Fig 3.5 (a) The finite state graph for a flip flop and (b) its transition matrix. Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 7
  • 8. Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 Fig 3.6 (a) The finite state graph and (b) the transition matrix for string recognition example 8
  • 9. Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 9
  • 10. 10
  • 11. 11
  • 12. 12
  • 13. Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 Fig 3.8 State space of the 8-puzzle generated by “move blank” operations 13
  • 14. Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 Fig 3.9 An instance of the travelling salesperson problem 14
  • 15. Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 Fig 3.10 Search for the travelling salesperson problem. Each arc is marked with the total weight of all paths from the start node (A) to its endpoint. 15
  • 16. Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 Fig 3.11 An instance of the travelling salesperson problem with the nearest neighbor path in bold. Note this path (A, E, D, B, C, A), at a cost of 550, is not the shortest path. The comparatively high cost of arc (C, A) defeated the heuristic. 16
  • 17. Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 Fig 3.12 State space in which goal-directed search effectively prunes extraneous search paths. 17
  • 18. 18
  • 19. Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 Fig 3.13 State space in which data-directed search prunes irrelevant data and their consequents and determines one of a number of possible goals. 19
  • 20. Function backtrack algorithm Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 20
  • 21. A trace of backtrack on the graph of figure 3.12 Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 21
  • 22. Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 Fig 3.14 Backtracking search of a hypothetical state space space. 22
  • 23. Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 Fig 3.15 Graph for breadth - and depth - first search examples. 23
  • 24. Function breadth_first search algorithm Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 24
  • 25. A trace of breadth_first_search on the graph of Figure 3.13 Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 25
  • 26. Fig 3.16 Graph of Fig 3.15 at iteration 6 of breadth-first search. States on open and closed are highlighted. Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 26
  • 27. Function depth_first_search algorithm Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 27
  • 28. A trace of depth_first_search on the graph of Figure 3.13 Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 28
  • 29. 29
  • 30. Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 Fig 3.17 Breadth-first search of the 8-puzzle, showing order in which states were removed from open. 30
  • 31. Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 Fig 3.18 Graph of fig 3.15 at iteration 6 of depth-first search. States on open and closed are highlighted. 31
  • 32. Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 Fig 3.19 Depth-first search of the 8-puzzle with a depth bound of 5. 32
  • 33. Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 Fig 3.20 State space graph of a set of implications in the propositional calculus. 33
  • 34. Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 Fig 3.21 And/or graph of the expression q Λ r → p. 34
  • 35. Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 35
  • 36. Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 Fig 3.22 And/or graph of the expression q v r → p 36
  • 37. Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 Fig 3.23 And/or graph of a set of propositional calculus expressions. 37
  • 38. Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 Fig 3.24 And/or graph of part of the state space for integrating a function, from Nilsson (1971). 38
  • 39. The facts and rules of this example are given as English sentences followed by their predicate calculus equivalents: Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 39
  • 40. Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 Fig 3.25 The solution subgraph showing that Fred is at the museum. 40
  • 41. Five rules for a simple subset of English grammar are: Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 41
  • 42. Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 Fig 3.26 And/or graph searched by the financial advisor. 42
  • 43. Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 Fig 3.27 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. 43
  • 44. Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 Fig 3.28 Parse tree for the sentence “The dog bites the man.” Note this is a subtree of the graph of fig 3.27. 44
  • 45. Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 Fig 3.29 A graph to be searched. 45