【24h】

Sorting by Placement and Shift

机译:按放置和转移排序

获取原文

摘要

In sorting situations where the final destination of each item is known, it is natural to repeatedly choose items and place them where they belong, allowing the intervening items to shift by one to make room. (In fact, a special case of this algorithm is commonly used to hand-sort files.) However, it is not obvious that this algorithm necessarily terminates. We show that in fact the algorithm terminates after at most 2~(n-1)-1 steps in the worst case (confirming a conjecture of L. Larson), and that there are super-exponentially many per- mutations for which this exact bound can be achieved. The proof involves a curious symmetrical binary representation.
机译:在已知每个项目的最终目的地的排序情况下,重复选择物品并将其放置在它们所属的位置,使其允许介入物品换乘室。 (实际上,这种算法的特殊情况通常用于手动排序文件。但是,这算法必然终止是不明显的。我们表明,实际上算法在最坏情况下最多2〜(n-1)-1步骤之后终止(确认L. Larson的猜想),并且存在许多超级级数界限可以实现。证据涉及奇怪的对称二进制表示。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号