Содержание
- 2. Best-First Search Review Advantages Takes advantage of domain information to guide search Greedy advance to the
- 3. The A* Algorithm Consider the overall cost of the solution. f(n) = g(n) + h(n) where
- 4. The A* Algorithm A*-Search(initial-test) ;; functions cost, h, succ, and GoalTest are defined open ;; (state,
- 5. A* Search: Example Travel: h(n) = distance(n, goal) 71 142 85 90 101 97 99 140
- 6. A* Search : Example
- 7. Admissible Heuristics we also require h be admissible: a heuristic h is admissible if h(n) where
- 8. Optimality of A* Let us assume that f is non-decreasing along each path if not, simply
- 9. Completeness of A* Suppose there is a goal state G with path cost f* Intuitively: since
- 10. UCS, BFS, Best-First, and A* f = g + h => A* Search h = 0
- 11. Road Map Problem s g h(s) n h(n) n’ h(n’) g(n’)
- 12. 8-queens State contains 8 queens on the board Successor function returns all states generated by moving
- 13. Heuristics : 8 Puzzle
- 14. 8 Puzzle Reachable state : 9!/2 = 181,440 Use of heuristics h1 : # of tiles
- 15. Effect of Heuristic Accuracy on Performance Well-designed heuristic have its branch close to 1 h2 dominates
- 17. A* summary Completeness provided finite branching factor and finite cost per operator Optimality provided we use
- 18. Relax Optimality Goals: Minimizing search cost Satisficing solution, i.e. bounded error in the solution f(s) =
- 19. Iterative Deepening A* Goals A storage efficient algorithm that we can use in practice Still complete
- 20. IDA* Algorithm IDA* (state,h) returns solution f-limit loop do solution, f-limit ? DFS-Contour(state, f-limit) if solution
- 21. IDA* Properties Complete: if shortest path fits into memory Optimal: if shortest optimal path fits into
- 23. Скачать презентацию