Question: The following nodes are inserted into a tree: 5 2 , 7 6 , 3 4 , 7 1 , 6 2 , 5 5

The following nodes are inserted into a tree: 52,76,34,71,62,55,22,58,39,48.
Create the corresponding:
Binary Search Tree
AVL Tree
For both binary search tree and AVL tree show the final tree after all nodes are
inserted. For the AVL tree, also show the tree before and after each rotation while
highlighting the balance factor of each node, positions x, y and z along with
(a,b,c) and (T1, T2, T3, T4).
Discuss your progress with your Tutor during practical sessions.
What to include in your Portfolio:
Report - Activity 2: Include in your report the resulting binary search tree
and AVL tree. For the AVL tree, show the tree before and after each
rotation while highlighting the balance factor of each node, positions x, y
and z along with (a,b,c) and (T1, T2, T3, T4)

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!