CS 153 Data Structures I

Assignment #12

Due: 11/8/01

Purpose: to learn about removing a node from a binary search trees (BST)

Testing: You will be asked to show removals of all the different cases (0, 1 and 2 children) maybe involving the Root.

Interface: The Visual interface should have the following components

BST member functions:


Optional

If you do this portion successfully your team will be awarded an extra late free pass

Build the BST class with iterator capability. An iterator capability involves having functions

If you have this capabilty, then Display() should be a 'user function' coded in the ...Dlg class and you should remove BST::Display function.

In class we will discuss how to build the iterator functions. This capability will involve the use of a stack that holds data of type Node *. For this stack you may use choose from: