r/programming • u/hazadess • Apr 23 '13
PathFinding algorithm, visually explained
http://qiao.github.io/PathFinding.js/visual/
2.2k
Upvotes
r/programming • u/hazadess • Apr 23 '13
View all comments
Show parent comment
8
u/mccoyn Apr 24 '13
A* typically requires that the heuristic does not overestimate the remaining distance. Without that qualification, it is not guaranteed to find the shortest path.
By multiplying the heuristic by some large number, it overestimates, the algorithm is not A* and it might find a path that is longer than the shortest possible.