Class FastDisjointSet<T>

  • All Implemented Interfaces:
    DisjointSet<T>

    public class FastDisjointSet<T>
    extends Object
    implements DisjointSet<T>
    Disjoint forest with path compression and union-by-rank. The set is unmodifiable except by unions.
    Version:
    4/17/01
    Author:
    Dan Klein
    • Constructor Detail

      • FastDisjointSet

        public FastDisjointSet​(Set<? extends T> objectSet)