对称划分排序
Symmetry Partition Sort
摘要:
在本文中,我们提出了一个有用的替代快速排序风格的效用函数。这种替换被称为对称划分排序,它与比例扩展排序的原理基本相同。它们之间的最大区别是,新算法在进入分区例程时总是将已经部分排序的输入(用作比例扩展的基础)放在两端。这有利于加速分区例程。基于新算法的库函数比2004年引入的Psort库函数更有吸引力。其实现机制简单。源代码更清晰。时间复杂度为O(n),时间复杂度为O(n)。鲁棒性和自适应性均较好。作为图书馆的一项职能,它具有竞争力。
英文摘要:
In this paper, we propose a useful replacement for quicksort-style utility functions. The replacement is called Symmetry Partition Sort, which has essentially the same principle as Proportion Extend Sort. The maximal difference between them is that the new algorithm always places already partially sorted inputs (used as a basis for the proportional extension) on both ends when entering the partition routine. This is advantageous to speeding up the partition routine. The library function based on the new algorithm is more attractive than Psort which is a library function introduced in 2004. Its implementation mechanism is simple. The source code is clearer. The speed is faster, with O(n log n) performance guarantee. Both the robustness and adaptivity are better. As a library function, it is competitive.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。