CSCI2740 · Method · Chapter 18 · Minimum spanning trees
Prim's algorithm
3 steps of prerequisites below it
Prim's algorithm grows one tree from a root by repeatedly adding a minimum-weight edge with exactly one endpoint in the tree, using a heap of candidate edges in O(m log m) time.
Taught in
Builds on
- Cut property · used in an argument or worked solution, passage 18.1
Used by
No later knowledge point in these notes uses it.
Everything this builds on, earliest first · 5 steps
Each step comes after its own prerequisites, so reading in this order never needs something you have not met. It is a reading order for these notes, not a diagnosis of what you know.
- Spanning tree · 18.1
- Minimum spanning tree · 18.1
- Cut · 18.1
- Exchange argument · 18.1
- Cut property · 18.1
Possible roots and a review route need your own answers on these points. None are recorded yet, so none are suggested.
Longest chain down to a starting point
Each step is used by the one above it, across courses where the notes link them. It ends at a point the notes define without another point.