Ufsmain - Gentree gt = new Gentree(10 gt>UNION(1 2 cout<< gt>differ(0 1<< endl cout<< gt>differ(2 1<< endl return 0}

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

View Full Document Right Arrow Icon
#include <iostream.h> #include <stdlib.h> #include "book.h" #define ROOT -1 // Collect together the UNION/FIND functions #include "ufs.h" int main(int argc, char** argv) {
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

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

This note was uploaded on 01/19/2010 for the course CSC 375 taught by Professor Turner during the Spring '09 term at University of Michigan-Dearborn.

Ask a homework question - tutors are online