Question: Extra Credit ( 1 0 Points ) : Write a test program that randomly generates 5 0 0 , 0 0 0 numbers and inserts

Extra Credit (10 Points): Write a test program that randomly generates 500,000 numbers and inserts them into a BST, reshuffles the 500,000 numbers and performs a search, and reshuffles the numbers again before deleting them from the tree. Do the same thing using an AVL tree. Make sure to have the program compare the running times for completing all of these tasks for these two different trees.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!