Skip to content

Prim's cheapest links

networks

Level 2 of 3

Also called Prim's algorithm and Minimum spanning tree.

Joins every place to every other with the least road in all, as when wiring a town. Grow one tree from the start, each time adding the cheapest road from the tree to a place not in it yet.

roads looked along
0
places weighed up
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: A-B 4. Separate roads with commas, then a semicolon and where to start: A-B 4, B-F 2, A-E 3; A.