Question: Given the above AVL tree, 1. Insert 36. Where will it be located? 2.After inserting 36, what is the balance factor of the node that

 Given the above AVL tree, 1. Insert 36. Where will it

Given the above AVL tree,

1. Insert 36. Where will it be located?

2.After inserting 36, what is the balance factor of the node that stores 36?

3. After inserting 36, what's the balance factor of A?

4. After inserting 36, what's the balance factor of B?

5. After inserting 36, what's the balance factor of C?

6. After inserting 36, what's the balance factor of D?

7. After inserting 36, what's the balance factor of E?

8. After inserting 36, what's the balance factor of J?

9. After inserting 36, what's the balance factor of K?

10. What imbalance case is present if any?

11. What rebalance action is applied?

12. Around which node is the rebalance action centered?

13. What's the value of A after the rebalancing action is applied?

14. What's the value of B after the rebalancing action is applied?

15. What's the value of C after the rebalancing action is applied?

16. What's the value of D after the rebalancing action is applied?

17. What's the value of E after the rebalancing action is applied?

18. What's the value of F after the rebalancing action is applied?

19. What's the value of H after the rebalancing action is applied?

20. What's the value of I after the rebalancing action is applied?

21. What's the value of J after the rebalancing action is applied?

22. What's the value of K after the rebalancing action is applied?

7 2 1 5 1

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!