Question: Implement the AA tree. Submit the code which inserts 10000 randomly-generated items into your binary search tree, prints the maximum depth of the tree and

Implement the AA tree. Submit the code which inserts 10000 randomly-generated items into your binary search tree, prints the maximum depth of the tree and prints all items in sorted order. Also, compare the timing of inserting 10000 items into a heap with the timing of inserting 10000 items into an AA tree. Also, count swaps that occur in a heap and the tree rotation/balancing operations. Report all of those statistics at your programs exit.

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!