Content deleted Content added
m →Lower Running Time Bound: replaced: straight forward → straightforward using AWB |
|||
Line 58:
The pointers are sorted by the value that they point to.
In an O(k) preprocessing step the heap is created using the standard heapify procedure.
Afterwards, the algorithm iteratively transfers the element that the root pointer points to, increases this pointer and executes the standard
The running time of the increase key procedure is bounded by O(log k).
As there are n elements, the total running time is O(n log k).
|