(Available since version 1.0)
Heap::mergePairs — Merges the subheaps of a node
$subheap
)Merges a node's subheaps in pairs. Follows a two-pass scheme of first merging pairs from left to right, then merges the resulting list of subheaps from right to left.
subheap
The node to work on.
No value is returned.