September 2019
Intermediate to advanced
816 pages
18h 47m
English
The Union Find algorithm operates on a disjoint-set data structure.
A disjoint-set data structure defines sets of elements separated in certain disjoint subsets that are not overlapping. Graphically, we can represent a disjoint-set with three subsets, as in the following diagram:

In the code, a disjoint-set is represented as follows: