Comp 121 – Introduction to Data Structures. Spring 2000

Programming Assignment 4 -- Due April 25, 2000


Objective: To obtain experience in implementing the AVL algorithms.

Goal. To implement an AVL tree for storing integers.

As discussed in class, AVL search trees are binary search trees that satisfy an additional "balance" property. For this assignment, you are to implement (and test) an AVL search tree object for storing integers. Your AVL search tree object should support the following operations:

Structure of the program:

Your program should be implemented across (at least) three files – a header file (".h") containing the specifications of the AVL search tree, a separate implementation (".cpp") file implementing the AVL operations, and a client file that does the testing.

Rules for submitting this program:

All of the above should be placed in an envelope with your name and student-ID on the outside, and submitted at the beginning of class on the due date. Submissions will not be accepted after 10 minutes have elapsed from the start of class – no late submissions will be accepted without documented reasons.