跳到正文
EasyXiv 检索
投稿 关于 登录

按回车检索 · 直接输入编号(如 1706.03762)可跳转到论文

计算机科学 > 数据结构与算法

arXiv:1304.0988 (cs)
[提交于 2015年2月13日 (v1),最后修订于 2015年2月13日 (此版本, v3)]

标题:Average Case and Distributional Analysis of Dual-Pivot Quicksort

作者:Sebastian Wild, Markus E. Nebel, Ralph Neininger
查看论文《Average Case and Distributional Analysis of Dual-Pivot Quicksort》的 PDF
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读
摘要:In 2009, Oracle replaced the long-serving sorting algorithm in its Java 7 runtime library by a new dual-pivot Quicksort variant due to Vladimir Yaroslavskiy. The decision was based on the strikingly good performance of Yaroslavskiy's implementation in running time experiments. At that time, no precise investigations of the algorithm were available to explain its superior performance - on the contrary: Previous theoretical studies of other dual-pivot Quicksort variants even discouraged the use of two pivots. Only in 2012, two of the authors gave an average case analysis of a simplified version of Yaroslavskiy's algorithm, proving that savings in the number of comparisons are possible. However, Yaroslavskiy's algorithm needs more swaps, which renders the analysis inconclusive. To force the issue, we herein extend our analysis to the fully detailed style of Knuth: We determine the exact number of executed Java Bytecode instructions. Surprisingly, Yaroslavskiy's algorithm needs sightly more Bytecode instructions than a simple implementation of classic Quicksort - contradicting observed running times. Like in Oracle's library implementation we incorporate the use of Insertionsort on small subproblems and show that it indeed speeds up Yaroslavskiy's Quicksort in terms of Bytecodes; but even with optimal Insertionsort thresholds the new Quicksort variant needs slightly more Bytecode instructions on average. Finally, we show that the (suitably normalized) costs of Yaroslavskiy's algorithm converge to a random variable whose distribution is characterized by a fixed-point equation. From that, we compute variances of costs and show that for large n, costs are concentrated around their mean.
评论: v3 is content-wise identical to TALG version
主题: 数据结构与算法 (cs.DS); 概率论 (math.PR)
引用方式: arXiv:1304.0988 [cs.DS]
  (或者 arXiv:1304.0988v3 [cs.DS] 对于此版本)
  https://doi.org/10.48550/arXiv.1304.0988
期刊参考: ACM Transactions on Algorithms 11, 3, Article 22 (Jan 2015)
相关 DOI: https://doi.org/10.1145/2629340

提交历史

来自:Sebastian Wild
[v3] 2015年2月13日 星期五 16:38:39 UTC
全文链接:

访问论文:

  • 查看原文 PDF
  • 中文 PDF (下批处理)
  • EasyResearch 阅读
  • TeX 源文件
  • arXiv 原文页面
查看许可

当前浏览上下文:

cs.DS
< 上一篇   |   下一篇 >
最新 | 近期 | 2015-02
切换浏览方式为:
cs
math.PR

参考文献与引用

  • Google Scholar
  • Semantic Scholar

BibTeX 格式的引用

EasyXiv 是独立运营的中文预印本站点,与 arXiv 及康奈尔大学无隶属关系。 论文元数据与原文来自 arXiv.org,感谢 arXiv 提供开放获取服务。
关于 · 帮助 · 投稿指南 · 版权 · arXiv 原站