edu.stanford.math.clustering
public class DisjointSetSystem extends java.lang.Object
protected int[]
parents
ranks
DisjointSetSystem(int n)
int
find(int x)
size()
void
union(int x, int y)
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
protected int[] parents
protected int[] ranks
public DisjointSetSystem(int n)
public void union(int x, int y)
public int find(int x)
public int size()