...
首页> 外文期刊>Theory of computing systems >Towards a Realistic Analysis of the QuickSelect Algorithm
【24h】

Towards a Realistic Analysis of the QuickSelect Algorithm

机译:对QuickSelect算法的现实分析

获取原文

摘要

We revisit the analysis of the classical QuickSelect algorithm. Usually, the analysis deals with the mean number of key comparisons, but here we view keys as words produced by a source, and words are compared via their symbols in lexicographic order. Our probabilistic models belong to a broad category of information sources that encompasses memoryless (i.e., independent-symbols) and Markov sources, as well as many unbounded-correlation sources. The "realistic" cost of the algorithm is here the total number of symbol comparisons performed by the algorithm, and, in this context, the average-case analysis aims to provide estimates for the mean number of symbol comparisons. For the QuickSort algorithm, known average-case complexity results are of in the case of key comparisons, and for symbol comparisons. For QuickSelect algorithms, and with respect to key comparisons, the average-case complexity is I similar to(n). In this present article, we prove that, with respect to symbol comparisons, QuickSelect's average-case complexity remains I similar to(n). In each case, we provide explicit expressions for the dominant constants, closely related to the probabilistic behaviour of the source.
机译:我们重新分析经典的QuickSelect算法。通常,分析处理的是键比较的平均次数,但是在这里,我们将键视为由源产生的单词,然后按字典顺序通过符号对单词进行比较。我们的概率模型属于广泛的信息源类别,其中包括无记忆(即独立符号)和马尔可夫源以及许多无界相关源。该算法的“实际”成本在这里是该算法执行的符号比较的总数,并且在这种情况下,平均情况分析旨在为符号比较的平均数提供估计。对于QuickSort算法,已知的平均大小写复杂度结果是在键比较和符号比较的情况下得出的。对于QuickSelect算法,以及在键比较方面,平均情况下的复杂度与(n)类似。在本文中,我们证明了在符号比较方面,QuickSelect的平均大小写复杂度仍与(n)相似。在每种情况下,我们为显性常数提供显式表达式,与源的概率行为密切相关。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号