Concepts3
ποΈData StructureAdvanced
Dominator Tree
A dominator tree summarizes βmust-passβ relationships in a directed graph from a chosen root r: u dominates v if every path from r to v goes through u.
#dominator tree#lengauer tarjan#semidominator+10
ποΈData StructureIntermediate
DSU with Weighted Edges
A DSU with weighted edges (also called a potential or difference-constraint union-find) maintains relative values between elements while still supporting near-constant-time merges and finds.
#dsu#union-find#weighted edges+11
ποΈData StructureIntermediate
Disjoint Set Union (Union-Find)
Disjoint Set Union (Union-Find) maintains a collection of non-overlapping sets and supports fast merging and membership queries.
#disjoint set union#union-find#path compression+11