I want to revisit my Week 5 post which is about recursion. First of all, I just want to say that I can't believe that the term is almost over and Week 5 seems like a long long time ago. I remember how we took it very slow at first, just tracing recursion on paper before even writing any code. And when we did write code, Professor Heap guided us step by step through the exercises. Because of all this, I now feel more comfortable reading and writing recursive code than I was back then.
Furthermore, all the extra exercises and lab work I've done then since then has really proved to me the importance of establishing the base case of recursive code. As I read through this slogger's post, I found that we kind of tackle problems in the same way. We feel more comfortable in writing recursive code once we're confident that the function handles the base case correctly.We also try to break down complex problems into smaller pieces by implementing helper functions. I've done this in my Assignments and I find it very helpful especially when debugging code.
Overall, I guess I would have to say that I agree with my earlier post. The difference now is that I've seen more applications of recursion, so I can appreciate it even more.
No comments:
Post a Comment