QuickHeapsort: Modifications and improved analysis
Volker Diekert, Armin Weiss

TL;DR
This paper introduces modifications and a new analysis of QuickHeapsort, achieving improved theoretical bounds on the expected number of comparisons, and demonstrating competitive performance with other advanced heapsort variants.
Contribution
It provides a novel analysis splitting QuickHeapsort into partition and heap phases, and introduces modifications that improve comparison bounds.
Findings
Expected comparisons for in-place QuickHeapsort: n lg n - 0.03n + o(n)
Expected comparisons for non-in-place QuickHeapsort: n lg n - 0.997n + o(n)
Non-in-place variant competes with index-based and relaxed heapsort variants
Abstract
We present a new analysis for QuickHeapsort splitting it into the analysis of the partition-phases and the analysis of the heap-phases. This enables us to consider samples of non-constant size for the pivot selection and leads to better theoretical bounds for the algorithm. Furthermore we introduce some modifications of QuickHeapsort, both in-place and using n extra bits. We show that on every input the expected number of comparisons is n lg n - 0.03n + o(n) (in-place) respectively n lg n -0.997 n+ o (n). Both estimates improve the previously known best results. (It is conjectured in Wegener93 that the in-place algorithm Bottom-Up-Heapsort uses at most n lg n + 0.4 n on average and for Weak-Heapsort which uses n extra-bits the average number of comparisons is at most n lg n -0.42n in EdelkampS02.) Moreover, our non-in-place variant can even compete with index based Heapsort variants…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
