2015年4月6日星期一

A Look Back

 I revisit all my slogs, and I found that I agree with myself in every slog. But after reading some other people's slogs, I realized that although I didn't say something that I don't agree with now, but my point of recursion was very incomplete and useless.
 In my slog Summary of Recursion, I just 
simply introduced what recursion is and gave some 
example in the text. Yesterday I saw my friend 
Yuli's slog. She said that she didn't agree with 
herself because she used to think recursion is 
interesting and easy! I think the most important 
thing she wrote about in this week's slog is the 
method to implement a recursion function that she 
concluded herself: “The key part of recursion is 
to figure out the base case and the body. So, just like the instructor says, every time you write a recursive code,work from the base case up, and then test your base case. Once you are sure it works, test a problem one step larger.” I think this is a very useful conclusion. My friend Wenzheng also
choose to wrote about recursion in this week's slog. He gave two tips on implementing recursive 
functions: “Understanding the algorithm before 
writing the function.” and “Drawing a picture.” 
And he said that drawing a picture is the most 
important step because it helps you understand how the function work.
 The tips from Yuli and Wenzheng are really useful, I will use these tips to master recursion.

 

没有评论:

发表评论