一种新的分“档”置换插入排序算法  被引量:1

New Sorting Algorithm for Classification and Straight Insertion

在线阅读下载全文

作  者:杨红颖[1] 王向阳[1,2] 

机构地区:[1]辽宁师范大学计算机与信息技术学院,辽宁大连116029 [2]计算机软件新技术国家重点实验室(南京大学)

出  处:《小型微型计算机系统》2006年第6期996-1001,共6页Journal of Chinese Computer Systems

基  金:辽宁省自然科学基金项目(20032100)资助;计算机软件新技术国家重点实验室(南京大学)开放基金项目(A2004-05)资助

摘  要:近年来,人们提出了众多时间复杂度为O(n)的排序算法.但分析研究结果表明,上述排序方法都不同程度上存在着以下两点不足:(1)附加存储空间开销大;(2)排序效率过分依赖于关键字的均匀分布.基于此,本文提出了一种由分“档”、整体置换和局部直接插入排序所组成的新排序算法——分“档”置换插入排序法.算法分析和实验结果都表明:该排序方法与待排序数据分布无关,其时间复杂度为O(n),而附加存储空间开销少于0.5n,同时排序速度明显优于QuickSort、HeapSort、按字节桶分配链接排序、ProportionSplitSort等算法.some sorting methods that the expected time complexity is of O(n) were discussed in the related papers in the past few years. But, the analysis of algorithm shows that there are two drawbacks in these algorithms, (1) require a large amount of extra space and (2) the property of the expected time complexity is limited to uniformly distributed inputs. So, a new sorting algorithm consisted of classification, in situ permutation and straight insertion is presented in this paper. The algorithm analysis and experimental results show that the new sorting algorithm has nothing to do with data distribution, has the time complexity of O(a), requires no more than 0. 5a extra space only, and is obviously quicker than that of Quick Sort, Heap Sort, Proportion Split Sort etc.

关 键 词:排序  置换 直接插入排序 

分 类 号:TP302[自动化与计算机技术—计算机系统结构]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象