期刊文献+

基于MATLAB的神秘数算法设计与实现

Design and Implementation of a Mystery Number Algorithm Based on MATLAB
下载PDF
导出
摘要 在几种常用的算法设计策略中,递归策略是设计有效算法最常用的策略之一,递归技术的应用往往使得设计出来的算法简洁易懂且易于分析。通过仔细分析SS表达式的形式定义,提取出SS表达式的内在特征,运用递归的算法设计思想,巧妙地设计并实现了计算包含指定括符种类、括符对数及指定深度时SS表达式个数的算法,从而解决了相应的神秘数问题。最后在MATLAB上实现时,又借助存储表,避免了大量的重复计算,极大地提升了程序的运行速度。解决SS表达式问题的相关思想与技术,可以运用到程序的编译中去,也可以在相类似的问题求解中得到广泛运用。 The recursion is one of the commonly used strategies in the algorithm design. It often makes the algorithms brief and easy to be understood and analysed. The article first analyses the SS expression's formal defination and abstracts its features , then designs and implements the algorithms with the recursive thought to compute the number of the SS expression string which contains different kinds of bracket, different quantity of bracket and specific depth. The article solves the mysterious number problem. Finally, by using a store table the large amount of repetitive computation is avoided and the programs written in MATLAB language are sped up greatly . The thought and techniques to solve the SS expression problem can be used for the program' s compiling and the similar problems.
出处 《计算机仿真》 CSCD 2007年第6期337-340,共4页 Computer Simulation
关键词 算法 递归 仿真 编译技术 Algorithm Recursion Simulation Compiler technology
  • 相关文献

参考文献2

  • 1 [美]S巴斯著,朱洪等译.计算机算法:设计和分析引论[M].上海:复旦大学出版社,1985
  • 2[美]D Hanselman,B Littlefield 著,张航,黄攀译.精通MATLAB 6[M].北京:清华大学出版社,2002.

共引文献1

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

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