锘??xml version="1.0" encoding="utf-8" standalone="yes"?>久久国产精品一国产精品金尊,久久中文字幕一区二区,久久精品中文字幕有码http://www.shnenglu.com/uglystone/category/4136.htmlprograming is a pleasure!zh-cnFri, 23 May 2008 03:09:09 GMTFri, 23 May 2008 03:09:09 GMT60Thinking recursivelyhttp://www.shnenglu.com/uglystone/archive/2008/03/16/44620.html涓戠煶涓戠煶Sun, 16 Mar 2008 10:54:00 GMThttp://www.shnenglu.com/uglystone/archive/2008/03/16/44620.htmlhttp://www.shnenglu.com/uglystone/comments/44620.htmlhttp://www.shnenglu.com/uglystone/archive/2008/03/16/44620.html#Feedback0http://www.shnenglu.com/uglystone/comments/commentRss/44620.htmlhttp://www.shnenglu.com/uglystone/services/trackbacks/44620.htmlFirst,Let's know the principle:
Recursive leap of faith-
When you try to understand a recursive program,you must be able to put the underlying details aside and focus instead on a single level of the operation. At that level,you are allowed to assume that any recursive call automatically gets the right answer as long as the arguments to that call are simpler than the original arguments in some respect.The psychological strategy-assuming that any simpler recursive call will work correctly-is called the recursive leap of faith!
The idea may be difficult to newers! Take an example for it:
We all know the Fibonacci function:
F(n)=F(n-1)+F(n-2)
Recursive implementation of the Fibonacci funtion:

int Fib(int n){
if (n<=1)
   
return n;
 
else
   
return Fib(n-1)+Fib(n-2);
}

 if n is 5,Fib(5) is computed by the sum of Fib(4) and Fib(3).
Applying the faith,you can assume that  the program correctly computes each of these values,without going through all the steps that Fib(4) and Fib(3) is computed!



涓戠煶 2008-03-16 18:54 鍙戣〃璇勮
]]>
久久―日本道色综合久久| 97久久精品无码一区二区天美| 久久国产V一级毛多内射| 久久精品中文字幕一区| 久久久久亚洲AV无码观看| 性做久久久久久久| 久久婷婷五月综合色99啪ak| 思思久久精品在热线热| 久久噜噜电影你懂的| 久久亚洲AV成人无码软件| 97久久香蕉国产线看观看| 久久综合视频网| 激情久久久久久久久久| 婷婷五月深深久久精品| 欧美麻豆久久久久久中文| 99麻豆久久久国产精品免费| 国产精品久久久久久久久软件| 一级做a爱片久久毛片| 日韩人妻无码一区二区三区久久| 国产女人aaa级久久久级| WWW婷婷AV久久久影片| 中文字幕日本人妻久久久免费 | 伊人色综合久久天天人守人婷 | 亚洲精品无码久久千人斩| 草草久久久无码国产专区| 99国产精品久久久久久久成人热| 久久精品国产2020| 久久亚洲中文字幕精品一区| 久久国产精品免费| 精品久久久无码中文字幕天天| 久久国产一区二区| 久久香蕉国产线看观看乱码| 久久99精品久久久久婷婷| 久久精品无码专区免费青青| 久久亚洲精精品中文字幕| 精品久久久久久久无码| 久久久久亚洲av无码专区| 97久久香蕉国产线看观看| 久久er国产精品免费观看2| 久久精品一区二区三区不卡| 国产成人精品综合久久久|