390 likes | 582 Views
Comp 750, Fall 2009. Disjoint Sets - 2. Using Linked Lists. Store set {a, b, c} as:. . a. . . b. . . c. . Make-Set and Find-Set are O(1).. Union(x, y): Append x's list onto the end of y's list. Update representative pointers in x's list.Time is linear in |x|.Running time for a sequence of m o
E N D