Deep Dive
Prim's Algorithm
1584. Min Cost to Connect All Points · Spanning trees · 76 of 78
1/13
Start at A
In this lessonStep 1 of 13 · ← → keys
The question
Connect every city with the cheapest total road cost, this time by growing one connected group from a start city, always taking the cheapest road that leaves it.