Content deleted Content added
Line 72:
Disjoint-set data structures arise naturally in many applications, particularly where some kind of partitioning or [[equivalence relation]] is involved, and this section discusses some of them.
=== Finding the [[
Initially, we assume that every vertex in the graph is in its own connected component, and is not connected to any other vertex. To represent this, we use '''MakeSet''' to initially make a set for each vertex containing only that vertex.
|