/** Source code example for "A Practical Introduction to Data Structures and Algorithm Analysis, 3rd Edition (Java)" by Clifford A. Shaffer Copyright 2008-2011 by Clifford A. Shaffer */ /** General Tree class implementation for UNION/FIND */ class ParPtrTree { private Integer [] array; // Node array public ParPtrTree(int size) { array = new Integer[size]; // Create node array for (int i=0; i