arXivDaily arXiv每日学术速递 周一至周五更新
北美退伍军人节(Veterans Day),12 日无更新
arXiv 1503.08498cs.DS
收藏

双枢轴快速排序

Dual pivot Quicksort

Vasileios Iliopoulos, David B. Penman

摘要:

在本文中,我们分析了双枢轴快速排序,标准的快速排序算法的一个变种,其中两个枢轴用于数组的分区。我们正在解决递归的预期数量的关键比较和交换的算法,获得准确的和渐近的总平均值,有助于其时间复杂度。此外,我们计算划分阶段的平均数和关键比较次数的方差。在平均值方面,双枢轴快速排序似乎并不比普通算法快。

英文摘要:

In this paper, we analyse the dual pivot Quicksort, a variant of the standard Quicksort algorithm, in which two pivots are used for the partitioning of the array. We are solving recurrences of the expected number of key comparisons and exchanges performed by the algorithm, obtaining the exact and asymptotic total average values contributing to its time complexity. Further, we compute the average number of partitioning stages and the variance of the number of key comparisons. In terms of mean values, dual pivot Quicksort does not appear to be faster than ordinary algorithm.

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

↑