CS 261 Lab I - Binary Tree Properties

Due Wed Apr 02 at 9:00am

Overview

In this lab you will practice writing methods for Binary Trees in order to explore a few additional concepts for this data structure. You will be working with the node-based version of a BinaryTree that we discussed in class, but you will be extending this class to add new functionality that describes the structure of the tree.

This lab will be completed in pairs. Partner assignments for this lab can be found on Moodle

Objectives

Necessary Files

You will need to download the copy of the BinaryTreeLab.zip file. This file contains a copy of the BinaryTree<E> class that we implemented in class (possibly with a few tweaks). You will need to import this class into Eclipse.

Assignment Details

Testing your Class

You should create and submit a Tester that demonstrates that your methods work. This is a good plan anyway, but it'll help us to see what you've done.

Extensions

There are plenty of extra analytical functionality you might add. Informative methods can be worth up to 3 extra credit points. Some examples:

Submitting

Make sure your names are in a class comment at the top of both your AnalyzableBinaryTree and your Tester, and upload them to the LabI submission folder on vhedwig. Make sure you upload your work to the correct folder! The lab is due at the start of class on the day after the lab.

After you have submitted your solution, log onto Moodle and submit the Lab I Partner Evaluation. Both partners need to submit evaluations.

Grading

This assignment will be graded out of 21 points: