Skip to content

Kruskal's cheapest links

networks

Level 2 of 3

Also called Kruskal's algorithm and Minimum spanning forest.

Joins every place to every other with the least road in all, as when wiring a town. Take the roads from the shortest up, keeping each one that joins two groups of places not yet joined, and leaving out each one that would only close a loop.

comparisons to order the roads
0
roads looked along
0
roads kept
0

step 1 of 1

Examples

Tap a spot to put your pen down there, then tap a spot next to it to draw a road. Keep tapping to draw on.

Places stand in two rows, A to D above and E to H below. A road joins two places next to each other (one road across each square), with its length from 1 to 99, such as A-B 4. Separate roads with commas, for example A-B 4, B-F 2, A-E 3, E-F 1.