Class Salsa.UnionFind

java.lang.Object
it.unimi.dsi.law.rank.Salsa.UnionFind
Enclosing class:
Salsa

protected static final class Salsa.UnionFind
extends Object
  • Field Details

    • components

      public int components
  • Constructor Details

    • UnionFind

      public UnionFind​(int n)
  • Method Details

    • find

      public int find​(int x)
    • unite

      public boolean unite​(int p, int q)