Question: Consider the tree below: Root is 7. Left child of 7 is 4. Right Child of 7 is 11. Left child of 4 is 2,
Consider the tree below: Root is 7. Left child of 7 is 4. Right Child of 7 is 11. Left child of 4 is 2, right child of 4 is 5, left child of 11 does not exist, right child of 11 is 12. Suppose we wish to right rotate the tree with x=4 and y=7 , so that the new root is 4. Write down the numbers corresponding to the nodes below in the tree after rotation: The right child of the new root (4) will be
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
