Algorithm Analysis (CSC 301 2015F) : Outlines
Primary: [Front Door] [Schedule] - [Academic Honesty] [Disabilities] [Email] [FAQ] [IRC] [Teaching & Learning]
Current: [Outline] [EBoard] [Reading] [Lab] [Assignment]
Sections: [Assignments] [EBoards] [Examples] [Handouts] [Labs] [Outlines] [Readings]
Reference: [Algorist]
Related Courses: [Walker (2014F)]
Misc: [SamR] [Glimmer Labs] [CS@Grinnell] [Grinnell] [Issue Tracker]
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
sort the edges by weight
while the graph is not connected
find the smallest weight edge that connects two components
m rounds. At each round we inspect an edge and decide whether or
not to add it to the MST.Union(s1,s2): Given two sets, destructively create their union. (I'd
call this merge, but that's me.Find(v): Determine what set a value is in.