Imagine laying cable to connect every building for the least total length. Press Run to watch Kruskal’s algorithm take the lightest edge that doesn’t make a loop, until every node is joined.
Worked examples: Dijkstra’s algorithm · Breadth-first search · Depth-first search · Topological sort · Minimum spanning tree