Skip to content

Commit

Permalink
Added DSET functions prototypes ina header file
Browse files Browse the repository at this point in the history
  • Loading branch information
nxvipin committed Oct 12, 2011
1 parent b39c196 commit 2ea7e4b
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions libraries/dsetlib.h
@@ -0,0 +1,20 @@
/*
* Array based Disjoint set for integers.
* @author: Vipin Nair <swvist@gmail.com>
* @copyright (c) 2011 Vipin Nair
* @license http://www.gnu.org/licenses/gpl.html GNU General Public License V3
*/

class dset{
private:
int *DSET;
int size;
int rank(int);
public:
dset(int);
~dset();
void makeSet(int);
int findSet(int);
void unionSet(int,int);
void displaySet();
};

0 comments on commit 2ea7e4b

Please sign in to comment.