For the AVL Tree what values could you insert to cause a right-left imbalance and at which node does the imbalance occur? Please show and explain based on the tree provided
For the AVL Tree what values could you insert to cause a right-left imbalance and at which node does the imbalance occur?
Please show and explain based on the tree provided.
AVL tree is a type of self balanced binary tree which contains balancing factor for each node as 1,-1 or 0. Balancing factor is the height of left sub tree minus right sub tree. If any node contains balancing factor other than -1, 1 or 0 then it is said to be imbalanced.
Step by step
Solved in 3 steps with 2 images
The question I sent was asking for a right-left imbalance not a right-right imbalance, would it be possible to rectify the solution?
So to reiterate...
For the AVL Tree what values could you insert to cause a right-left imbalance and at which node does the imbalance occur?
Please show and explain based on the tree provided.