Question: Implement a generic binary tree and a generic binary search tree where the data is stored in a STL vector. Steps 1. Inherit a class
Implement a generic binary tree and a generic binary search tree where the data is stored in a STL vector.
Steps
1. Inherit a class "binaryTree" from binaryTreeInterface.h and overload all the functions. When adding and removing items, the order doesn't matter at all. You can add anywhere in the tree and move items around when removing an item if you need to.
2. Inherit a class "binarySearchTree" from "binaryTree" of the previous step or the binaryTreeInterface.h and overload at least the addNode, remove_one, and remove_all functions. Remember that in a binary search tree, in-order traversal of the tree visits the items in the increasing order.

#ifndef BINARYTREEINTERFACE_A #define BINARYTREEINTERFACE_A 4 template
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
