Package Struct

Class DSU

java.lang.Object
Struct.DSU

public class DSU extends Object
Represents a Disjoint Set Union (DSU) also known as Union-Find data structure. It supports union and find operations, to determine which set a particular element is in, and to unite two sets if they are disjoint.
Since:
1.0
Version:
1.0
Author:
Sahasrad Chippa