1 / 77

CS3243: Introduction to Artificial Intelligence

This article introduces the problem formulation process and tree search algorithms for finding solutions in fully observable, deterministic, and discrete environments. It covers examples such as route planning, maze solving, and game strategies. The article discusses state space abstraction, defining states, actions, transition models, goal tests, and cost functions. It also explores tree search algorithms like breadth-first search (BFS) and uniform-cost search (UCS).

mosterberg
Download Presentation

CS3243: Introduction to Artificial Intelligence

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. CS3243: Introduction to Artificial Intelligence Semester 2, 2017/2018

  2. Solving problemsby Searching for Solutions AIMA Chapter 3.1 – 3.4

  3. Searching for Solutions • Fully observable, deterministic, discrete environment • Examples • Shortest route going through all cities • Winning sequence of moves in a game • Find path through a maze • Route planning • Solution to Boolean satisfiability problem

  4. Problem Formulation

  5. A solution is a sequence of actions leading from the initial state to a goal state • Is the solution unique? • Is it optimal? • Can it be efficiently found?

  6. Defining State Space • Real world is absurdly complex: state space must be abstracted • (Abstract) state set of real states • (Abstract) action complex combination of real actions e.g.,“move steering wheel 30 degrees left, press gas pedal, avoid rocks...” • (Abstract) solution set of real paths that are solutions in the real world • Valid abstraction: e.g., for any real state “in ”, there is a real set of actions that will lead us to the next step in the solution. • Useful abstraction: executing each abstract action is “easier” than the original problem

  7. Example: Route Planning Home NUH Work

  8. Example: Route Planning Home NUH Work

  9. Example: Vacuum World • States (Initial State)? • Actions? • Transition Model? • Goal Test? • Cost Function?

  10. Example: 8 Puzzle • States (Initial State)? • Actions? • Transition Model? • Goal Test? • Cost Function? Can we find an optimal solution in poly-time?

  11. Tree Search Algorithms • Start at the source node, keep searching until we reach a goal state. • Frontier: nodes that we have seen but haven’t explored yet (at initialization: the frontier is just the source) • At each iteration, choose a node from the frontier, explore it, and add its neighbors to the frontier.

  12. Initial State Home NUH Goal Work

  13. Traversal Methods • In what order to we explore the frontier nodes? Search strategy • Which neighbors do we add? All of them? “Algorithms which do not remember their (search) history are doomed to repeat it”

  14. Graph Search • A node that’s been explored once will not be revisited. • We will need to assume TREE-SEARCH is used for some theoretical results (next lecture)

  15. Implementation: States vs. Nodes • A state represents a physical configuration • A node is a data structure constituting part of search tree. It includes state, parent node, action, and path cost. • Two different nodes are allowed to contain same world state

  16. Home NUH Work

  17. Home NUH Work

  18. Home NUH Work

  19. Home NUH Work

  20. Home NUH Work

  21. Home NUH Work

  22. Search Strategies Any deterministic search algorithm is determined by the order of node expansion.

  23. Breadth-First Search (BFS) • Idea: Expand shallowest unexpanded node • Implementation: Frontier is a FIFO queue, i.e., insert new successors at the end

  24. Home NUH Work

  25. Home NUH Work

  26. Home NUH Work

  27. Home NUH Work

  28. Home NUH Work

  29. Home NUH Work

  30. Home NUH Work

  31. Home NUH Work

  32. Home NUH Work

  33. Home NUH Work

  34. Home NUH Work

  35. Home NUH Work

  36. Home NUH Work

  37. Home NUH Work

  38. Home NUH Work

  39. Home NUH Work

  40. Properties of BFS • Yes (if is finite) • No (unless step cost ) • Max size of frontier Spaceis the bigger problem (more than time)

  41. Uniform-Cost Search (UCS) • Idea: expand least-path-cost unexpanded node • Frontier: priority queue ordered by path cost • Equivalent to BFS if all step costs are equal

  42. Home NUH Work

  43. Home NUH Work

  44. Home NUH Work

  45. Home NUH Work

  46. Home NUH Work

  47. Home NUH Work

  48. Home NUH Work

  49. Home NUH Work

More Related