2015年2月12日星期四

week5: Tracing recursion

This week, I learn about tracing recursion. It's basically  about how to get a unknown problem solved by a known problem. For the sum_list problem, we solve a depth_n problem by looking at the n-1 terms, the we use n-2 terms to solve n-1 problem. Just like simplification the functions, we deduct step by step until we get the base case.


没有评论:

发表评论