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

Multiway Powersort

Multiway Powersort

William Cawley Gelling, Markus E. Nebel, Benjamin Smith, Sebastian Wild

摘要:

我们提出了一个稳定的mergesort的变种,多路Powersort,利用现有的运行,并找到接近最佳的合并顺序k路合并可以忽略不计的开销。这建立在Powersort(Munro & Wild,ESA 2018)的基础上,Powersort最近在Python的CPython参考实现以及PyPy和其他库中取代了Timsort的次优合并策略。Multiway Powersort减少了内存传输的数量,内存传输的数量越来越多地决定了内部排序的成本(如Multiway Quicksort所观察到的(Kushagra等人,ALENEX 2014; Aumüller & Dietzfelbinger,TALG 2016; Wild,PhD thesis 2016)以及在Java运行时库中包含Dual-Pivot Quicksort)。我们证明,我们的4路Powersort实现可以实现大幅加速比标准(2路)Powersort和其他稳定的排序方法,而不影响最佳运行自适应性能的Powersort。

英文摘要:

We present a stable mergesort variant, Multiway Powersort, that exploits existing runs and finds nearly-optimal merging orders for k-way merges with negligible overhead. This builds on Powersort (Munro & Wild, ESA2018), which has recently replaced Timsort's suboptimal merge policy in the CPython reference implementation of Python, as well as in PyPy and further libraries. Multiway Powersort reduces the number of memory transfers, which increasingly determine the cost of internal sorting (as observed with Multiway Quicksort (Kushagra et al., ALENEX 2014; Aumüller & Dietzfelbinger, TALG 2016; Wild, PhD thesis 2016) and the inclusion of Dual-Pivot Quicksort in the Java runtime library). We demonstrate that our 4-way Powersort implementation can achieve substantial speedups over standard (2-way) Powersort and other stable sorting methods without compromising the optimally run-adaptive performance of Powersort.

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

↑