r/programming • • Apr 23 '13

PathFinding algorithm, visually explained

http://qiao.github.io/PathFinding.js/visual/
2.2k Upvotes

230 comments sorted by

View all comments

Show parent comment

2

u/Noctune Apr 24 '13 edited Apr 24 '13

This demo shows path finding on an equal-cost map.

Nope, diagonal moves cost sqrt(2) times more than a vertical/horizontal move. If it didn't, Dijkstra and Breadth-First search would be identical.