C# Class UnionFindSample.DisjointUnionSets

Show file Open project: shendongnian/code Class Usage Examples

Public Methods

Method Description
DisjointUnionSets ( int n ) : System
Find ( int x ) : int
MakeSet ( ) : void
Union ( int x, int y ) : void

Method Details

DisjointUnionSets() public method

public DisjointUnionSets ( int n ) : System
n int
return System

Find() public method

public Find ( int x ) : int
x int
return int

MakeSet() public method

public MakeSet ( ) : void
return void

Union() public method

public Union ( int x, int y ) : void
x int
y int
return void