arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1306.3819cs.DSmath.PR
收藏

Yaroslavskiy双旋转算法下的快速选择分析

Analysis of Quickselect under Yaroslavskiy's Dual-Pivoting Algorithm

Sebastian Wild, Markus E. Nebel, Hosam Mahmoud

摘要:

算法界对Yaroslavskiy引入的新分区方法感到兴奋。这种算法使快速排序比在经典分区方法下运行的情况稍快。我们表明,这种改进的性能在Quicksort是不持续的Quickselect,一个变体的Quicksort的顺序统计。我们调查的数量比较快速选择找到一个关键的随机选择的排名下雅罗斯拉夫斯基的算法。这种总平均是特定固定顺序统计量的所有个体分布上的平滑算子。我们给出精确的总平均值。大分布的数量比较(当适当缩放)是作为一个分配方程的收缩在Zolotarev度量空间的不动点解。我们的调查表明,Quickselect下旧的分区方法略优于Quickselect下Yaroslavskiy的算法,随机排名的顺序统计。对于极值顺序统计量也得到了类似的结果,我们再次找到了精确的平均值和比较次数的分布(当适当缩放时)。这两个极限分布都是永久分布(独立混合连续随机变量的乘积之和)。

英文摘要:

There is excitement within the algorithms community about a new partitioning method introduced by Yaroslavskiy. This algorithm renders Quicksort slightly faster than the case when it runs under classic partitioning methods. We show that this improved performance in Quicksort is not sustained in Quickselect; a variant of Quicksort for finding order statistics. We investigate the number of comparisons made by Quickselect to find a key with a randomly selected rank under Yaroslavskiy's algorithm. This grand averaging is a smoothing operator over all individual distributions for specific fixed order statistics. We give the exact grand average. The grand distribution of the number of comparison (when suitably scaled) is given as the fixed-point solution of a distributional equation of a contraction in the Zolotarev metric space. Our investigation shows that Quickselect under older partitioning methods slightly outperforms Quickselect under Yaroslavskiy's algorithm, for an order statistic of a random rank. Similar results are obtained for extremal order statistics, where again we find the exact average, and the distribution for the number of comparisons (when suitably scaled). Both limiting distributions are of perpetuities (a sum of products of independent mixed continuous random variables).

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

↑