...
首页> 外文期刊>Electronic Journal of Probability >The number of bit comparisons used by Quicksort: an average-case analysis
【24h】

The number of bit comparisons used by Quicksort: an average-case analysis

机译:Quicksort使用的位比较次数:平均情况分析

获取原文
           

摘要

The analyses of many algorithms and data structures (such as digital search trees) for searching and sorting are based on the representation of the keys involved as bit strings and so count the number of bit comparisons. On the other hand, the standard analyses of many other algorithms (such as Quicksort) are performed in terms of the number of key comparisons. We?introduce the prospect of a fair comparison between algorithms of the two types by providing an average-case analysis of the number of bit comparisons required by Quicksort. Counting bit comparisons rather than key comparisons introduces an extra logarithmic factor to the asymptotic average total. We also provide a new algorithm, "BitsQuick", that reduces this factor to constant order by eliminating needless bit comparisons.
机译:用于搜索和排序的许多算法和数据结构(例如数字搜索树)的分析都是基于所涉及的键的表示形式,即位字符串,因此计算了位比较的次数。另一方面,许多其他算法(例如Quicksort)的标准分析是根据键比较的数量执行的。通过对Quicksort所需的位比较次数进行平均情况分析,我们介绍了两种算法之间进行公平比较的前景。计数位比较而不是键比较会为渐进平均总数增加一个额外的对数因子。我们还提供了一种新的算法“ BitsQuick”,它通过消除不必要的位比较而将该因素降低为恒定的顺序。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号