SlideShare a Scribd company logo
1 of 40
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
Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009
Fig 3.8 State space of the 8-puzzle generated by “move blank” operations
10
Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009
Fig 3.9 An instance of the travelling salesperson problem
11
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.
12
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.
13
Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009
Fig 3.12 State space in which goal-directed search effectively prunes
extraneous search paths.
14
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.
15
Function backtrack algorithm
Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009
16
A trace of backtrack on the graph of figure 3.12
Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009
17
Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009
Fig 3.14 Backtracking search of a hypothetical state space space.
18
Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009
Fig 3.15 Graph for breadth - and depth - first search examples.
19
Function breadth_first search algorithm
Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009
20
A trace of breadth_first_search on the graph of Figure 3.13
Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009
21
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
22
Function depth_first_search algorithm
Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009
23
A trace of depth_first_search on the graph of Figure 3.13
Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009
24
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.
25
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.
26
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.
27
Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009
Fig 3.20 State space graph of a set of implications in the propositional
calculus.
28
Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009
Fig 3.21 And/or graph of the expression q Λ r → p.
29
Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009
30
Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009
Fig 3.22 And/or graph of the expression q v r → p
31
Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009
Fig 3.23 And/or graph of a set of propositional calculus expressions.
32
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).
33
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
34
Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009
Fig 3.25 The solution subgraph showing that Fred is at the museum.
35
Five rules for a simple subset of English grammar are:
Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009
36
Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009
Fig 3.26 And/or graph searched by the financial advisor.
37
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.
38
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.
39
Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009
Fig 3.29 A graph to be searched.
40

More Related Content

What's hot

Artificial Intelligence
Artificial Intelligence Artificial Intelligence
Artificial Intelligence Muhammad Ahad
 
Artificial Intelligence
Artificial Intelligence Artificial Intelligence
Artificial Intelligence Muhammad Ahad
 
Artificial Intelligence
Artificial Intelligence Artificial Intelligence
Artificial Intelligence Muhammad Ahad
 
Artificial Intelligence
Artificial Intelligence Artificial Intelligence
Artificial Intelligence Muhammad Ahad
 
Artificial Intelligence
Artificial Intelligence Artificial Intelligence
Artificial Intelligence Muhammad Ahad
 
Solving graph problems using networkX
Solving graph problems using networkXSolving graph problems using networkX
Solving graph problems using networkXKrishna Sangeeth KS
 
Succinct Summarisation of Large Networks via Small Synthetic Representative G...
Succinct Summarisation of Large Networks via Small Synthetic Representative G...Succinct Summarisation of Large Networks via Small Synthetic Representative G...
Succinct Summarisation of Large Networks via Small Synthetic Representative G...Jérôme KUNEGIS
 
Colorization with total variantion regularization
Colorization with total variantion regularizationColorization with total variantion regularization
Colorization with total variantion regularizationJÚLIO PEIXOTO
 

What's hot (11)

Artificial Intelligence
Artificial Intelligence Artificial Intelligence
Artificial Intelligence
 
Artificial Intelligence
Artificial Intelligence Artificial Intelligence
Artificial Intelligence
 
Artificial Intelligence
Artificial Intelligence Artificial Intelligence
Artificial Intelligence
 
Artificial Intelligence
Artificial Intelligence Artificial Intelligence
Artificial Intelligence
 
Artificial Intelligence
Artificial Intelligence Artificial Intelligence
Artificial Intelligence
 
Karnaugh Map
Karnaugh MapKarnaugh Map
Karnaugh Map
 
Solving graph problems using networkX
Solving graph problems using networkXSolving graph problems using networkX
Solving graph problems using networkX
 
S+SSPR 2010 Workshop
S+SSPR 2010 WorkshopS+SSPR 2010 Workshop
S+SSPR 2010 Workshop
 
Succinct Summarisation of Large Networks via Small Synthetic Representative G...
Succinct Summarisation of Large Networks via Small Synthetic Representative G...Succinct Summarisation of Large Networks via Small Synthetic Representative G...
Succinct Summarisation of Large Networks via Small Synthetic Representative G...
 
Page 28
Page 28Page 28
Page 28
 
Colorization with total variantion regularization
Colorization with total variantion regularizationColorization with total variantion regularization
Colorization with total variantion regularization
 

Viewers also liked

Artificial Intelligence
Artificial Intelligence Artificial Intelligence
Artificial Intelligence Muhammad Ahad
 
Artificial Intelligence
Artificial Intelligence Artificial Intelligence
Artificial Intelligence Muhammad Ahad
 
Lecture1 AI1 Introduction to artificial intelligence
Lecture1 AI1 Introduction to artificial intelligenceLecture1 AI1 Introduction to artificial intelligence
Lecture1 AI1 Introduction to artificial intelligenceAlbert Orriols-Puig
 
Kshivets O. Esophagogastric Cancer Surgery
Kshivets O. Esophagogastric Cancer SurgeryKshivets O. Esophagogastric Cancer Surgery
Kshivets O. Esophagogastric Cancer SurgeryOleg Kshivets
 
The future of the IoT will be cognitive
The future of the IoT will be cognitiveThe future of the IoT will be cognitive
The future of the IoT will be cognitiveThorsten Schroeer
 
Artificial Intelligence - A.I. Aggressive Technologies
Artificial Intelligence - A.I. Aggressive Technologies Artificial Intelligence - A.I. Aggressive Technologies
Artificial Intelligence - A.I. Aggressive Technologies exouniversity
 
Null mumbai-iot-workshop
Null mumbai-iot-workshopNull mumbai-iot-workshop
Null mumbai-iot-workshopNitesh Malviya
 
Null mumbai-iot top 10
Null mumbai-iot top 10Null mumbai-iot top 10
Null mumbai-iot top 10Nitesh Malviya
 
Michael Muttikal Devassy Resume - 26-Sep-2015 (1)
Michael Muttikal Devassy Resume - 26-Sep-2015 (1)Michael Muttikal Devassy Resume - 26-Sep-2015 (1)
Michael Muttikal Devassy Resume - 26-Sep-2015 (1)michael devassy
 
Web2expo 2011u
Web2expo 2011uWeb2expo 2011u
Web2expo 2011uzachbrand
 
Se7evn textual analysis
Se7evn textual analysisSe7evn textual analysis
Se7evn textual analysischarlcooke
 

Viewers also liked (13)

Artificial Intelligence
Artificial Intelligence Artificial Intelligence
Artificial Intelligence
 
Artificial Intelligence
Artificial Intelligence Artificial Intelligence
Artificial Intelligence
 
Artificial Intelligence
Artificial IntelligenceArtificial Intelligence
Artificial Intelligence
 
Lecture1 AI1 Introduction to artificial intelligence
Lecture1 AI1 Introduction to artificial intelligenceLecture1 AI1 Introduction to artificial intelligence
Lecture1 AI1 Introduction to artificial intelligence
 
Kshivets O. Esophagogastric Cancer Surgery
Kshivets O. Esophagogastric Cancer SurgeryKshivets O. Esophagogastric Cancer Surgery
Kshivets O. Esophagogastric Cancer Surgery
 
Android business models
Android business modelsAndroid business models
Android business models
 
The future of the IoT will be cognitive
The future of the IoT will be cognitiveThe future of the IoT will be cognitive
The future of the IoT will be cognitive
 
Artificial Intelligence - A.I. Aggressive Technologies
Artificial Intelligence - A.I. Aggressive Technologies Artificial Intelligence - A.I. Aggressive Technologies
Artificial Intelligence - A.I. Aggressive Technologies
 
Null mumbai-iot-workshop
Null mumbai-iot-workshopNull mumbai-iot-workshop
Null mumbai-iot-workshop
 
Null mumbai-iot top 10
Null mumbai-iot top 10Null mumbai-iot top 10
Null mumbai-iot top 10
 
Michael Muttikal Devassy Resume - 26-Sep-2015 (1)
Michael Muttikal Devassy Resume - 26-Sep-2015 (1)Michael Muttikal Devassy Resume - 26-Sep-2015 (1)
Michael Muttikal Devassy Resume - 26-Sep-2015 (1)
 
Web2expo 2011u
Web2expo 2011uWeb2expo 2011u
Web2expo 2011u
 
Se7evn textual analysis
Se7evn textual analysisSe7evn textual analysis
Se7evn textual analysis
 

More from Muhammad Ahad

11. operating-systems-part-2
11. operating-systems-part-211. operating-systems-part-2
11. operating-systems-part-2Muhammad Ahad
 
11. operating-systems-part-1
11. operating-systems-part-111. operating-systems-part-1
11. operating-systems-part-1Muhammad Ahad
 
08. networking-part-2
08. networking-part-208. networking-part-2
08. networking-part-2Muhammad Ahad
 
06. security concept
06. security concept06. security concept
06. security conceptMuhammad Ahad
 
05. performance-concepts-26-slides
05. performance-concepts-26-slides05. performance-concepts-26-slides
05. performance-concepts-26-slidesMuhammad Ahad
 
05. performance-concepts
05. performance-concepts05. performance-concepts
05. performance-conceptsMuhammad Ahad
 
04. availability-concepts
04. availability-concepts04. availability-concepts
04. availability-conceptsMuhammad Ahad
 
03. non-functional-attributes-introduction-4-slides
03. non-functional-attributes-introduction-4-slides03. non-functional-attributes-introduction-4-slides
03. non-functional-attributes-introduction-4-slidesMuhammad Ahad
 
01. 03.-introduction-to-infrastructure
01. 03.-introduction-to-infrastructure01. 03.-introduction-to-infrastructure
01. 03.-introduction-to-infrastructureMuhammad Ahad
 
01. 02. introduction (13 slides)
01.   02. introduction (13 slides)01.   02. introduction (13 slides)
01. 02. introduction (13 slides)Muhammad Ahad
 

More from Muhammad Ahad (20)

11. operating-systems-part-2
11. operating-systems-part-211. operating-systems-part-2
11. operating-systems-part-2
 
11. operating-systems-part-1
11. operating-systems-part-111. operating-systems-part-1
11. operating-systems-part-1
 
10. compute-part-2
10. compute-part-210. compute-part-2
10. compute-part-2
 
10. compute-part-1
10. compute-part-110. compute-part-1
10. compute-part-1
 
09. storage-part-1
09. storage-part-109. storage-part-1
09. storage-part-1
 
08. networking-part-2
08. networking-part-208. networking-part-2
08. networking-part-2
 
08. networking
08. networking08. networking
08. networking
 
07. datacenters
07. datacenters07. datacenters
07. datacenters
 
06. security concept
06. security concept06. security concept
06. security concept
 
05. performance-concepts-26-slides
05. performance-concepts-26-slides05. performance-concepts-26-slides
05. performance-concepts-26-slides
 
05. performance-concepts
05. performance-concepts05. performance-concepts
05. performance-concepts
 
04. availability-concepts
04. availability-concepts04. availability-concepts
04. availability-concepts
 
03. non-functional-attributes-introduction-4-slides
03. non-functional-attributes-introduction-4-slides03. non-functional-attributes-introduction-4-slides
03. non-functional-attributes-introduction-4-slides
 
01. 03.-introduction-to-infrastructure
01. 03.-introduction-to-infrastructure01. 03.-introduction-to-infrastructure
01. 03.-introduction-to-infrastructure
 
01. 02. introduction (13 slides)
01.   02. introduction (13 slides)01.   02. introduction (13 slides)
01. 02. introduction (13 slides)
 
Chapter14
Chapter14Chapter14
Chapter14
 
Chapter13
Chapter13Chapter13
Chapter13
 
Chapter12
Chapter12Chapter12
Chapter12
 
Chapter11
Chapter11Chapter11
Chapter11
 
Chapter10
Chapter10Chapter10
Chapter10
 

Recently uploaded

"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
Science&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdfScience&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdfjimielynbastida
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Neo4j
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
APIForce Zurich 5 April Automation LPDG
APIForce Zurich 5 April  Automation LPDGAPIForce Zurich 5 April  Automation LPDG
APIForce Zurich 5 April Automation LPDGMarianaLemus7
 
Bluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdfBluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdfngoud9212
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024BookNet Canada
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024BookNet Canada
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 

Recently uploaded (20)

"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
Science&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdfScience&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdf
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
APIForce Zurich 5 April Automation LPDG
APIForce Zurich 5 April  Automation LPDGAPIForce Zurich 5 April  Automation LPDG
APIForce Zurich 5 April Automation LPDG
 
Bluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdfBluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdf
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptxVulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 

Artificial Intelligence

  • 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. Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 Fig 3.8 State space of the 8-puzzle generated by “move blank” operations 10
  • 11. Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 Fig 3.9 An instance of the travelling salesperson problem 11
  • 12. 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. 12
  • 13. 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. 13
  • 14. Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 Fig 3.12 State space in which goal-directed search effectively prunes extraneous search paths. 14
  • 15. 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. 15
  • 16. Function backtrack algorithm Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 16
  • 17. A trace of backtrack on the graph of figure 3.12 Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 17
  • 18. Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 Fig 3.14 Backtracking search of a hypothetical state space space. 18
  • 19. Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 Fig 3.15 Graph for breadth - and depth - first search examples. 19
  • 20. Function breadth_first search algorithm Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 20
  • 21. A trace of breadth_first_search on the graph of Figure 3.13 Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 21
  • 22. 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 22
  • 23. Function depth_first_search algorithm Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 23
  • 24. A trace of depth_first_search on the graph of Figure 3.13 Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 24
  • 25. 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. 25
  • 26. 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. 26
  • 27. 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. 27
  • 28. Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 Fig 3.20 State space graph of a set of implications in the propositional calculus. 28
  • 29. Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 Fig 3.21 And/or graph of the expression q Λ r → p. 29
  • 30. Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 30
  • 31. Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 Fig 3.22 And/or graph of the expression q v r → p 31
  • 32. Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 Fig 3.23 And/or graph of a set of propositional calculus expressions. 32
  • 33. 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). 33
  • 34. 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 34
  • 35. Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 Fig 3.25 The solution subgraph showing that Fred is at the museum. 35
  • 36. Five rules for a simple subset of English grammar are: Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 36
  • 37. Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 Fig 3.26 And/or graph searched by the financial advisor. 37
  • 38. 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. 38
  • 39. 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. 39
  • 40. Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 Fig 3.29 A graph to be searched. 40

Editor's Notes

  1. Insert chapter number
  2. OWEN: Insert fig 3.1
  3. Insert def box p 84
  4. OWEN: Insert def box p85 plus fig 3.5 a and b
  5. OWEN: Insert def box p 86 plus fig 3.6 a and b
  6. Insert def box p 88
  7. Insert fig 3.8
  8. Insert fig 3.11
  9. Insert fig 3.13
  10. Insert fig 3.15
  11. Insert fig 3.22