How does Dijkstra's Algorithm and A-Star compare?

KingNestor picture KingNestor · Aug 26, 2009 · Viewed 79.2k times · Source

I was looking at what the guys in the Mario AI Competition have been doing and some of them have built some pretty neat Mario bots utilizing the A* (A-Star) Pathing Algorithm.

alt text
(Video of Mario A* Bot In Action)

My question is, how does A-Star compare with Dijkstra? Looking over them, they seem similar.

Why would someone use one over the other? Especially in the context of pathing in games?

Answer

leiz picture leiz · Aug 26, 2009

Dijkstra is a special case for A* (when the heuristics is zero).