期刊文献+

单向链表快速排序算法 被引量:5

QuickSort algorithm for singly linked list
下载PDF
导出
摘要 单向链表广泛应用于动态存储结构,当前单向链表的排序算法普遍效率偏低,而平均效率最高的快速排序算法并不适用于单向链表。基于分治策略,使用递归方法,通过重新链接单向链表节点,提出了用于单向链表的快速排序算法,其平均时间复杂度为O(nlog2n),辅助空间复杂度为O(0),平均递归栈空间复杂度为O(log2n);同时,进行了算法分析和实验测试,其效率较其它单向链表排序算法有较大提高,且较传统基于线性表的快速排序算法也有一定提高。 Singly linked list is widely used for the dynamic storage structure, the current singlylinked list sorting algorithms generally have low efficiency, and the QuickSort algorithm with the high- est average efficiency is inapplicable to singly linked list. Based on the divide and conquer strategy and the recursive method, through re-linking the nodes of singly linked list, the paper proposes the Quick- Sort algorithm for singly linked list. Its average time complexity is O(nlog2n), its auxiliary space com- plexity is 0(0), and its average space complexity of recursion stack is O(log2n). Algorithm analysis and experimental testing are conducted. The results show that its efficiency improves greatly over the other singly linked list sorting algorithms and more traditional QuickSort algorithm based on linear array. We can conclude that the proposed algorithm solves the inefficient problem on singly linked list sorting.
作者 白宇 郭显娥
出处 《计算机工程与科学》 CSCD 北大核心 2014年第1期115-120,共6页 Computer Engineering & Science
关键词 单向链表 快速排序 原地排序 分治策略 singly linked list QuickSort in-place sort divide and conquer strategy
  • 相关文献

参考文献5

二级参考文献14

  • 1王兴华,崔峰.具有最高逼近阶的稳定Lagrange数值微分法[J].中国科学(A辑),2005,35(11):1314-1320. 被引量:3
  • 2阮传概 孙伟编著.近世代数及其应用:第二版[M].北京邮电大学出版社,..
  • 3李庆扬,王能超,易大义.数值分析[M].4版.北京:清华大学出版社,2005.
  • 4HANKE M, SCHERZER O. Inverse problems light: numerical differentiation [ J ]. Amer Math Monthly, 2001, 108 (6) :512 -521.
  • 5HANNAN E J. Testing for a jump in the spectral function [ J ]. J Roy Statist Soc :Series B, 1961,23:394 - 404.
  • 6WHITTLE P. The simultaneous estimation of a time series harmonic components and covariance structure[ J ]. Trabajos Estadist, 1952,39:43 - 57.
  • 7胡正国,程序设计方法学(第2版),1992年
  • 8仲萃豪,程序设计方法学,1985年
  • 9李元.时间序列中变点的小波分析及非线性小波估计[M].北京:中国统计出版社,2001.11-49.
  • 10张晓峰,白国强,陈弘毅.应用于网络安全协处理器的真随机数产生器[J].计算机工程,2009,35(10):229-231. 被引量:4

共引文献17

同被引文献40

  • 1范时平,汪林林,何先刚.一种线性原地二路归并算法[J].计算机科学,2004,31(12):221-222. 被引量:2
  • 2唐开山.循环插入排序法[J].计算机工程与应用,2005,41(12):88-91. 被引量:3
  • 3韩向春,刘学超,张秀杰.线状图形拾取算法的研究与改进[J].燕山大学学报,2005,29(4):305-307. 被引量:5
  • 4唐开山.4路插入排序法[J].计算机工程,2006,32(1):51-53. 被引量:5
  • 5Hoare C A R. Algorithm 64. quieksort[J]. Com- munications oS the ACM,1961,4(7) :321.
  • 6Knuth D E. The art of computer programming, Volume 3: sorting and searching[M]. Boston. Ad- dison-Wesley, 1997 : 138-141.
  • 7Lipschutz S. Theory and problems of data struc- tures , Schaum ' s outline series . international edi- tion[M]. New York McGraw-Hill, 1986 . 324-325.
  • 8Nardelli E, Proietti G. Efficient unbalanced merge- sort [J]. Information Sciences, 2006, 176. 1321-1337.
  • 9Dongarra J, Sullivan F. Gust editors introduction to the top 10 aigorithm. IEEE Computing in Science & Engineering, 2000, 2(1):22-23.
  • 10Horowitz E, Sahni S, Anderson-Freed S.数据结构基础.朱仲涛,译.第2版.北京:清华大学出版社,2009.

引证文献5

二级引证文献5

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

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