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

Sesquickselect:一个半枢轴,用于高速缓存高效选择

Sesquickselect: One and a half pivots for cache-efficient selection

Conrado Martínez, Markus Nebel, Sebastian Wild

摘要:

由于CPU性能的空前提高,内存传输已成为程序执行的瓶颈。正如近年来发现的那样,这也会影响内部记忆的排序。由于围绕几个枢轴分区减少了整体内存传输,我们已经看到了对多路快速排序的新兴趣。在这里,我们分析了多路分区在Quickselect中的帮助。我们计算的预期数量的比较和扫描的元素(近似内存传输)的一个通用类(非自适应)多路快速选择,并表明,三个或更多的枢轴是没有帮助的,但两个枢轴。此外,我们认为“自适应”的变种,选择分区和选择方法,在每个递归步骤从一个有限的替代品取决于当前(相对)寻求排名。我们表明,“Sesquickselect”,一个新的快速选择的变种,使用一个或两个支点,更好地利用小样本w.r.t.内存传输比其他Quickselect变体。

英文摘要:

Because of unmatched improvements in CPU performance, memory transfers have become a bottleneck of program execution. As discovered in recent years, this also affects sorting in internal memory. Since partitioning around several pivots reduces overall memory transfers, we have seen renewed interest in multiway Quicksort. Here, we analyze in how far multiway partitioning helps in Quickselect. We compute the expected number of comparisons and scanned elements (approximating memory transfers) for a generic class of (non-adaptive) multiway Quickselect and show that three or more pivots are not helpful, but two pivots are. Moreover, we consider "adaptive" variants which choose partitioning and pivot-selection methods in each recursive step from a finite set of alternatives depending on the current (relative) sought rank. We show that "Sesquickselect", a new Quickselect variant that uses either one or two pivots, makes better use of small samples w.r.t. memory transfers than other Quickselect variants.

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

↑