Question: In C++ implement containers based on BST and AVL trees and compare their performance. Also, we practice using basic inheritance. Create a Second class for
In C++ implement containers based on BST and AVL trees and compare their performance. Also, we practice using basic inheritance. Create a Second class for AVL. AVL tree Implement a class template AVL
Implement a class template BST
Default constructor that initializes empty container.
Destructor. Make sure destructor avoids memory leaks.
Height() function returns the height of the tree.
Size() function returns the number of items in container.
Print() function that prints the content of the container sorted in ascending order.
Subscripting operator (operator[]) that returns a reference to the item.
Insert( const Type & ).
Remove( const Type & ).
Copy assignment operator.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
