01-04-2012, 10:27 PM
Balance of the AVL tree = (height of left subtree) – (height of right subtree)
As there is no left child of node 1, and height of right subtree is 2.
So balance factor = 0 – 2 = -2
I hope you got the answer.
As there is no left child of node 1, and height of right subtree is 2.
So balance factor = 0 – 2 = -2
I hope you got the answer.
0300-9520262
Get solution in 24 hour |cpmputer & internet
mileys81:[SIZE="4"][SIZE="3"]....[/SIZE][/SIZE]
