Lecture Notes for CS 512, Algorithm Design
Minimum Spanning Trees - 26 January 2000
- spanning trees
- both bfs and dfs produce spanning trees
- unconnected or directed graphs are problematic
- minimum weight spanning trees over weighted graphs
- the generic minimum spanning tree (mst) algorithm - cuts and greed
- cuts - a form of divide and conquer
- the mst unifies vertices into a connected tree
- a cut partitions vertices into disconnected parts
- any respecting cut indicates places where more work is needed
- cuts are an important concept in graph algorithms (flow problems)
- greed - which edge across a respecting cut to choose?
- is the minimum edge across a respecting cut an acceptable choice?
- kruskal's mst algorithm - bottom up
- define the cut to include the lowest weight edge not yet in the mst
- if the cut is safe, add the edge to the mst
- if no such cut is safe, discard the edge
- prim's mst algorithm - top down
- define the cut to be the frontier of the mst
This page last modified on 31 January 2000.