高级检索

    一种新的二次分“档”链接排序算法

    A NEW SORTING METHOD BY TWICE GRADING AND LINKING

    • 摘要: 提出了一种谓之二次分“档”链接的新排序方法 (以下简称为二次分“档”链接排序 ) ,并给出了该排序算法的描述、时间复杂度分析、空间复杂度分析及用 C语言编写程序进行算法比较的实验结果 .算法分析和实验结果都表明 :在待排序数据满足 O(ΔM)≤ O(N) (这里 ,N为待排序数据个数 ,ΔM为关键字的变化范围 )的情况下 ,二次分“档”链接排序方法与待排序数据分布无关且时间复杂度仅为 O(N ) ,而附加存储空间开销仅为 N +ΔM+2 ,同时排序速度明显优于 Quick Sort、Flash Sort、Proportion Split Sort、分段快速排序等算法

       

      Abstract: A new sorting method of twice grading and linking is presented in this paper. Its algorithm description, time complexity, space complexity, and experimental results in C are given. The algorithmic analysis and experimental results show that the time complexity of this method is O(N) and it has nothing to do with data distribution. Additional memory cost is only N +Δ M +2 when the original data has the character of O( Δ M )≤ O(N) (here, N is the amount of original data,Δ M is the change scope of the key).

       

    /

    返回文章
    返回