Skip to content
StackDecode
GraphsExplained

A* Search Algorithm

Dijkstra guided by a heuristic estimate of the remaining distance.

Time

O(E) with a good heuristic

Extra space

O(V)

Use it for

Game and map pathfinding.

An animated walkthrough for this algorithm isn’t built yet. The summary above explains the idea; see the related animated algorithms below to practise the same technique.