Go home

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

Example: Manhattan Distance

h(n,n)=xnxn+ynyn{h(n,n^\prime)=\left|x_{n^\prime}-x_n\right|+\left|y_{n^\prime}-y_n\right|}

Admissible? Yes

Consistent? Yes

Greedy Best First Search (GBFS)

A{A^*} Search

Beam Search