Informed Search
Uniform Cost Search (UCS)
Also known as Dijkstra's algorithm, UCS is similar to BFS except instead of maintaining a constant depth as it explores new nodes, it explores the next cheapest edge, keeping a (roughly) constant cost across its frontier. To achieve this, it is simply BFS but instead of a queue, it uses a priority queue where the priority is based on cost.
Heuristic Functions
- Estimate how good the next state is
- Admissible: never overestimate the cost to the goal
- Consistent:
Example: Manhattan Distance
Admissible? Yes
Consistent? Yes
Greedy Best First Search (GBFS)
- Explore the neighbor with the best heuristic
- Same as Uniform Cost Search, except in the priority queue instead of the cost and weight
Search
- Use the heuristic and cost to explore the closest node
- Always finds the shortest path with a consistent heuristic function
- Push to priority queue
Beam Search
- Only explore best nodes
- Incomplete and suboptimal search