This repository has been archived on 2022-06-22. You can view files and clone it, but cannot push or open issues or pull requests.
usaco-guide/content/5_Gold/DSU.md

25 lines
1 KiB
Markdown
Raw Normal View History

2020-06-22 01:45:24 +00:00
---
id: dsu
title: "Disjoint Set Union"
author: ?
prerequisites:
---
## Tutorial
- Requires "Disjoint Set Union" (DSU) data structure
- [CSAcademy Disjoint-Set](https://csacademy.com/lesson/disjoint_data_sets)
- [Topcoder Union Find](https://www.topcoder.com/community/data-science/data-science-tutorials/disjoint-set-data-structures/)
- [CPC.3](https://github.com/SuprDewd/T-414-AFLV/tree/master/03_data_structures)
- DSU Complexity Proofs (optional of course)
- [log\*n](https://en.wikipedia.org/wiki/Proof_of_O(log*n)\_time_complexity\_of_union%E2%80%93find)
- [a(m,n)](https://dl.acm.org/doi/pdf/10.1145/321879.321884)
## Problems
- [Mootube](http://www.usaco.org/index.php?page=viewproblem2&cpid=789)
- same as [CSES Road Construction](https://cses.fi/problemset/task/1676)
- [Closing the Farm](http://www.usaco.org/index.php?page=viewproblem2&cpid=646)
- [CSES Network Breakdown](https://cses.fi/problemset/task/1677)
- [Favorite Colors](http://www.usaco.org/index.php?page=viewproblem2&cpid=1042)
- fairly tricky