UnionFind1 1717 set expression (집합의 표현) with Union-Find in Python3 0. Background To explain why this problem should be solved with union-find not Set in Python. 1. Union-Find 1-1. What is it? A data structure to handle data that is splited in subsets. It is also a sort of disjoint-set. 1-2. How does it work? As the name sounds like, this algorithm is used to get disjoint-set by unioning nodes and finding parents. 1-2-1. Find Find is implemented with a recursive.. 2023. 4. 23. 이전 1 다음