(Available since version 1.0)
Heap::merge — Merges two subheaps
$a
,
SEIDS::Heaps::Pairing::Subheap
$b
)In the case of a max-heap, the node with the greater value will add the other to its list of subheaps. (In the case of a min-heap it is the other way around.)
a
The first subheap to be merged
b
The second subheap to be merged
The merged subheap.