Question: Describe a binary search tree on n nodes such that the average depth of a node in the tree is (lg n) but the height
Describe a binary search tree on n nodes such that the average depth of a node in the tree is Θ(lg n) but the height of the tree is ω(lg n). Give an asymptotic upper bound on the height of an n-node binary search tree in which the average depth of a node is Θ(lg n).
Step by Step Solution
3.27 Rating (168 Votes )
There are 3 Steps involved in it
We will answer the second part first We shall show that if the average depth of a node is lg n then ... View full answer
Get step-by-step solutions from verified subject matter experts
