Skip to content

Latest commit

 

History

History
41 lines (31 loc) · 1.34 KB

union-find.md

File metadata and controls

41 lines (31 loc) · 1.34 KB

UnionFind

A UnionFind data structure used to keeps track of a set of elements partitioned into a number of disjoint (non-overlapping) subsets.

API

abstract class AbstractUnionFind {
  count: number;
  constructor(...items?: any[]);
  find(item: any);
  connected(itemA: any, itemB: any): boolean;
  union((itemA: any, itemB: any);
  sets(): [][];
}

Implementations

Resources