(b) Run a single-elimination tournament among eight elements. This requires seven comparisons and
generates ordering information indicated by the binomial tree shown here.
(c) A recursive strategy is used. Assume that N = 2k. A binomial tree is built for the N elements as in part (b).
The largest subtree of the root is then recursively converted into a binary heap of 2k − 1 elements. The last
6.8 a) Since each element in a min heap has children whose elements are greater than the value in the
6.9 Let D1, D2, . . . ,Dk be random variables representing the depth of the smallest, second smallest, and kth
smallest elements, respectively. We are interested in calculating E(Dk). In what follows, we assume that the
Lemma.