Labs / Computer Science

Minimum Spanning Tree

A minimum spanning tree connects every node using the least total edge weight possible. Press Play to watch the algorithm consider edges cheapest-first — green when an edge joins the tree, red when it would close a wasteful cycle. Drag nodes to reshape the graph, or switch to Connect mode to wire up your own edges.

Labs / Computer Science / Minimum Spanning Tree

Computer Science20–30 minFoundation

Minimum Spanning Tree

A minimum spanning tree connects every node using the least total edge weight possible. Press Play to watch the algorithm consider edges cheapest-first — green when an edge joins the tree, red when it would close a wasteful cycle. Drag nodes to reshape the graph, or switch to Connect mode to wire up your own edges.

Why it matters

Why explore this?

Computer science turns clear rules into reliable processes. This model lets you step through those rules and see how each decision changes the result.