首页    期刊浏览 2024年11月24日 星期日
登录注册

文章基本信息

  • 标题:A note on average-case sorting
  • 本地全文:下载
  • 作者:Shay Moran ; Amir Yehudayoff
  • 期刊名称:Electronic Colloquium on Computational Complexity
  • 印刷版ISSN:1433-8092
  • 出版年度:2013
  • 卷号:2013
  • 出版社:Universität Trier, Lehrstuhl für Theoretische Computer-Forschung
  • 摘要:

    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 minimizethe expected number of comparisons. We generalize Fredman's algorithm whichis a variant of insertion sort and provide a basically tight upper bound: If \mu isa distribution on permutations on n elements, then one may sort inputs from with expected number of comparisons that is at most H(\mu) + 2n, where H is theentropy function. A lower bound of H(\mu) always holds, and a linear dependenceon n is also required.

国家哲学社会科学文献中心版权所有