Question
Let us consider a Binary Search Tree, BST, with N elements and with height H. Select all that apply: a. Delete of a one child
Let us consider a Binary Search Tree, BST, with N elements and with height H.
Select all that apply:
a. Delete of a one child node is in O(log N) if BST respects the AVL property
b. Printing BST using the pre order, the post order or the in order traversal is in O(H) if the tree is degenerated (each node has at most 1 child).
c. N = 2H if BST is a perfect balanced tree (each non leaf node has exactly 2 children)
d. N = H if the BST is degenerated (each node has at most 1 child).
e. Delete of a leaf node is in O(log N) if the tree is degenerated (each node has at most 1 child).
f. Printing BST using the post order traversal is in O(H) if BST respects the AVL property
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started