The above discussion implies that in two consecutive extract-min operations our algorithm performs one extra comparison and two swaps while it calls the heapify function for trees of depth d’ = d – 1 and d. On the other hand, the original algorithm calls the heapify process for a tree of depth d twice after two swaps, in order to transfer the smallest element each time to the ordered part of the heap. Recalling that the heapify function has to perform two comparisons and one swap for each level, we save one swap and one comparison for every two steps of the algorithm, because the second time the heapify function is called in a tree of smaller depth.