3,822 views
1 votes
1 votes
The tree given is as follows:
 
          40
         /  \
        35   53
       /      \
      20      60
 
How many rotations are required for insertion of elements 30,55,45,65,42 in above tree.
(A) 2
(B) 3
(C) 4
(D) None of these

4 Answers

Best answer
3 votes
3 votes

Option D None of these

selected by
1 votes
1 votes
1st rotation will be LR rotation
2nd will be RL rotation
3rd will be LL rotation

3 rotations will be required....
0 votes
0 votes
It requires 3 Rotation which are which are LL and RR and with combination of Lr and RL we will get a total of % rotation.

actually in Question they should give which rotation has to be performed.

Related questions

5 votes
5 votes
1 answer
1
junaid ahmad asked Dec 19, 2017
2,029 views
Which of the following is highest upper bound that represents the time complexity of inserting an object into AVL tree with n-nodes.It must be 0(logn) right.What would be...
1 votes
1 votes
1 answer
2
kd..... asked Apr 13, 2019
798 views
here what to do first as FIZZA and IMRAN both are unbalanced than either to do RR rotation from FIZZA-IMRAN-NAVEEN or RL rotation from IMRAN-NAVEEN-LOVELY
1 votes
1 votes
1 answer
3
Rahul_Rathod_ asked Dec 28, 2018
1,076 views
what is the maximum possible hight of AVL tree with 54 node?is there any general method to solve this question?
1 votes
1 votes
1 answer
4
Lakshman Bhaiya asked Nov 6, 2018
695 views
The minimum number of node in an AVL Tree of height $10$ is ____________