1
29kviews
Insert the following elements in AVL Tree 44, 17, 32, 78, 50, 88, 48, 62, 54. Explain the different rotations that will be used.
1 Answer
1
1.4kviews

enter image description here

enter image description here

The different rotations that were used are:

1) LR rotation :

  • Here the new node is inserted in the left sub-tree of the left sub-tree of critical node.
  • This rotation was used in step 4. Here 44 was the critical node.
  • Here we need to carry out a rotation. After …

Create a free account to keep reading this post.

and 3 others joined a min ago.

Please log in to add an answer.