Question: Let us consider the binary trees below. Select all that apply: a. Tree in e) will have the AVL property, if we remove node D.
Let us consider the binary trees below.
Select all that apply:
a. Tree in e) will have the AVL property, if we remove node D.
b. Tree in e) will have the AVL (height-balanced 1-tree) property, if node F is removed.
c. Tree in f) will not have the AVL property, if we remove node E.
d. For a binary tree that does have the AVL property. If the property is violated after inserting one node, then the property can be restored using an algorithm (based on rotations) that runs in O(N4), where N is the number of nodes.
e. Tree in e) will have the AVL property if we add a right child to node B.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
