首页> 外文会议>Computing and combinatorics >On Smoothed Analysis of Quicksort and Hoare's Find
【24h】

On Smoothed Analysis of Quicksort and Hoare's Find

机译:关于Quicksort和Hoare's Find的平滑分析

获取原文
获取原文并翻译 | 示例

摘要

We provide a smoothed analysis of Hoare's find algorithm and we revisit the smoothed analysis of quicksort. Hoare's find algorithm -often called quickselect - is an easy-to-implement algorithm for finding the κ-th smallest element of a sequence. While the worst-case number of comparisons that Hoare's find needs is Θ(n~2), the average-case number is Θ(n). We analyze what happens between these two extremes by providing a smoothed analysis of the algorithm in terms of two different perturbation models: additive noise and partial permutations.rnIn the first model, an adversary specifies a sequence of n numbers of [0,1], and then each number is perturbed by adding a random number drawn from the interval [0,d]. We prove that Hoare's find needs Θ(n/d+1 n/d~(1/2) + n) comparisons in expectation if the adversary may also specify the element that we would like to find. Furthermore, we show that Hoare's find needs fewer comparisons for finding the median.rnIn the second model, each element is marked with probability p and then a random permutation is applied to the marked elements. We prove that the expected number of comparisons to find the median is in Ω((1 - p)n/p log n), which is again tight.rnFinally, we provide lower bounds for the smoothed number of comparisons of quicksort and Hoare's find for the median-of-three pivot rule, which usually yields faster algorithms than always selecting the first element: The pivot is the median of the first, middle, and last element of the sequence. We show that median-of-three does not yield a significant improvement over the classic rule: the lower bounds for the classic rule carry over to median-of-three.
机译:我们提供了对Hoare的find算法的平滑分析,并重新介绍了快速排序的平滑分析。 Hoare的查找算法(通常称为quickselect)是一种易于实现的算法,用于查找序列的第κ个最小元素。 Hoare的发现需要的最坏情况下的比较数是Θ(n〜2),而平均情况下的数目是Θ(n)。我们通过对两种不同的扰动模型(加性噪声和部分置换)进行平滑分析,分析了这两种极端情况之间发生的情况。在第一个模型中,对手指定了n个[0,1]数的序列,然后通过添加从间隔[0,d]中得出的随机数来扰动每个数字。我们证明,如果对手也可以指定我们想要查找的元素,Hoare的查找需要进行Θ(n / d + 1 n / d〜(1/2)+ n)比较。此外,我们表明,Hoare的发现需要更少的比较来找到中位数。在第二个模型中,每个元素都用概率p标记,然后将随机置换应用于标记的元素。我们证明寻找中位数的预期比较数以Ω((1-p)n / p log n)为单位,这又很严格.rn最后,我们为quicksort和Hoare的比较的平滑数提供了下界对于三个中位数枢轴规则,该规则通常会比总是选择第一个元素产生更快的算法:枢轴是序列中第一个,中间和最后一个元素的中值。我们显示三位数的中位数不会比经典规则产生显着的改进:经典规则的下限会延续到三位数的中间值。

著录项

  • 来源
    《Computing and combinatorics》|2009年|158-167|共10页
  • 会议地点 Niagara Falls NY(US);Niagara Falls NY(US);Niagara Falls NY(US)
  • 作者单位

    Saarland University, Department of Computer Science Postfach 151150, 66041 Saarbruecken, Germany;

    Universitaet Stuttgart, FMI Universitaetsstrasse 38, 70569 Stuttgart, Germany;

    Saarland University, Department of Computer Science Postfach 151150, 66041 Saarbruecken, Germany;

    Saarland University, Department of Computer Science Postfach 151150, 66041 Saarbruecken, Germany;

  • 会议组织
  • 原文格式 PDF
  • 正文语种 eng
  • 中图分类 计算技术、计算机技术;
  • 关键词

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号