摘要
排序是数据处理中一种很重要的运算,能够方便数据的查找。常用内排序算法时间复杂度接近O(n2),优化的排序算法接近O(nlog2n)。基于基数排序的新排序方法,通过对关键字的低半部和高半部做两次基数排序,快速实现排序功能。最后给出了新排序算法和常用排序算法的数据排序效率比较,实验证明,它可以使算法的时间复杂度达到O(N),算法的效率远远高于常规的排序算法。
Sorting is a kind of importantion operation in data processing and it is convenient in data searching. Commonly used inside sorting algorithms' time complex is O(n2)and O(nlog2n)in optimization. Based on study of base sorting, a new base sorting algorithm is proposed. By making two times of base sorting to the low half and the high half of the keys, the sorting function is fast realized. At last, a comparison of numerical experiments for new algorithm and other sorting algorithms is given, whieh shows that the new algorithm has higher effieieney and aehieves O (nlog2 n)time eomplex.
出处
《湖州职业技术学院学报》
2008年第1期17-19,共3页
Journal of Huzhou Vocational and Technological College