SLIDE 76 The Method of Moments Example I Example II Example III Counterexample
Total costs in Union-Find-algorithms
Problem description
Merging rule:
◮ choose at random a spanning tree of complete graph with
vertex set S
◮ choose a random ordering of the edges of this spanning tree
by enumerating it from 1 to n − 1
◮ leads to sequence of edges e1 = (x1, y1), e2 = (x2, y2), . . . ,
en−1 = (xn−1, yn−1), with xi, yi ∈ S
◮ gives then sequence of Union-operations
Union(R[x1], R[y1]), Union(R[x2], R[y2]), . . . , Union(R[xn−1], R[yn−1])
◮ ⇒ all nn−2(n − 1)! possible sequence of Union-operations of
that kind are equally likely
41 / 64