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

17

u/Nanobot Apr 24 '13

The demo doesn't mark every cell the algorithm looks at, only the cells that the algorithm considers potential forks in the road. The smart thing about JPS is it's designed to be good at recognizing when cells aren't really forks in the road, so it requires much less recursion.

1

u/omnilynx Apr 25 '13

So in other words, "operations" in this context isn't the atomic steps we'd normally think of but rather how many times the branching function is called.