近似最优合并:快速,实用的排序方法,最佳地适应现有的排序
Nearly-Optimal Mergesorts: Fast, Practical Sorting Methods That Optimally Adapt to Existing Runs
摘要:
我们提出了两个稳定的mergesort变种,“peeksort”和“powersort”,利用现有的运行,并找到几乎可以忽略不计的开销接近最佳的合并顺序。以前的方法要么需要大量的努力来确定合并顺序(Takaoka 2009; Barbay & Navarro 2013),要么没有恒定因子的最佳最坏情况保证(Peters 2001; Auger,Nicaud & Mitteau 2015; Buss & Knop 2018)。我们证明了我们的方法在运行时间方面具有竞争力,具有最先进的实现稳定的排序方法。
英文摘要:
We present two stable mergesort variants, "peeksort" and "powersort", that exploit existing runs and find nearly-optimal merging orders with practically negligible overhead. Previous methods either require substantial effort for determining the merging order (Takaoka 2009; Barbay & Navarro 2013) or do not have a constant-factor optimal worst-case guarantee (Peters 2001; Auger, Nicaud & Pivoteau 2015; Buss & Knop 2018). We demonstrate that our methods are competitive in terms of running time with state-of-the-art implementations of stable sorting methods.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。