CSCI 260 Fall 2026: Lab: Binary Search Trees: AVL

This is a two-part lab for which there are deliverables in each of the two weeks.

Part I DUE one week after the lab is presented in the lab, for demonstration and git-submit. The instructor will test and provide limited feedback on correctness.

Part II is DUE two weeks after the lab is presented in the lab, for submission via git.

In this lab, you are to alter an implementaton of the Dictionary ADT that

  1. it works (as a Binary Search Tree) and
  2. so that it balances as per AVL Tree operations
-- i.e., a BST that balances by rotations to keep it in AVL-tree "balance" (no node has children whose height differs by more than one). Adapt the C++ files, header, and makefile files provided.


Part I is a Lab Demo of Working Subset I, to be demonstrated in the lab one week after the lab is introduced.

Submit the files via git.

Working Subset 1

  1. The BST is to have the "Find" option enabled within testapp.cpp.
  2. The fields BF and height are to be correctly maintained.
  3. The balance is to be maintained, and RightRotate and LeftRotate are working properly.


Part II is DUE two weeks after the lab is introduced (see week-by-week schedule for exact date):