|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ibm.wala.util.intset.IntegerUnionFind
public class IntegerUnionFind
An implementation of Tarjan's union-find, using path compression and balancing, for non-negative integers
| Constructor Summary | |
|---|---|
IntegerUnionFind()
|
|
IntegerUnionFind(int size)
|
|
| Method Summary | |
|---|---|
int |
find(int x)
|
int |
size()
|
void |
union(int x,
int y)
union the equiv classes of x and y |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IntegerUnionFind()
public IntegerUnionFind(int size)
size - initial size of the tables| Method Detail |
|---|
public void union(int x,
int y)
public int find(int x)
x -
public int size()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||