Press Run to watch depth-first search explore this grid from A: it follows one path as far as it can, then backs up to try the next way. The stack shows the path it’s on.
Worked examples: Dijkstra’s algorithm · Breadth-first search · Depth-first search · Topological sort · Minimum spanning tree