from AtCoder Library Practice Contest ACLPC_A A - Disjoint Set Union
- The so-called UnionFind.
- Creating a tree allows us to efficiently add edges and determine if they are connected or not.
This page is auto-translated from [/nishio/ACLPC A](https://scrapbox.io/nishio/ACLPC A) using DeepL. If you looks something interesting but the auto-translated English is not good enough to understand it, feel free to let me know at @nishio_en. I’m very happy to spread my thought to non-Japanese readers.