Indexed D-ary Heap
Implementation
Optimizations
Optimized Complexity
Time Complexity
Notice that the maximum height for n nodes is Building the heap is still O(n)Swim: Sink: Swim < Sink
Space Complexity
O(n)
Related
Heap-Implementation Indexed-D-ary-Heap Indexed-Priority-Queue-(IPQ)