... h + 1. In the last step (see Figure 8 .10 f -g), we form the final heap, storing all the n entries, by joining two heaps storing (n − 1) /2 entries (constructed in the previous step) and adding ... in the heap tree. (Continues in Code Fragment 8 .14 .) 485cursively, bottom-up heap construction consists of the following h + 1 = log(n + 1) steps: 1. In the first step (see Figure 8 .10 a), ... bubbling to preserve the heap-order property. i. In the generic ith step, 2 ≤ i ≤ h, we form (n + 1) /2i heaps, each storing 2i − 1 entries, by joining pairs of heaps storing (2i 1 − 1) ...