【24h】

Inversions from Sorting with Distance-Based Errors

机译:来自基于距离的错误排序的反转

获取原文

摘要

We study the number of inversions after running the Insertion Sort or quicksort algorithm, when errors in the comparisons occur with some probability. We investigate the case in which probabilities depend on the difference between the two numbers to be compared and only differences up to some threshold r are prone to errors. We give upper bounds for this model and show that for constant r, the expected number of inversions is linear in the number of elements to be sorted. For Insertion Sort, we also yield an upper bound on the expected number of runs, i.e., the number of consecutive increasing subsequences.
机译:当比较中的错误有可能发生时,我们研究运行插入排序或快速排序算法后的反转次数。我们研究了这样一种情况,即概率取决于要比较的两个数字之间的差异,并且只有达到某个阈值r的差异才容易出错。我们给出了该模型的上限,并表明对于常数r,期望的求逆数在要排序的元素数中是线性的。对于插入排序,我们还得出了预期的运行次数上限,即连续增加的子序列数。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号