全部 标题 作者
关键词 摘要

OALib Journal期刊
ISSN: 2333-9721
费用:99美元

查看量下载量

相关文章

更多...

森林在递归算法分析中的应用
Application of Forest in the Analysis of Recursive Algorithm

DOI: 10.12677/CSA.2019.97157, PP. 1398-1405

Keywords: 森林,逻辑映射,状态表,递归算法,搜索,回溯
Forest
, Logistic Map, State Table, Recursive Algorithm, Search, Backtrack

Full-Text   Cite this paper   Add to My Lib

Abstract:

本文提出用森林进行递归算法分析的方法,该方法将递归逻辑映射到森林,具体处理上以树为处理单元,对程序递归结构分析,定义树节点,通过搜索建立树和调用状态表,所建立的树不局限于二叉树,根据实际问题可以是单分支树、二叉树、多叉树,甚至多棵树组成的森林,到达叶子节点进行回溯,根据程序执行情况,多棵树需要树间跳转;依据树和调用状态表的对照,既分析全面,又使分析结构清晰、结果准确、适用广泛,有效解决了递归算法结果分析中的难题。
This paper presents a method of recursive algorithm analysis by forest. This method maps recur-sive logic to forest. Tree is used as processing unit. The recursive structure of program is analyzed and tree nodes are defined. Tree is established by searching and calling state table. The tree is not limited to binary tree. According to practical problems, it can be composed of single branch tree, binary tree, multi-branch tree or even multi-tree. According to the implementation of the program, many trees need to jump between trees. According to the comparison between the tree and the invocation state table, the analysis is comprehensive, and the analysis structure is clear, the results are accurate, and the application is extensive, which effectively solves the difficulties in the analysis of the results of the recursive algorithm.

References

[1]  Prata, S. C Primer Plus [M]. 第6版. 姜佑, 译. 北京: 人民邮电出版社, 2016: 256-282.
[2]  晏素芹. 递归算法的教学方法探讨——以C程序设计为例[J]. 福建电脑, 2018, 34(8): 170-171.
[3]  方娇莉, 潘晟旻, 刘明. 程序设计微课教学设计方法研究——以递归为例[J]. 计算机教育, 2016(5): 116-120.
[4]  吴晓晨. 递归程序设计教学方法的研究[J]. 天津科技, 2017, 44(1): 69-71.
[5]  陈瑞环, 杨庆红, 姚兴. 使用递推解决递归问题的研究与应用[J]. 计算机应用与软件, 2011, 28(3): 186-187.
[6]  周法国, 韩智, 高天. 递归算法设计思想与策略分析[J]. 软件导刊, 2017, 16(10): 35-38.
[7]  张建波. 一种将递归过程转换为非递归过程的方法研究[J]. 计算机教育, 2017(8): 139-142.
[8]  黎远松. 基于树的递归算法分析技术[J]. 四川理工学院学报(自然科学版), 2012, 25(4): 50-51.
[9]  张俊. 基于递归树的递归调用分析[J]. 实验室研究与探索, 2010, 29(3): 83-87.
[10]  严蔚敏, 吴伟民. 数据结构(C语言版) [M]. 北京: 清华大学出版社, 2009: 118-155.

Full-Text

Contact Us

service@oalib.com

QQ:3279437679

WhatsApp +8615387084133