Friday, 27 March 2015

A review of 'Week 5: Tracing Recursion'

Looking back on my weeks in this course, I can honestly say that, for me, recursion ended up somehow being the easiest, the most difficult, and most interesting topic touched upon this year, all at the same time, and so I think it is most appropriate that I review my first impressions of tracing recursion.

One of the first things I notice about my initial impression of tracing recursion is that I immediately acknowledged that it was a complicated concept, but that I also found it to be fairly easy. I would probably attribute this to the easiness of the questions provided for us at the time, because since then, we have seen much more complicated examples of recursive functions, like the minimax algorithm. However, it is probably due to all the practice with tracing recursion we got that we were able to understand and even develop our own recursive functions. With this in mind, I can honestly agree with myself that 'it gets easier with practice'.

It seems that I was not the only one who initially found tracing recursion 'easy'. Ji Yong (http://148choi.blogspot.ca/) accurately predicted that while tracing it was easy, building recursive functions would be less so. The difficulties of recursion escalated quickly when it came to examples such as traversing trees, but once again, I must agree with my initial reaction, which was that everything is nice and easy once you find a way to reduce whatever is given to the base case of choice.

All in all, recursion is definitely a multifaceted concept, and I definitely did not see it being as complicated as it would come to be, unlike some of my peers. Perhaps I was naive, but now I know not to underestimate the power of recursion. On the flipside, the practice that we got definitely helped with my understanding, and as a result, I got a grasp on recursion rather quickly. Here's hoping we discover more uses for this fascinating concept.

Maximum recursion depth exceeded.

No comments:

Post a Comment