检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
机构地区:[1]赣南师范学院数学与计算机系,江西赣州341000
出 处:《计算机仿真》2007年第6期337-340,共4页Computer Simulation
摘 要:在几种常用的算法设计策略中,递归策略是设计有效算法最常用的策略之一,递归技术的应用往往使得设计出来的算法简洁易懂且易于分析。通过仔细分析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.
分 类 号:TP311.1[自动化与计算机技术—计算机软件与理论]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:216.73.216.145