The shortest route
through every station.
Every cable costs money. Can you connect an entire district without wasting a single metre? Draw your network, inspect the mathematics, then stress-test your design.
The survey table
Estuary exchange
Every listed connection is available to install. Distances recalculate when a station moves.
Put your thinking to work.
Preparing missions…
Smallest network.
Big idea.
For an undirected, connected network with n stations, a spanning tree touches every station using exactly n − 1 cables. It has no cycles. A minimum spanning tree (MST) is the one with the smallest total cable length.
Kruskal's algorithm sorts the available cables by length, adding each one only if it joins two previously separate groups. This greedy method finds a globally optimal spanning tree.
Real-world use: The same idea helps plan telecommunications cabling, rural fibre links and initial pipe-network layouts. Actual infrastructure also needs reliability, capacity and terrain considerations—try the failure test to see one limitation of a minimum tree.
Direct straight-line cable length in km; x and y are schematic map units.
For an undirected graph, c is the number of connected components. A broken tree edge creates two components.