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
4
u/mccoyn Apr 24 '13
No. This demo shows path finding on an equal-cost map. If GPS navigation systems used equal-cost maps they would keep telling you to take shortcuts down side streets, which would be very annoying. Navigation systems assign lower costs to highways and major roads so you have an easy to follow route, not just the shortest possible. Some of these algorithms can be adapted to nonequal-cost maps and some can't.