- 3
- 0
- 约1.17万字
- 约 18页
- 2017-10-06 发布于河南
- 举报
基础算法-递推法(Recursive algorithm)
基础算法-递推法(Recursive algorithm)
There is a class of questions, the changes between every two adjacent items have a certain regularity, we can put this rule into simple recursive formula as follows:
Fn=g (Fn-1)
This is the number in the sequence, establish the relationship between the antecedent and consequent, then from the initial condition (or end) to start, step by step according to the recursive relation of recursion, until the final results obtained (or initial value). Many programs are solved in this way. If a test, if we can find a relationship before and after a clear and its initial condition (end result), like to solve the problem, let the computer calculation is a step by step, let the computer do the high-speed repetitive operation, can really play the best use effect.
Recursive, backward push and push two forms. General analysis idea:
If solving condition F1
Then begin{inverted}
The problem (or recursive relation) to determine the final result of Fa;
For inverted formula Fi-1=g(Fi);
I=n {{start} from the final result Fn
While current results Fi non initial values F1 do are inverted by Fi-1=g (F1);
Output push back results F1 and push backward process;
End {then}
Else, begin{, push,}
The problem (or forward relationship) to determine the initial value of F1 (boundary conditions);
Find the forward relation formula F1=g (Fi-1);
I=1; {proceed from the boundary condition F1 {}}
The results of Fi while do Fn non final results by Fi=g (Fi-1) CIS push back;
The output of the Fn results and the pushing process;
End; {else}
I. backward pushing method
The push down method, is not in the initial value of the case, by some recursive relations and informed the solution of the problem or goal, and then push down over, infer its initial conditions. Because the operations of such problems are mapped one by one, the recurrence formula can be analyzed. Then, from this solution or goal, take the push back section, step by step into the initial statement of the problem.
Here
您可能关注的文档
- 古玩收藏-鉴藏讲座之虚谷作品之辨伪(Fake antique collection - collection of his works,).doc
- 古玩英语(Antique English).doc
- 古纸的分类(Antique classification).doc
- 古筝资料(Guzheng data).doc
- 古董家具收藏热点及入门(Collection and introduction of antique furniture).doc
- 古董瓷器投资与收藏行情分析(Analysis of investment and collection of antique porcelain).doc
- 古诗两首(绝句 早发白帝城)(The two poems (poems early Baidicheng)).doc
- 古诗文积累与阅读(Accumulation and reading of Ancient Poems).doc
- 古谱书籍简单介绍(Ancient books briefly introduced).doc
- 古风文字素材(Ancient text material).doc
- 伟明环保-市场前景及投资研究报告-境内业务稳健运行,印尼市场贡献边际增量.pdf
- 桂东县法院系统招聘考试真题2025.pdf
- 贵州省黔南布依族2026年中考三模物理试题及答案.pdf
- 贵州省黔南州2026年中考语文二模试卷附答案.pdf
- 贵州省铜仁市2026年中考语文二模试卷附答案.pdf
- 2026上半年安徽事业单位联考合肥市庐江县招聘36人备考题库及一套完整答案详解.docx
- 贵州省毕节市2026年中考语文一模试卷附答案.pdf
- 贵州省贵阳市南明区2026年中考语文一模试卷附答案.pdf
- 2026上半年安徽事业单位联考合肥市庐江县招聘36人备考题库及一套参考答案详解.docx
- 贵州省贵阳市白云区2026年中考二模物理试题附答案.pdf
最近下载
- 2024年浙江省中考英语真题卷(含答案与解析)_7429.pdf VIP
- 华东师大版八下历史第二单元第4课-“大跃进”和人民公社化运动PPT24张.ppt VIP
- 2012上海杨浦区高三英语二模试卷及答案.doc VIP
- FANUC数控车床的主轴控制设计.doc VIP
- 2022年ISGE指南:宫腔镜子宫肌瘤切除术(全文).docx VIP
- 2025年湖南省长沙市中考英语真题(附答案).pdf VIP
- 怎么参加展会才能获得客户.doc VIP
- 设计斜齿轮零件的机械加工工艺规程.doc VIP
- 安徽省经济潜在增长率的测算、分析与展望:基于多维度视角与实证研究.docx
- 基于大数据植入广告发展趋势研究.doc VIP
原创力文档

文档评论(0)