Corresponding to every leaf node πΏπ that has a non-NULL ππ’π(πΏπ), a new key ππ with the following property is to be inserted into the BST.
Vππ(πΏπ)< ππ< πππ(ππ’π(πΏπ))
Let πΎ represent the list of all such new keys to be inserted into the BST. Which of the following statements is/are true?
Correct : a,b,c
Each new key ki satisfies Val(Li) < ki < Val(Suc(Li)), inserted for every leaf that has a non-NULL inorder successor.
Option A β True
In a BST the inorder sequence is strictly sorted and all keys are distinct. The interval (Val(Li), Val(Suc(Li))) for each leaf is completely disjoint from every other leaf's interval β no two leaves share the same consecutive inorder pair. Since all intervals are non-overlapping, it is impossible for two different ki values chosen from different intervals to be equal. K cannot have duplicates. A is true.
Option B β True
Any BST with more than one node always has at least one leaf that is not the rightmost node, meaning at least one leaf has a non-NULL inorder successor. So K always has at least one element. B is true.
Option C β True
Since ki > Val(Li) and Li is a leaf with no right child, every new key inserts as a direct right child of Li, exactly one level below an existing leaf. Height increases by at most 1. C is true.
Option D β False
The rightmost leaf has no inorder successor and contributes nothing to K. So new nodes inserted are strictly less than n, and total nodes cannot reach 2n. Doubling is impossible. D is false.
Correct answer: A, B, C
Similar Questions
Total Unique Visitors