1.4 KiB
1.4 KiB
id | title | author | prerequisites | description | |
---|---|---|---|---|---|
dsu | Disjoint Set Union | Benjamin Qi, Michael Cao |
|
The Disjoint Set Union (DSU) data structure allows you to add edges to an initially empty graph and test whether two vertices of the graph are connected. |
Tutorial
- CPH 15.2
- PAPS 11.1
- Chapter 10.6 of "An Introduction to the US Computing Olympiad"
- CSAcademy Disjoint-Set
- Topcoder Union Find
- CPC.3
- DSU Complexity Proofs (optional of course)
with rollback: https://codeforces.com/contest/1140/problem/F
Problems
- Mootube
- same as CSES Road Construction
- Closing the Farm
- CSES Network Breakdown
- Favorite Colors
- fairly tricky