Project: Traditional Red-Black Trees

Recall that the description of the AVL tree project contains information about the series of projects that includes this one and the next, as well as the set-up and the code base.

1. Introduction

The goal of this project is to understand and implement the rotations that maintain the properties of traditional red-black trees. This project appears in the book as Project 5.3 on page 407.

2. Traditional red-black trees

As described in part a, finish the method TradRBBalancer.putFixup(). Test using TRBBSTMTest.

Part b not assigned.

3. Turn in

Copy the files you modified (BSTMap.java and TradRBBalancer.java) to your turn-in folder /cslab/class/cs345/(your id)/trad-rb .

To keep up with the course, this should be finished by March 30.


Thomas VanDrunen
Last modified: Mon Mar 16 16:04:59 CDT 2020