Algorithm Analysis (CSC 301 2015F) : Outlines

Outline 28: Sets and Union-Find


Held: Friday, 6 November 2015

Back to Outline 27 - Minimum Spanning Trees, Continued. On to Outline 29 - Shortest Paths.

Summary

We consider some details to make Kruskal's algorithm more efficient.

Related Pages

Overview

Administrivia

Extra Credit

Academic

Peer

Analyzing Kruskal's Algorithm, Revisited

sort the edges by weight
while the graph is not connected
  find the smallest weight edge that connects two components

Sets

Union-Find