CS 311 Fall 2009  >  Assignment 7

CS 311 Fall 2009
Assignment 7

Assignment 7 is due at 5 p.m. Tuesday, November 24. It is worth 25 points.

Procedures

This is a group assignment. Please work in a group of 2 or 3. Each group only needs to turn in a single copy of the assignment. Under normal circumstances, each will receive the same grade on the assignment.

E-mail answers to the exercises below to ffggc@uaf.edu, using the subjectDA7”.

Exercises (25 pts total)

Exercise A — Binary Search Tree Class Template

Purpose

In this exercise, you will write a simple Binary Search Tree. It will be able to retrieve and insert by key, do the three standard traversals, and copy itself.

Instructions

Implement a C++ class template that manages a Binary Search Tree holding keys without associated data. The type of key should be specified by the client code. Be sure to follow the coding standards. All standards apply.

Test Program

I have written a test program: bstree_test.cpp. If you compile and run your package with this program (unmodified!), then it will test whether your code works properly.

Do not turn in bstree_test.cpp.

Notes


CS 311 Fall 2009: Assignment 7 / Updated: 23 Nov 2009 / Glenn G. Chappell / ffggc@uaf.edu Valid HTML 4.01!