期刊文献+

选择排序算法的一个改进及分析 被引量:7

A Sorting Algorithm Based on Selection Sort Strategy
下载PDF
导出
摘要 针对少量记录排序的应用,对直接选择排序算法进行了挖掘,通过增加记忆功能,使算法性能得到明显提高。改进后的算法在大量记录排序时,较原算法的速度提高1倍以上;在少量记录排序时,是基于比较和移位的排序算法中总体表现最佳的;并且对原序列的有序程度很敏感,原序列相对有序时,速度能大幅度提高。结果表明:该算法很适合少量记录排序、部分排序、较有序记录的排序,以及与快速排序算法的混合使用。 This paper discusses an improved algorithm based on selection sorting, which employs stacks to remember previous compared information. This algorithm takes half of the original time in mass records. As for a small quantity of records, this algorithm is the best on the whole among all the sorting algorithms based on comparison and shift. Moreover, it is sensitive to the ordered degree of the original sort. When the original sort is con^paratively in order, the speed is relatively high. The result shows that this sorting algorithm is quite fit for a small quantity of sorting, portion sorting, comparatively ordered sequence sorting and the combination with quick sort algorithms.
出处 《苏州科技学院学报(自然科学版)》 CAS 2007年第2期70-73,共4页 Journal of Suzhou University of Science and Technology (Natural Science Edition)
基金 苏州科技学院科研基金指导性项目(DZ0603)
关键词 排序算法 选择排序 比较 时间复杂度 sorting algorithm selection sort comparison time complexity
  • 相关文献

参考文献8

  • 1Hoare C A R. Quieksort[J]. Computer Journal, 1962, (5): 10-15.
  • 2Williams J W J. Algorithm 232: Heapsort[J]. Communications of the ACM, 1964, (7) :347-348.
  • 3Knuth D E. The art of computer programming, Volume 3, Sorting and searching[M]. Second edition.北京:清华大学出版社,2002.
  • 4严蔚敏 吴伟民.数据结构[M].北京:清华大学出版社,1997..
  • 5Shell D L. A high-speed sorting procedure[J]. Communications of the ACM, 1959, (2):30-32.
  • 6Weiss M A. Shellsort with a constant number of increments[J]. Algorithmiea, 1996,16:649-654.
  • 7CIURA M. Best increments for the average Case of Shellsort[J]. LNCS, 2001,2138:106-117.
  • 8Sedgewick R. The analysis of quicksort programs[J]. Acta Informatica, 1977, (7) : 327-355.

共引文献271

同被引文献39

引证文献7

二级引证文献20

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部