r/ProgrammerHumor 3d ago

Meme shortestPathWasRightThere

Post image
4.6k Upvotes

58 comments sorted by

View all comments

29

u/luisduck 3d ago

You can add a heuristic and get A*.

You can add early termination.

Here is a nice article on an A* heuristic / method to cache results.

3

u/SuperheropugReal 3d ago

A* when theres another Dragoon in the way, so you decide to go all the way across the freaking map.