Disjoint-set data structure: Difference between revisions

Content deleted Content added
Dcoetzee (talk | contribs)
External links: Small fix
Dcoetzee (talk | contribs)
m Remove redundancy
Line 1:
In [[computer science]], a '''disjoint-set data structure''' is a [[data structure]] that assigns each element in a set to one of a number of disjoint (nonoverlapping) groups of elements. A '''union-find algorithm''' is a way of performing two critical operations on such a data structure:
* '''Find''': Determine which group a particular element is in.
* '''Union''': Combine two groups into a single group.