A* search
A* is a modification of Dijkstra’s Algorithm that is optimized for a single destination. Dijkstra’s Algorithm can find paths to all locations; A* finds paths to one location, or the closest of several locations. It prioritizes paths that seem to be leading closer to a goal. - Red Blob Games / Introduction to A*
see also
- SAILORS Tutorial: Graph Search Algorithms
- A* (A-Star) Pathfinding Algorithm Visualization on a Real Map
Finding One of Many Goals
Simulator
Written on May 24, 2019, Last update on April 28, 2024
algorithm
search
graph
ruby
pathfinding