Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1 . Develop a program that can be used to test an implementation of BinaryTreeInterface. 2 . Repeat the previous problem, but assume that the

1 . Develop a program that can be used to test an implementation of BinaryTreeInterface.

2 . Repeat the previous problem, but assume that the implementation represents a binary search tree To test:

------USING C++ , no sorting libraries. Im learning how to do these by scratch-------

Randomly generate 100 unique values in the range of [1-200] and insert them into a binary search tree (BST1).

Print height and inorder output of the BST1 tree.

Randomly generate 10 unique values in the range of [1-200] where there is an overlap with the previous values and insert them into another binary search tree (BST2).

Print preorder, inorder, and postorder output of the BST2 tree.

Find and remove any values of BST2 from BST1.

Print height, number of nodes, and inorder output of the modified BST1 tree.

Clear the binary search trees.

Print whether trees are empty before and after clear operation.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Build It For The Real World A Database Workbook

Authors: Wilson, Susan, Hoferek, Mary J.

1st Edition

0073197599, 9780073197593

More Books

Students also viewed these Databases questions