期刊文献+

五种排序算法的性能分析 被引量:8

Analysis on the performances of five sort algorithms
在线阅读 下载PDF
导出
摘要 排序是计算机科学中基本的研究课题之一,其目的是方便记录的查找、插入和删除.通过描述冒泡、选择、插入、归并和快速5种排序算法,总结了它们的时间复杂性和空间复杂性,指出5种排序算法可分为平方阶排序和线性对数阶排序两类.通过实验验证了5种排序算法在随机、正序和逆序3种情况下的性能,指出排序算法的适用原则:当记录较小时,可采用插入或选择排序;当记录基本有序时,可选用插入或冒泡排序;当记录较大时,则应选择快速排序或归并排序. Sorting algorithm is one of the most basic research fields in computer science.It's goal is to make record easier to search,insert and delete.Through the description of five sort algorithms: bubble,select,insert,merger and quick,the time and space complexity was summarized.Furthermore,two categories of O(n2) and O(nlogn) could be divided.On the record sequence of random,positive and reverse,the application rules was pointed out based on the experiments.When the size of records is small,insertion sort or selection sort performs well.When the sequence is ordered,insertion sort or bubble sort performs well.When the size of records is large,quick sort or merge sort performs well.
作者 淦艳 杨有
出处 《重庆文理学院学报(自然科学版)》 2010年第3期45-50,共6页 Journal of Chongqing University of Arts and Sciences
基金 云南省2009年社会发展科技计划项目(2009ZC128M)
关键词 排序算法 冒泡排序 选择排序 插入排序 归并排序 快速排序 sort algorithm bubble sort select sort insert sort merger sort quick sort
  • 相关文献

参考文献5

二级参考文献26

  • 1唐向阳.分段快速排序法[J].软件学报,1993,4(2):53-57. 被引量:48
  • 2苗翠霞,张玉忠.极小化加权总完工时间的分批排序问题[J].运筹学学报,2005,9(2):82-86. 被引量:19
  • 3高庆狮,刘志勇.纵、横、斜——倾斜与振荡法多路归并排序[J].中国科学(E辑),1996,26(6):549-557. 被引量:5
  • 4严蔚敏 吴伟民.数据结构[M].北京:清华大学出版社,1997..
  • 5D Cantone,G Cincotti.QuickHeapsort :an efficient mix of classical sorting algorithms[J].Theoretical Computer Science,2002;285:25-42
  • 6K E Batcher.Sorting networks and their application[C].1968 Spring Joint Compute Conf AFIPS,Washington,1968
  • 7K E Batcher.On bitonic sorting networks[C].The 1990 Int'l Conf on Parallel Processing,Philadelphia,Pennsylvania,1990
  • 8C D Thompson,H T Kung.Sorting on a mesh-connected parallel computer[J].Communications of ACM,1977,20(4):263-271
  • 9J Ja'Ja',M Owans.VLSI sorting with reduced hardware[J].IEEE Trans on Computer,1984,C33(7):668-671
  • 10T Nakatani,S T Huang,B W Arden,et al.K-way bitonic sort[J].IEEE Trans on Computer,1989,C-38(2):283-288

共引文献293

同被引文献61

引证文献8

二级引证文献11

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

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