1 / 19

Uninformed Search

Uninformed Search. R & N Chapter 3. State Space Search. We need: Set of states A start state A set of operators (a successor function), possibly with costs attached. A set of goal states (or a way to test for goal). A Water Jug Problem.

louis
Download Presentation

Uninformed Search

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. Uninformed Search R & N Chapter 3

  2. State Space Search • We need: • Set of states • A start state • A set of operators (a successor function), possibly with costs attached. • A set of goal states (or a way to test for goal)

  3. A Water Jug Problem You are given two jugs, a 4-gallon one and a 3-gallon one. Neither has any measuring markers on it. There is a pump that can be used to fill the jugs with water. How can you get exactly 2 gallons of water into the 4-gallon jug? States: Start state: Operators: Goal state:

  4. School Lunch Planning States: Start state: Operators: Goal state:

  5. Criminal Defense Lawyer States: Start state: Operators: Goal state:

  6. Incremental vs. Complete State Formulation 8-Queens States: Start state: Operators: Goal state:

  7. Search • Two key decisions: • Use a tree or a graph • How to choose which node to expand next • Example:

  8. Performance Criteria • Completeness • Optimality • How good is the solution? (R & N call this optimality) • How efficient is the search algorithm at finding the solution? (R & N call this Time and Space complexity)

  9. The Outline of a Basic Tree Search

  10. Breadth-First Search Is this a good idea?

  11. Breadth-First Search – When to Evaluate?

  12. Depth-First Search

  13. The British Museum Algorithm A simple algorithm: Generate and test When done systematically, it is basic depth-first search. But suppose that each time we end a path, we start over at the top and choose the next path randomly. If we try this long enough, we may eventually hit a solution. We’ll call this The British Museum Algorithm or The Monkeys and Typewriters Algorithm http://www.arn.org/docs2/news/monkeysandtypewriters051103.htm

  14. Iterative Deepening

  15. Is Iterative Deepening a Win? This last term is because of how R&N define best-first search. N(BFS) = b + b2 + … + bd + (bd+1-b) N(IDS) = (d)b + (d-1)b2 + … + (1)bd Example: Let b = 10 and d = 5: N(IDS) = 50 + 400 + 3,000 + 20,000 + 100,000 = 123,450 N(BFS) = 10 + 100 + 1,000 + 10,000 + 100,000 + 999,990 = 1, 111, 100 But there is a real saving in memory.

  16. Is ID a Win? The Mathematics Breadth-first search: Iterative deepening: Lower bound: Upper bound:

  17. Is Iterative Deepening a Win?

  18. Which Direction Should We Search? Our choices: Forward, backwards, or bidirectional The issues: How many start and goal states are there? Branching factors in each direction How much work is it to compare states?

  19. Tree or Graph? Issues: How common are repeated states? How expensive is it to compare states? Examples: 8-puzzle chess school lunch planning defense lawyer theorem proving

More Related