Question: Consider the AVL tree T shown below where keys are shown inside the nodes, but the node heights are not shown. Now suppose we delete
Consider the AVL tree T shown below where keys are shown inside the nodes, but the node heights are not shown. Now suppose we delete according to the dictionary delete algorithm on AVL trees described in the course ie lecture slide video recordings
Question Answer
a
Left subtree of the root remains unchanged, depth of remains and becomes right child of
b
becomes the root, and becomes right child of
c
Left subtree of the root remains unchanged, and becomes parent of
d
becomes the root, and become siblings, and remains left child of
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
