1 / 28

Problem-Solving by Searching

Problem-Solving by Searching. Uninformed (Blind) Search Algorithms. Project 1 is out, check class homepage Due in two weeks 9/27/2010 Monday before class Projects for students in different groups (480/580/796) could be different later on. Problem-solving steps. Problem. Formulate.

shani
Télécharger la présentation

Problem-Solving by Searching

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Problem-Solving by Searching Uninformed (Blind) Search Algorithms

  2. Project 1 is out, check class homepageDue in two weeks 9/27/2010 Monday before classProjects for students in different groups (480/580/796) could be different later on

  3. Problem-solving steps Problem Formulate Search/Planning Execute

  4. Example: Romania Find a route from one city (Arad) to the other (Bucharest)

  5. Problem formulation Also called child-generator (Zerind, Sibiu, Timisoara)

  6. Selecting a state space

  7. Vacuum world state space graph

  8. Example: The 8-puzzle

  9. Tree search algorithms • Breadth-first search • Uniform-cost search • Depth-first search • A* search Goal test expand fail key

  10. Implementation of search algorithms • FIFO • LIFO • Priority Search algorithms differ based on the specific queuing function they use All search algorithms must do goal-test only when the node is picked up for expansion

  11. Flowchart of search algorithms Initialize queue with the initial state Yes Is the queue empty? Return fail No Remove the first node from the queue Yes Is this node a goal? Return node No Generate children and add them into the queue according to some strategy

  12. Initialize • Is empty? • Remove first • Is goal? • Expand & add Arad Timisoara Sibiu Zerind ??? Fagaras Arad Oradea R.V.

  13. Uninformed vs. informed search • No problem-specific knowledge about states • Can only distinguish a goal state from a non-goal state • Strategies that know whether one non-goal state is “more promising” than another are called informed (heuristic) search

  14. Implementation: states vs. nodes

  15. Evaluation

  16. Uninformed search strategies • Also called blind search • Can only distinguish goal state and non-goal state • Do not know which state is more “promising” • Breadth-first search • Uniform-cost search • Depth-first search • Depth-limited search • Iterative deepening depth-first search

  17. Breadth-first search Expand node with the smallest depth first

  18. Initialize queue with the initial state Yes Is the queue empty? Return fail No Remove the first node from the queue Yes Is this node a goal? Return node No Generate children and add them into the queue according to some strategy Where should the new nodes be added in BFS?

  19. Some strategy:

  20. Some strategy:

  21. Some strategy:

  22. Some strategy:

  23. Example of breadth-first search • Memory requirements are a bigger problem than is the time • Exponential-complexity search problems cannot be solved by uninformed methods for any but the smallest instances

More Related