semanticscholar.org

[PDF] In-place Heap Construction with Optimized Comparisons, Moves, and Cache Misses | Semantic Scholar

Heap Construction - 50 Years Later

    Computer Science, Mathematics

  • 2017

It is shown that there exists an in-place heapconstruction algorithm that runs in Θ(N) worst-case time and performs at most 1.625N +o(N), and the same bound for the number of element comparisons was derived and conjectured to be optimal by Gonnet and Munro; however, their algorithm requires Θ (N) pointers.

Performance engineering case study: heap construction

Analysis of the behaviour of three methods for constructing a binary heap on a computer with a hierarchical memory shows that, under reasonable assumptions, repeated insertion and layerwise construction both incur at most at most cN/B cache misses, whereas repeated merging, as programmed by Floyd, can incur more than more than (<i>dN</i> log<inf>2</inf> <i>B</i>) cache misses.

Heaps on Heaps

The task of performing the basic priority queue operations on a heap is considered and it is shown that in the worst case log log n comparisons are necessary and sufficient to insert an element into a heap.

A Framework for Constructing Heap-Like Structures In-Place

The study is carried out by investigating hardest instances of the problem and developing an algorithmic paradigm for the construction that produces comparison- and space-efficient construction algorithms for the heaplike structures, which improve over those previously fast known algorithms.

Weak-heap sort

A data structure called aweak-heap is defined by relaxing the requirements for a heap and theoretical analysis and empirical results indicate that it is a competitive structure for sorting.

Cache-oblivious algorithms

It is proved that an optimal cache-oblivious algorithm designed for two levels of memory is also optimal for multiple levels and that the assumption of optimal replacement in the ideal-cache model can be simulated efficiently by LRU replacement.