锘??xml version="1.0" encoding="utf-8" standalone="yes"?>久久国产精品一国产精品金尊,久久中文字幕一区二区,久久精品中文字幕有码http://m.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://m.shnenglu.com/uglystone/archive/2008/03/16/44620.html涓戠煶涓戠煶Sun, 16 Mar 2008 10:54:00 GMThttp://m.shnenglu.com/uglystone/archive/2008/03/16/44620.htmlhttp://m.shnenglu.com/uglystone/comments/44620.htmlhttp://m.shnenglu.com/uglystone/archive/2008/03/16/44620.html#Feedback0http://m.shnenglu.com/uglystone/comments/commentRss/44620.htmlhttp://m.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 鍙戣〃璇勮
]]>
久久精品国产AV一区二区三区| 日产精品久久久久久久性色| 国产精品久久亚洲不卡动漫| 久久成人影院精品777| 久久久受www免费人成| 伊人久久一区二区三区无码| 久久人人爽人人爽人人片av高请| 久久国产一区二区| 亚洲中文字幕无码一久久区| 66精品综合久久久久久久| 久久亚洲熟女cc98cm| 亚洲国产精品婷婷久久| 久久精品国产亚洲AV不卡| 国产精品99久久久久久www| 久久国产精品一国产精品金尊| 久久高潮一级毛片免费| 99精品久久精品| 久久精品天天中文字幕人妻| 色综合久久88色综合天天 | 国产精品无码久久综合| 久久久一本精品99久久精品88| 亚洲国产精品久久久久婷婷软件 | 亚洲精品无码专区久久久| 亚洲综合精品香蕉久久网97 | 国产产无码乱码精品久久鸭| 色狠狠久久综合网| 久久九色综合九色99伊人| 国产Av激情久久无码天堂| 久久久亚洲欧洲日产国码aⅴ| 久久精品国产久精国产果冻传媒| 久久精品极品盛宴观看| 性欧美大战久久久久久久| 精品久久久久久国产免费了| 国产精品美女久久久免费| 国产L精品国产亚洲区久久| 免费国产99久久久香蕉| 亚洲国产二区三区久久| 久久青青草原精品国产不卡| 色综合久久中文字幕综合网| 一本久久a久久精品综合香蕉| 亚洲日韩欧美一区久久久久我|