Week 05 Lecture 01 AStar Reading Assignment
Week 05 Lecture 01 AStar Reading Assignment
Search Agents
Informed search
Informed search
• Example of strategies:
2. A* search
3. IDA*
Informed search
Heuristic!
The distance is the straight line distance. The goal is to get to Sault Ste Marie,
so all the distances are from each city to Sault Ste Marie.
Greedy search
Greedy search
Examples using the map
Start: Las Vegas
Goal: Calgary
Greedy search
A* search
• Combines:
– g(n): cost to reach node n
– h(n): cost to get from n to the goal
– f (n) = g(n) + h(n)
A*
Examples using the map
Start: Las Vegas
Goal: Calgary
A*
Admissible heuristics
• A heuristic h is admissible if
• Complete: Yes
• Time: exponential
• Optimal: Yes!
Heuristics
http://aima.cs.berkeley.edu/