- Crate a template for Binary Search Tree.
- We don't use the ADT from the book, which uses iterative
algorithms and a key field.
- See LEC12.doc and LEC14-15.doc
- last two statements in Search should have a return. e.g.
return Search(t->LeftChild, x);
- Modify the template for BSTree in binary.h and btnode2.h
- Add an extra data member called parent in btnode2.h
- Add an extra data member called current in BSTree
- Modify the constructors for BSTree and BinaryTreeNode to
account for two additional data members
- Modify the private insert so that it takes three
parameters as shown in LEC14-15.doc
- Modify the prune as shown in LEC14-15.doc
- Make sure that you have appropriate return statements for
Insert and Delete
- Test the template using the driver program for Assignment
#2.
- Use Binary Search Tree istead of Hash Table. - You will
have to omit the output operator for BSTree for this lab.
- When we do the class assignment, we will fix this problem.