首页> 外文会议>Annual European symposium on algorithms >Average Case Analysis of Java 7's Dual Pivot Quicksort
【24h】

Average Case Analysis of Java 7's Dual Pivot Quicksort

机译:Java 7的Dual Pivot Quicksort的平均案例分析

获取原文

摘要

Recently, a new Quicksort variant due to Yaroslavskiy was chosen as standard sorting method for Oracle's Java 7 runtime library. The decision for the change was based on empirical studies showing that on average, the new algorithm is faster than the formerly used classic Quicksort. Surprisingly, the improvement was achieved by using a dual pivot approach, an idea that was considered not promising by several theoretical studies in the past. In this paper, we identify the reason for this unexpected success. Moreover, we present the first precise average case analysis of the new algorithm showing e. g. that a random permutation of length n is sorted using 1.9n ln n - 2.46n + O(ln n) key comparisons and 0.6ra ln n + 0.08n + O(ln n) swaps.
机译:最近,由于Yaroslavskiy而选择了一个新的Quicksort变体作为Oracle Java 7运行时库的标准排序方法。做出更改的决定基于经验研究,该研究表明,平均而言,新算法比以前使用的经典Quicksort更快。出乎意料的是,改进是通过使用双重枢轴方法实现的,该想法在过去的一些理论研究中都被认为是没有希望的。在本文中,我们确定了此意外成功的原因。此外,我们展示了显示e的新算法的第一个精确的平均案例分析。 G。使用1.9n ln n-2.46n + O(ln n)键比较和0.6ra ln n + 0.08n + O(ln n)交换对长度为n的随机排列进行排序。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号