CSC 7000 - Algorithms and Programming

Project #10

Reports Due Monday, April 29, 2002

Extend the binary tree implementation discussed in class with the following methods:

  1. void printPreOrder() prints the tree using preorder traversal
  2. void printPostOrder() prints the tree using postorder traversal
  3. int height() computes and returns the height of the tree. Height of an empty tree is defined to be -1
  4. int max() returns the maximum element
  5. int min() returns the minimum element

In the report include: