Question: Python programming: 20.2 (Comparing performance) Write a test program that randomly generates 500000 numbers and inserts them into a BinaryTree, reshuffles the 500000 numbers and
Python programming:
20.2 (Comparing performance) Write a test program that randomly generates 500000 numbers and inserts them into a BinaryTree, reshuffles the 500000 numbers and performs search, and reshuffles the numbers again before deleting them from the tree. Write another test program that does the same thing for an AVLTree. Compare the execution times of these two programs. 20.2 (Comparing performance) Write a test program that randomly generates 500000 numbers and inserts them into a BinaryTree, reshuffles the 500000 numbers and performs search, and reshuffles the numbers again before deleting them from the tree. Write another test program that does the same thing for an AVLTree. Compare the execution times of these two programs
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
