heuristic search
play

Heuristic Search 1/25/17 Generic search algorithm add start to - PowerPoint PPT Presentation

Heuristic Search 1/25/17 Generic search algorithm add start to frontier while frontier not empty get state from frontier if state is goal return end if for neighbor of state add neighbor to frontier end for end while Uninformed Search


  1. Heuristic Search 1/25/17

  2. Generic search algorithm add start to frontier while frontier not empty get state from frontier if state is goal return end if for neighbor of state add neighbor to frontier end for end while

  3. Uninformed Search Informed Search Given only the problem Given: definition: • problem definition • start state • heuristic estimate of the • goal function cost-to-goal • action function Greedy Depth First • frontier ordered by h(s) • FIFO frontier A* Breadth First • frontier ordered by h(s) + c(s) • LIFO frontier Uniform Cost • frontier ordered by c(s) h(s): heuristic value of state s c(s): cost to get to state s

  4. Measuring Performance • Completeness : Is the search guaranteed to find a solution (if one exists)? • Optimality : Is the search guaranteed to find the lowest-cost solution (if it finds one)? • Time complexity : How long does it take to find a solution? • How many nodes are expanded? • Space complexity : How much memory is needed to perform the search? • How many nodes get stored in frontier + visited

  5. Example domain: Given a Romanian road map, navigate from Arad to Bucharest

  6. Example domain: h ( A ) = 366 Given a Romanian road map, h(C) = 160 navigate from Arad to Bucharest h(D) = 242 h ( F ) = 178 h(L) = 244 h(M) = 241 h ( O ) = 380 h ( P ) = 98 h ( R ) = 193 h ( S ) = 253 h ( T ) = 329 h ( Z ) = 374

  7. Example domain: Given a Romanian road map, navigate from Arad to Bucharest

  8. Example domain: h ( A ) = 366 Given a Romanian road map, h(C) = 160 navigate from Arad to Bucharest h(D) = 242 h ( F ) = 178 h(L) = 244 h(M) = 241 h ( O ) = 380 h ( P ) = 98 h ( R ) = 193 h ( S ) = 253 h ( T ) = 329 h ( Z ) = 374

  9. Devising Heuristics • Must be admissible : never overestimate the cost to reach the goal. • Should strive for consistency : h(s) + c(s) non- decreasing along paths. • The higher the estimate (subject to admissibility), the better. Key idea: simplify the problem. • Traffic Jam: ignore some of the cars. • Path Finding: assume straight roads.

  10. Discussion Questions Why does A* need an admissible heuristic? a) required for completeness b) required for optimality c) improves time complexity d) improves space complexity e) some other reason A* with an uninformative heuristic (such as the zeroHeuristic from lab) is equivalent to: a) breadth first search b) depth first search c) uniform cost search d) greedy search e) none of these

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend