首页> 外文期刊>Order >A Note on Average-Case Sorting
【24h】

A Note on Average-Case Sorting

机译:关于平均大小写排序的注意事项

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

摘要

This note studies the average-case comparison-complexity of sorting n elements when there is a known distribution on inputs and the goal is to minimize the expected number of comparisons. We generalize Fredman's algorithm which is a variant of insertion sort and provide a basically tight upper bound: If mu is a distribution on permutations on n elements, then one may sort inputs from mu with expected number of comparisons that is at most H(mu) + 2n, where H is the entropy function. The algorithm uses less comparisons for more probable inputs: For every permutation pi, the algorithm sorts pi by using at most comparisons. A lower bound on the expected number of comparisons of H(mu) always holds, and a linear dependence on n is also required.
机译:本说明研究在输入有已知分布时对n个元素进行排序的平均情况下的比较复杂性,目标是使期望的比较次数最小化。我们对弗雷德曼算法进行泛化,该算法是插入排序的一种变体,并提供了一个基本严格的上限:如果mu是n个元素上排列的分布,则可以对mu的输入进行排序,期望的比较次数最多为H(mu) + 2n,其中H是熵函数。该算法使用较少的比较来获得更多可能的输入:对于每个排列pi,该算法最多使用比较来对pi进行排序。 H(μ)的预期比较次数始终保持下限,并且还需要对n的线性依赖性。

著录项

  • 来源
    《Order》 |2016年第1期|23-28|共6页
  • 作者

    Moran Shay; Yehudayoff Amir;

  • 作者单位

    Technion Israel Inst Technol, Dept Comp Sci, IL-32000 Haifa, Israel|Max Planck Inst Informat, D-66123 Saarbrucken, Germany;

    Technion Israel Inst Technol, Dept Math, IL-32000 Haifa, Israel;

  • 收录信息 美国《科学引文索引》(SCI);
  • 原文格式 PDF
  • 正文语种 eng
  • 中图分类
  • 关键词

    Comparison based sorting; Average-case complexity; Shannon's entropy;

    机译:基于比较的排序;平均情况复杂度;Shannon熵;
  • 入库时间 2022-08-18 03:03:14

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号