d-Heaps

Leftist Heaps
leftist
not leftist
Merging
NOTE:
Interfaces for both routines are same as for binary heap implementation.
Either PQ package can be used, with implementation being transparent to
calling routine.
SKEW HEAPS
Binomial Queues
Add 8 to 7 --> B1
add B1 to B1 --> B2
add B2 to B2 --> B3
Implementation
2. (a) Read first k elements
into array and sort in decr. order
(b) Examine each
remaining element in list, one at a time
(c) If element
is larger than k, insert in proper position of array, bumping one element
out.
(d) When done,
kth position is answer
-- worst-case time is O(n + k log n) :