arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1209.4214cs.DS
收藏

QuickHeapsort:修改和改进分析

QuickHeapsort: Modifications and improved analysis

Volker Diekert, Armin Weiss

摘要:

我们提出了一个新的分析QuickHeapsort分裂成分析的分区阶段和分析的堆阶段。这使我们能够考虑样本的非恒定大小的枢轴选择,并导致更好的理论界的算法。此外,我们介绍了QuickHeapsort的一些修改,无论是在地方和使用n个额外的位。我们证明了在每个输入上的期望比较次数分别为nlgn- 0.03n + o(n)(in-place)和nlgn-0.997n + o(n)。这两个估计都改进了以前已知的最佳结果。(It在Wegener 93中证明,就地算法Bottom-Up-Heapsort平均使用至多n lg n + 0.4 n,并且对于使用n个额外位的Weak-Heapsort,在EdelkampS 02中,平均比较次数至多为n lg n-0.42 n。此外,我们的non-in-place变体甚至可以与基于索引的堆排序变体(例如WangW 07中的Rank-Heapsort)和Relaxed-Weak-Heapsort(最坏情况下的n lg n-0.9 n+ o(n)比较)竞争,对于这些变体,没有额外位数的O(n)限制是已知的。

英文摘要:

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 (e.g. Rank-Heapsort in WangW07) and Relaxed-Weak-Heapsort (n lg n -0.9 n+ o (n) comparisons in the worst case) for which no O(n)-bound on the number of extra bits is known.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑