Prove equation (12.3).
$$\displaystyle \sum_{i=0}^{n-1} \binom{i+3}{3} = \binom{n+3}{4}$$ .
Describe a binary search tree on n nodes such that the average depth of a node in the tree is
$$\Theta(\lg n)$$ but the height of the tree is$$\omega(\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$$\Theta(\lg n)$$ .
Show that the notion of a randomly chosen binary search tree on
$$n$$ keys, where each binary search tree of$$n$$ keys is equally likely to be chosen, is different from the notion of a randomly built binary search tree given in this section.
For
Show that the function
$$f(x) = 2^x$$ is convex.
Therefore
Consider RANDOMIZED-QUICKSORT operating on a sequence of
$$n$$ distinct input numbers. Prove that for any constant$$k > 0$$ , all but$$O(1/n^k)$$ of the$$n!$$ input permutations yield an$$O(n\lg n)$$ running time.