Everything About ___
Live briefing

Everything about Disjoint-set data structure

Data structure for storing non-overlapping sets

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, and finding a representative member of a set. The last operation makes it possible to determine efficiently whether any two elements belong to the same set or to different sets. Wikipedia →

đź§­ Start here: a 6-step reading path

  1. Read the overview: Disjoint-set data structureA 5-minute orientation
  2. Pick up a classic book: Introduction to AlgorithmsThe most-reprinted book on the subject
  3. Read the landmark paper: Data structures and algorithms for disjoint set union problemsCited 134 times
  4. Go sideways: Tarjan's off-line lowest common ancestors algorithmA closely related topic
  5. Go sideways: Link/cut treeA closely related topic

đź“– Definitions

No dictionary entry for this exact phrase.

🏆 Landmark papers (most cited)

📚 Books worth reading

Ranked by number of editions on Open Library, a rough measure of how lasting a book is.

đź”— Related topics