Groups
Category
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.
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.