首页> 外文会议>Workshop on Algorithm Engineering and Experiments >Multi-Pivot Quicksort: Theory and Experiments
【24h】

Multi-Pivot Quicksort: Theory and Experiments

机译:多枢轴Quicksort:理论与实验

获取原文

摘要

The idea of multi-pivot quicksort has recently received the attention of researchers after Vladimir Yaroslavskiy proposed a dual pivot quicksort algorithm that, contrary to prior intuition, outperforms standard quicksort by a a significant margin under the Java JVM [10]. More recently, this algorithm has been analysed in terms of comparisons and swaps by Wild and Nebel [9]. Our contributions to the topic are as follows. First, we perform the previous experiments using a native C implementation thus removing potential extraneous effects of the JVM. Second, we provide analyses on cache behavior of these algorithms. We then provide strong evidence that cache behavior is causing most of the performance differences in these algorithms. Additionally, we build upon prior work in multi-pivot quicksort and propose a 3-pivot variant that performs very well in theory and practice. We show that it makes fewer comparisons and has better cache behavior than the dual pivot quicksort in the expected case. We validate this with experimental results, showing a 7-8% performance improvement in our tests.
机译:多枢轴Quicksort的想法最近获得了研究人员的注意,Vladimir yaroslavskiy提出了一个与先前的直觉相反,在Java JVM下的一个重要边缘才能表达标准Quicksort的双重态Quicksort算法[10]。最近,已经在比较和野生和内旁的比较和互换中进行了分析了该算法[9]。我们对主题的贡献如下。首先,我们使用本机C实现执行先前的实验,从而消除了JVM的潜在效果。其次,我们提供了这些算法的缓存行为分析。然后,我们提供了强有力的证据,即缓存行为导致这些算法中的大多数性能差异。此外,我们根据在多枢轴Quicksort中进行的工作,并提出了一种在理论和实践中表现得非常好的3枢轴变体。我们表明它使得比较较少,并且具有比预期情况下的双枢轴Quicksort更好的缓存行为。我们用实验结果验证了这一点,显示了我们测试的7-8%的性能提高。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号