In computer science, a disjoint-set data structure, also called a unionâfind data structure or mergeâfind set, is a data structure that stores a collection of disjoint (non-overlapping) sets. Equivalently, it stores a partition of a set into disjoint subsets. It provides operations for adding new sets, merging sets (replacing them with their union), and finding a representative member of a set. Th
{{#tags}}- {{label}}
{{/tags}}