{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

ufmain - main(int argc char argv Gentree gt = new...

Info icon This preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
#include <iostream> // for cout calls #include <stdlib.h> #define ROOT -1 // Collect together the UNION/FIND functions #include "uf.h" using namespace std; // for string declaration
Image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: main(int argc, char** argv) { Gentree* gt = new Gentree(10); gt->UNION(1, 2); cout << gt->differ(0, 1) << endl; cout << gt->differ(2, 1) << endl; }...
View Full Document

{[ snackBarMessage ]}