SlideShare une entreprise Scribd logo
1  sur  23
Problem Solving Agents
Blind and Informed Searches
Problem Solving Agent
Problem Types
 Well defined
 Initial state
 Operator(Successor and predecessor Functions)
 Goal Test
 Path cost function
 Non well defined
 Missing at least on criteria
Example 1: TSM In Romania
 On holiday in Romania; currently in Arad.
 Formulate goal:
 be in Bucharest
 Formulate problem:
 states: various cities
 actions: drive between cities
 Find solution:
 sequence of cities, e.g., Arad, Sibiu, Fagaras, Bucharest
 Goal Test> Are we in Bucharest.
 Cost Function> Sum of road lengths to the destination
TSM In Romania
Example 2: 8-Puzzel
Example 2: 8-Puzzel
 states??: integer locations of tiles (ignore intermediate positions)
 actions??: move blank left, right, up, down (ignore unjamming etc.)
 transition model??: effect of the actions
 goal test??: = goal state (given)
 path cost??: 1 per move
 [Note: optimal solution of n-Puzzle family is NP-hard]
Example Problems
 Toy problems
 vacuum cleaner agent
 8-puzzle
 8-queens
 Crypt arithmetic
 missionaries cannibals
 Real-world problems
 route finding
 traveling salesperson
 VLSI layout
 robot navigation
 assembly sequencing
Search
 Know the fundamental search strategies and algorithms
 uninformed search
 breadth-first, depth-first, uniform-cost, iterative deepening, bidirectional
 informed search
 best-first (greedy, A*), heuristics, memory-bounded
 Evaluate the suitability of a search strategy for a problem
 completeness, optimality, time & space complexity
Searching for Solutions
 Traversal of some search space from the initial state to a goal state
legal sequence of actions as defined by operators
 The search can be performed on
 On a search tree derived from
expanding the current state using the possible operators
Tree-Search algorithm
 A graph representing
the state space
Graph-Search algorithm
Searching for Solutions
Uninformed search strategies
 Uninformed strategies use only the information available in the problem
definition
 Breadth-first search
 Uniform-cost search
 Depth-first search
 Depth-limited search
 Iterative deepening search
 Bidirectional Search
BFS
 Expand shallowest unexpanded node (shortest path in the frontier)
Evaluation
Evaluation
 Complete?? Yes (if b is finite)
 Optimal?? Yes (if cost = 1 per step); not optimal in general
 Time?? b^d
 Number of nodes generated: 1 + b + b^2 + … + b^d
 Space?? b^d
Space is the big problem; can easily generate nodes at 100MB/sec so 24hrs =
8640GB.
Uniform-cost search
 Expand first least-cost path (Equivalent to breadth-first if step costs all equal)
 Implementation:
fringe = priority queue ordered by path cost, lowest first
Depth First Search
DFS
 Depth first search is another way of traversing graphs, which is closely related
to preorder traversal of a tree. Recall that preorder traversal simply visits
each node before its children. It is most easy to program as a recursive
routine.
 Complete?? No
 Optimal?? No
 Time?? b^d
 Space?? b*d
Depth limited search
 A version of DFS in which l is defined by an expert
 There is a chance of converging to local optima
 Complete?? Yes(if l>d)
 Optimal?? Yes
 Time?? b^l
 Space?? b*l
Iterative Deeping Search(IDS)
This search strategy always expands one node to the deepest level of the tree.
Only when a dead-end is encountered does the search backup and expand nodes
at shallower levels.
N=(d+1)1+(d)b+(d-1)b2+...+(3)bd-2+(2)bd-1+bd
IDS Evaluation
 Complete?? Yes
 Optimal?? Yes
 Time?? b^d
 Space?? b.d
Bidirectional search
 Idea: Run two simultaneous searches.
 One Forward from initial state
 One Backward from goal state
 Until two fingers met
Summary

Contenu connexe

Similaire à 13256181.ppt

PPT ON INTRODUCTION TO AI- UNIT-1-PART-2.pptx
PPT ON INTRODUCTION TO AI- UNIT-1-PART-2.pptxPPT ON INTRODUCTION TO AI- UNIT-1-PART-2.pptx
PPT ON INTRODUCTION TO AI- UNIT-1-PART-2.pptxRaviKiranVarma4
 
Informed-search TECHNIQUES IN ai ml data science
Informed-search TECHNIQUES IN ai ml data scienceInformed-search TECHNIQUES IN ai ml data science
Informed-search TECHNIQUES IN ai ml data sciencedevvpillpersonal
 
Dfs presentation
Dfs presentationDfs presentation
Dfs presentationAlizay Khan
 
2012wq171-03-UninformedSeknlk ;lm,l;mk;arch.ppt
2012wq171-03-UninformedSeknlk ;lm,l;mk;arch.ppt2012wq171-03-UninformedSeknlk ;lm,l;mk;arch.ppt
2012wq171-03-UninformedSeknlk ;lm,l;mk;arch.pptmmpnair0
 
uniformed (also called blind search algo)
uniformed (also called blind search algo)uniformed (also called blind search algo)
uniformed (also called blind search algo)ssuser2a76b5
 
Searchadditional2
Searchadditional2Searchadditional2
Searchadditional2chandsek666
 
Jarrar.lecture notes.aai.2011s.ch3.uniformedsearch
Jarrar.lecture notes.aai.2011s.ch3.uniformedsearchJarrar.lecture notes.aai.2011s.ch3.uniformedsearch
Jarrar.lecture notes.aai.2011s.ch3.uniformedsearchPalGov
 
Jarrar.lecture notes.aai.2011s.ch4.informedsearch
Jarrar.lecture notes.aai.2011s.ch4.informedsearchJarrar.lecture notes.aai.2011s.ch4.informedsearch
Jarrar.lecture notes.aai.2011s.ch4.informedsearchPalGov
 
Lecture 16 - Dijkstra's Algorithm.pdf
Lecture 16 - Dijkstra's Algorithm.pdfLecture 16 - Dijkstra's Algorithm.pdf
Lecture 16 - Dijkstra's Algorithm.pdfiftakhar8
 

Similaire à 13256181.ppt (20)

PPT ON INTRODUCTION TO AI- UNIT-1-PART-2.pptx
PPT ON INTRODUCTION TO AI- UNIT-1-PART-2.pptxPPT ON INTRODUCTION TO AI- UNIT-1-PART-2.pptx
PPT ON INTRODUCTION TO AI- UNIT-1-PART-2.pptx
 
l2.pptx
l2.pptxl2.pptx
l2.pptx
 
Lecture 3 Problem Solving.pptx
Lecture 3 Problem Solving.pptxLecture 3 Problem Solving.pptx
Lecture 3 Problem Solving.pptx
 
l2.pptx
l2.pptxl2.pptx
l2.pptx
 
chapter3part1.ppt
chapter3part1.pptchapter3part1.ppt
chapter3part1.ppt
 
Informed-search TECHNIQUES IN ai ml data science
Informed-search TECHNIQUES IN ai ml data scienceInformed-search TECHNIQUES IN ai ml data science
Informed-search TECHNIQUES IN ai ml data science
 
Dfs presentation
Dfs presentationDfs presentation
Dfs presentation
 
2012wq171-03-UninformedSeknlk ;lm,l;mk;arch.ppt
2012wq171-03-UninformedSeknlk ;lm,l;mk;arch.ppt2012wq171-03-UninformedSeknlk ;lm,l;mk;arch.ppt
2012wq171-03-UninformedSeknlk ;lm,l;mk;arch.ppt
 
uniformed (also called blind search algo)
uniformed (also called blind search algo)uniformed (also called blind search algo)
uniformed (also called blind search algo)
 
Searchadditional2
Searchadditional2Searchadditional2
Searchadditional2
 
AIw09.pptx
AIw09.pptxAIw09.pptx
AIw09.pptx
 
Searching techniques
Searching techniquesSearching techniques
Searching techniques
 
Ai popular search algorithms
Ai   popular search algorithmsAi   popular search algorithms
Ai popular search algorithms
 
Shive
ShiveShive
Shive
 
Jarrar.lecture notes.aai.2011s.ch3.uniformedsearch
Jarrar.lecture notes.aai.2011s.ch3.uniformedsearchJarrar.lecture notes.aai.2011s.ch3.uniformedsearch
Jarrar.lecture notes.aai.2011s.ch3.uniformedsearch
 
Jarrar.lecture notes.aai.2011s.ch4.informedsearch
Jarrar.lecture notes.aai.2011s.ch4.informedsearchJarrar.lecture notes.aai.2011s.ch4.informedsearch
Jarrar.lecture notes.aai.2011s.ch4.informedsearch
 
Lecture 3 problem solving
Lecture 3   problem solvingLecture 3   problem solving
Lecture 3 problem solving
 
AI: AI & problem solving
AI: AI & problem solvingAI: AI & problem solving
AI: AI & problem solving
 
AI: AI & Problem Solving
AI: AI & Problem SolvingAI: AI & Problem Solving
AI: AI & Problem Solving
 
Lecture 16 - Dijkstra's Algorithm.pdf
Lecture 16 - Dijkstra's Algorithm.pdfLecture 16 - Dijkstra's Algorithm.pdf
Lecture 16 - Dijkstra's Algorithm.pdf
 

Plus de JohnWilliam111370

ROBOETHICS-CCS345 ETHICS AND ARTIFICIAL INTELLIGENCE.ppt
ROBOETHICS-CCS345 ETHICS AND ARTIFICIAL INTELLIGENCE.pptROBOETHICS-CCS345 ETHICS AND ARTIFICIAL INTELLIGENCE.ppt
ROBOETHICS-CCS345 ETHICS AND ARTIFICIAL INTELLIGENCE.pptJohnWilliam111370
 
Ethics in AI and Its imoact on Society etc
Ethics in AI and Its imoact on Society etcEthics in AI and Its imoact on Society etc
Ethics in AI and Its imoact on Society etcJohnWilliam111370
 
Machine Learning for AIML course UG.pptx
Machine Learning for AIML course UG.pptxMachine Learning for AIML course UG.pptx
Machine Learning for AIML course UG.pptxJohnWilliam111370
 
Feature Engineering for data science.pptx
Feature Engineering for data science.pptxFeature Engineering for data science.pptx
Feature Engineering for data science.pptxJohnWilliam111370
 
NumPy_Broadcasting Data Science - Python.pptx
NumPy_Broadcasting Data Science - Python.pptxNumPy_Broadcasting Data Science - Python.pptx
NumPy_Broadcasting Data Science - Python.pptxJohnWilliam111370
 
NumPy_Aggregations - Python for Data Science.pptx
NumPy_Aggregations - Python for Data Science.pptxNumPy_Aggregations - Python for Data Science.pptx
NumPy_Aggregations - Python for Data Science.pptxJohnWilliam111370
 

Plus de JohnWilliam111370 (9)

ROBOETHICS-CCS345 ETHICS AND ARTIFICIAL INTELLIGENCE.ppt
ROBOETHICS-CCS345 ETHICS AND ARTIFICIAL INTELLIGENCE.pptROBOETHICS-CCS345 ETHICS AND ARTIFICIAL INTELLIGENCE.ppt
ROBOETHICS-CCS345 ETHICS AND ARTIFICIAL INTELLIGENCE.ppt
 
Ethics in AI and Its imoact on Society etc
Ethics in AI and Its imoact on Society etcEthics in AI and Its imoact on Society etc
Ethics in AI and Its imoact on Society etc
 
Machine Learning for AIML course UG.pptx
Machine Learning for AIML course UG.pptxMachine Learning for AIML course UG.pptx
Machine Learning for AIML course UG.pptx
 
Feature Engineering for data science.pptx
Feature Engineering for data science.pptxFeature Engineering for data science.pptx
Feature Engineering for data science.pptx
 
NumPy_Broadcasting Data Science - Python.pptx
NumPy_Broadcasting Data Science - Python.pptxNumPy_Broadcasting Data Science - Python.pptx
NumPy_Broadcasting Data Science - Python.pptx
 
NumPy_Aggregations - Python for Data Science.pptx
NumPy_Aggregations - Python for Data Science.pptxNumPy_Aggregations - Python for Data Science.pptx
NumPy_Aggregations - Python for Data Science.pptx
 
R Factor.pptx
R Factor.pptxR Factor.pptx
R Factor.pptx
 
Research Techniques.ppt
Research Techniques.pptResearch Techniques.ppt
Research Techniques.ppt
 
Research.ppt
Research.pptResearch.ppt
Research.ppt
 

Dernier

APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSKurinjimalarL3
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxupamatechverse
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSISrknatarajan
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...Call Girls in Nagpur High Profile
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college projectTonystark477637
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Dr.Costas Sachpazis
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlysanyuktamishra911
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escortsranjana rawat
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordAsst.prof M.Gokilavani
 
UNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular ConduitsUNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular Conduitsrknatarajan
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Call Girls in Nagpur High Profile
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...ranjana rawat
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINESIVASHANKAR N
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )Tsuyoshi Horigome
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...ranjana rawat
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdfankushspencer015
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxupamatechverse
 

Dernier (20)

APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptx
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSIS
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college project
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
 
UNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular ConduitsUNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular Conduits
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptx
 

13256181.ppt

  • 1. Problem Solving Agents Blind and Informed Searches
  • 3. Problem Types  Well defined  Initial state  Operator(Successor and predecessor Functions)  Goal Test  Path cost function  Non well defined  Missing at least on criteria
  • 4. Example 1: TSM In Romania  On holiday in Romania; currently in Arad.  Formulate goal:  be in Bucharest  Formulate problem:  states: various cities  actions: drive between cities  Find solution:  sequence of cities, e.g., Arad, Sibiu, Fagaras, Bucharest  Goal Test> Are we in Bucharest.  Cost Function> Sum of road lengths to the destination
  • 7. Example 2: 8-Puzzel  states??: integer locations of tiles (ignore intermediate positions)  actions??: move blank left, right, up, down (ignore unjamming etc.)  transition model??: effect of the actions  goal test??: = goal state (given)  path cost??: 1 per move  [Note: optimal solution of n-Puzzle family is NP-hard]
  • 8. Example Problems  Toy problems  vacuum cleaner agent  8-puzzle  8-queens  Crypt arithmetic  missionaries cannibals  Real-world problems  route finding  traveling salesperson  VLSI layout  robot navigation  assembly sequencing
  • 9. Search  Know the fundamental search strategies and algorithms  uninformed search  breadth-first, depth-first, uniform-cost, iterative deepening, bidirectional  informed search  best-first (greedy, A*), heuristics, memory-bounded  Evaluate the suitability of a search strategy for a problem  completeness, optimality, time & space complexity
  • 10. Searching for Solutions  Traversal of some search space from the initial state to a goal state legal sequence of actions as defined by operators  The search can be performed on  On a search tree derived from expanding the current state using the possible operators Tree-Search algorithm  A graph representing the state space Graph-Search algorithm
  • 12. Uninformed search strategies  Uninformed strategies use only the information available in the problem definition  Breadth-first search  Uniform-cost search  Depth-first search  Depth-limited search  Iterative deepening search  Bidirectional Search
  • 13. BFS  Expand shallowest unexpanded node (shortest path in the frontier)
  • 15. Evaluation  Complete?? Yes (if b is finite)  Optimal?? Yes (if cost = 1 per step); not optimal in general  Time?? b^d  Number of nodes generated: 1 + b + b^2 + … + b^d  Space?? b^d Space is the big problem; can easily generate nodes at 100MB/sec so 24hrs = 8640GB.
  • 16. Uniform-cost search  Expand first least-cost path (Equivalent to breadth-first if step costs all equal)  Implementation: fringe = priority queue ordered by path cost, lowest first
  • 18. DFS  Depth first search is another way of traversing graphs, which is closely related to preorder traversal of a tree. Recall that preorder traversal simply visits each node before its children. It is most easy to program as a recursive routine.  Complete?? No  Optimal?? No  Time?? b^d  Space?? b*d
  • 19. Depth limited search  A version of DFS in which l is defined by an expert  There is a chance of converging to local optima  Complete?? Yes(if l>d)  Optimal?? Yes  Time?? b^l  Space?? b*l
  • 20. Iterative Deeping Search(IDS) This search strategy always expands one node to the deepest level of the tree. Only when a dead-end is encountered does the search backup and expand nodes at shallower levels. N=(d+1)1+(d)b+(d-1)b2+...+(3)bd-2+(2)bd-1+bd
  • 21. IDS Evaluation  Complete?? Yes  Optimal?? Yes  Time?? b^d  Space?? b.d
  • 22. Bidirectional search  Idea: Run two simultaneous searches.  One Forward from initial state  One Backward from goal state  Until two fingers met