Union-Find
Let a given set of N elements.
Assume we can union two element of this set.
How to find if two elements are "connected"?
Let a given set of N elements.
Assume we can union two element of this set.
How to find if two elements are "connected"?