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
2
u/nickbenn Apr 24 '13 edited Apr 24 '13
Notwithstanding creeping fuzziness in usage, a distance metric is not, per se, a heuristic. It's reasonable to refer to a distance metric (or estimate) as a "heuristic function", "heuristic value", "heuristic cost function", etc., but a heuristic is – by definition – a problem-solving or decision technique, not simply a measure by which we compare alternatives in such a technique.
It's one thing for practitioners to shorten "heuristic function" or "heuristic value" to "heuristic" as a kind of informal shorthand. However, I don't think it's a good idea to do so in a presentation or illustration used for educational or explanatory purposes.
Edit: Added "(or estimate)" to first paragraph, for clarity.