Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Full C++ Code Basic Setup : Implement or adapt a BST class (preferred) or a pack

ID: 3772778 • Letter: F

Question

Full C++ Code

Basic Setup: Implement or adapt a BST class (preferred) or a package of data structures and functions that contains implementation of the following operations on BSTs: inorder/preorder/postorder walk, search, maximum, minimum, predecessor, successor, insert and delete. You also need to include testing code to verify the correctness of your program. Assume that each node in a BST has at least four fields: key, p, left, and right, representing the key value, and parent, left, and right child nodes of the given node. In addition, key values of all nodes in a BST are assumed to be integers.

Explanation / Answer

The following code created a binary search tree and perform the following operations: