当前位置: X-MOL 学术Theor. Comput. Sci. › 论文详情
Our official English website, www.x-mol.net, welcomes your feedback! (Note: you will need to create a separate account there.)
Improved average complexity for comparison-based sorting
Theoretical Computer Science ( IF 1.1 ) Pub Date : 2019-07-16 , DOI: 10.1016/j.tcs.2019.06.032
Kazuo Iwama , Junichi Teruyama

This paper studies the average complexity on the number of comparisons for sorting algorithms. Its information-theoretic lower bound is nlgn1.4427n+O(logn). For many efficient algorithms, the first nlgn term is easy to achieve and our focus is on the (negative) constant factor of the linear term. The current best value is −1.3999 for the MergeInsertion sort. Our new value is −1.4106, narrowing the gap by some 25%. An important building block of our algorithm is “two-element insertion,” which inserts two elements A and B, A<B, into a sorted sequence T. This insertion algorithm is still sufficiently simple for rigorous mathematical analysis and works well for a certain range of the length of T for which the simple binary insertion does not, thus allowing us to take a complementary approach together with the binary insertion.



中文翻译:

改进了基于比较的排序的平均复杂度

本文研究了排序算法的比较次数的平均复杂度。它的信息理论下限是ñlgñ-1.4427ñ+Ø日志ñ。对于许多有效的算法,第一个ñlgñ项很容易实现,我们的重点是线性项的(负)常数。对于MergeInsertion排序,当前的最佳值为-1.3999。我们的新值为-1.4106,使差距缩小了25%。我们算法的一个重要组成部分是“两元素插入”,它插入了两个元素AB一种<成已排序的序列Ť。对于严格的数学分析,该插入算法仍然足够简单,并且对于T长度的特定范围(对于简单的二进制插入而言并非如此)也可以很好地工作,因此使我们能够采取与二进制插入一起的补充方法。

更新日期:2019-07-16
down
wechat
bug