|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.ls5.jlearn.util.UnionFind
public class UnionFind
| Constructor Summary | |
|---|---|
UnionFind(int n)
|
|
| Method Summary | |
|---|---|
int |
find(int x)
|
boolean |
findAndUnite(int x,
int y)
|
void |
union(int p,
int q)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UnionFind(int n)
| Method Detail |
|---|
public void union(int p,
int q)
public int find(int x)
public boolean findAndUnite(int x,
int y)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||