期刊文献+

出栈序列合法性研究与实现

Research on and Implementation of an Out-Stack Sequence
下载PDF
导出
摘要 栈是一种非常重要且特殊的数据结构,任何递归和函数调用都离不开栈。研究n个元素的进栈与出栈性质是栈的主要研究内容。该文在出栈序列深入分析和研究的基础上,针对某一序列是否为合法出栈序列的问题,提出了一种基于三元素出栈序列索引的时间复杂度为O(n2)的新算法。该算法简单易懂并且比其他传统判断方法具有更高的效率。 A stack is a very important and special data structure.Any function call can not be separated from the stack.Research on the in-stack and the out-stack of n elements is a main content.The character of out-stack sequence is analyzed and re searched in this paper and a new algorithm is proposed for judging a sequence whether it is a rational out-stack sequence.The al gorithm is based on the three-element-index of out-stack sequence and its time complexity is O(n2).The algorithm is simple and easy to understand and more efficiency than the other traditional method.
作者 姜华林 李立新 陈强 JIANG Hua-lin,LI Li-xin,CHEN Qiang(1.Zunyi Vocational and Technical College,Zunyi 563000,China;2.Southwest University,Chongqing 400715,China)
出处 《电脑知识与技术》 2013年第3期1578-1581,共4页 Computer Knowledge and Technology
关键词 数据结构 出栈序列 三元素索引 算法 Stack data structure out-stack sequence three-element-index algorithm
  • 相关文献

参考文献6

二级参考文献17

  • 1厉海燕,李新明.一种证明程序正确性的方法[J].计算机应用,2001,21(z1):158-159. 被引量:3
  • 2范年柏,张大方,颜学义,周立彪,肖庆丰.基于栈操作的用例规模的一个计算公式[J].湖南大学学报(自然科学版),2004,31(6):80-82. 被引量:4
  • 3徐凤生.出栈序列的性质及其求解新算法[J].计算机工程与应用,2006,42(5):66-68. 被引量:12
  • 4[罗]Tomescu I 栾汝书(译).组合学引论[M].北京:清华大学出版社,1985.27-28.
  • 5前沿考试研究室.计算机专业研究生入学考试全真试题-数据结构与程序设计分册【M】.北京:人民邮电出版社,2003..
  • 6卢开澄.组合数学【M】.北京:清华大学出版社,2001.119-122.
  • 7李云清,杨庆红,揭安全.数据结构[M].2版.北京:人民邮电出版社.2009.
  • 8卢开澄.组合数学[M].2版北京:清华大学出版社,1991:119-130.
  • 9Englewood Cliffs. Data structures and program design [M]. Pren- tice Hall, 1994.
  • 10严蔚敏 吴伟民.数据结构[M].北京:清华大学出版社,2002..

共引文献17

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

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