Spanning Tree Problems
Again, you need to be able to know and use these algorithms:
Prim's Algorithm
- Start with any vertex
- Add in the edge of least weight to start forming a tree
- Repeat 2. until all vertices are connnected
Kruskal's Algorithm
- Select the edge of smallest weight
- Add any [not necessarily connected] edge of minimum weight which doesn't form a cycle
- Repeat 2. until all vertices are connected