【24h】

Peaksort

机译:Peaksort

获取原文

摘要

A sorting algorithm that runs in O(n+min(n log t, r log (r+1))) time, where t is the number of runs up and runs down in the input sequence of n elements and r is the smallest number of exchanges of two arbitrary elements required to sort the sequence, is presented. The memory requirements of the algorithm are modest: an integer array of size n+1 is required to accommodate the main data structures. In the worst case, i.e. when no presortedness is assumed, the actual running time compares favorably to that of the fastest sorting algorithms.
机译:一种以O(n + min(n log t,r log(r + 1)))时间运行的排序算法,其中t是在n个元素的输入序列中上,下运行的次数,r是最小的给出了对序列进行排序所需的两个任意元素的交换数。该算法的内存要求不高:需要一个大小为n + 1的整数数组来容纳主要数据结构。在最坏的情况下,即,当不假设预排序时,实际运行时间与最快的排序算法相比是有利的。

著录项

获取原文

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号