期刊文献+

深度优先稳定原地归并排序的高效算法 被引量:7

Efficient algorithm of depth-first stable in-place merge sort
下载PDF
导出
摘要 基于分治策略,使用深度优先的方法,提出了一种用于线性表的稳定原地归并排序算法,其时间复杂度为O(n lb n),辅助空间复杂度为O(1),递归栈空间复杂度为O(lb n),同时进行了算法分析和实验测试。实验结果表明,该算法效率较STL中的稳定原地归并排序算法有67.51%的提升,解决了稳定排序算法中要么时间复杂度高要么空间复杂度高的问题。 Based on divide-and-conquer strategy,the depth-first method was used to design an algorithm of stable in-place merge sort for linear array.Its time complexity was O(n lb n),its auxiliary space complexity was O(1),its space complexity of recursion stack was O(lb n),and the algorithm analysis and experimental testing were completed.By analyzing the experimental results,its efficiency compared with stable in-place merge sort algorithm in the STL has a 67.51% improvement,which solves the high time complexity or high space complexity problem of stable sorting algorithm.
作者 白宇 郭显娥
出处 《计算机应用》 CSCD 北大核心 2013年第4期1039-1042,1060,共5页 journal of Computer Applications
关键词 归并排序 原地排序 稳定排序 分治策略 深度优先 merge sort in-place sort stable sort divide and conquer strategy depth-first
  • 相关文献

参考文献10

  • 1BERGIN J. Data structure programming[ M]. New York: Springer- Verlag, 2005: 270 - 301.
  • 2MAIN M. Data structure and other objects using C ++ [ M ]. Bos- ton : Addison-Wesley,2004 : 104 - 115.
  • 3KLEINBERG J, TARDOS E. Algorithm design[M]. Boston:Addi- son-Wesley,2005 : 157 - 179.
  • 4CORMEN, T H , LEISERSON C E , RIVEST R L , et al . Introduction to algorithms[ M]. Boston: MIT Press, 2005:115 - 146.
  • 5SEDGEWICK R, WAYNE K. Algorithms fourth edition[ M]. New Jersey: Pearson Education, 2012:121 - 138.
  • 6HAGERUP T. Algorithm theory - SWAT 2004[ M]. New York: Springer-Verlag, 2004:63 -68.
  • 7GROSSMAN H. On the number of divisions in finding a G. C. D.[ J]. The American Mathematical Monthly, 1924, 31 (6) : 508 - 510.
  • 8HONSBERGER R. Mathematical Gems II [ M]. Washington, DC The Mathematical Association of America, 1976:25 -27.
  • 9孙翠芳.关于二进制GCD算法的注记[J].中国科学技术大学学报,2004,34(1):126-127. 被引量:1
  • 10STIGLER S M. Statistics on the table [ M]. Boston: Harvard University Press, 1999:55 - 59.

二级参考文献2

同被引文献68

引证文献7

二级引证文献9

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

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