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

QuickXsort:n log n - 1.399n +o(n)平均比较的高效排序

QuickXsort: Efficient Sorting with n log n - 1.399n +o(n) Comparisons on Average

Stefan Edelkamp, Armin Weiß

摘要:

在本文中,我们推广的QuickHeapsort的想法导致QuickXsort的概念。给定一个外部排序算法X,如果X满足某些自然条件,QuickXsort会产生一个内部排序算法。对于QuickWeakHeapsort和QuickMergesort,我们给出了QuickXsort构造的两个示例。这两种算法都是有效的,平均产生大约n log n - 1.26n +o(n)次比较。最坏情况下的n log n + O(n)比较可以实现,而不会显着影响平均情况。此外,我们描述了一个实现的合并插入小n。以MergeInsertion为基础,建立了一个最坏情况下的排序算法,该算法平均需要进行n log n - 1.3999n + o(n)次比较.具有恒定大小基本情况的QuickMergesort在实际输入上表现出最好的性能:当对整数排序时,它只比STL-Introsort慢15%。

英文摘要:

In this paper we generalize the idea of QuickHeapsort leading to the notion of QuickXsort. Given some external sorting algorithm X, QuickXsort yields an internal sorting algorithm if X satisfies certain natural conditions. With QuickWeakHeapsort and QuickMergesort we present two examples for the QuickXsort-construction. Both are efficient algorithms that incur approximately n log n - 1.26n +o(n) comparisons on the average. A worst case of n log n + O(n) comparisons can be achieved without significantly affecting the average case. Furthermore, we describe an implementation of MergeInsertion for small n. Taking MergeInsertion as a base case for QuickMergesort, we establish a worst-case efficient sorting algorithm calling for n log n - 1.3999n + o(n) comparisons on average. QuickMergesort with constant size base cases shows the best performance on practical inputs: when sorting integers it is slower by only 15% to STL-Introsort.

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

↑