Tuesday, 10 February 2015

Week 5: Impressions on Recursion

While I was given the recursion exercise handout sheet from Danny Heap's 10-11 am lecture, I was immediately frightened as to what was going to happen with this topic. I received the page from the back side and when I look at those questions, I was intimidated and lost my motivation for a brief period of time because it seemed all too impossible to learn within a 50 minute lecture. However, just like the complex math concepts like derivatives and integrals, if you showed those to me before I knew the basics, I would show the same signs of 'fear' that I would've when I saw the recursion exercise sheet. Recursion is all about learning from scratch and applying what we've learned to solve more complex problems.

Danny introduced us to the concepts of 'depth' in recursion and how 'depth 1' lists builds upon further depth lists with the same concept. The difficult part to grasp was depth 0 (empty lists), but that was quickly cleared up as Danny worked through the process with the class. Recursion is pretty useful to solve those lengthy tracing problems, but the concept of finding a 'depth 1' list and further applying it to bigger lists stuck with me throughout the week and I did well on the weekly quiz and exercise. Essentially, instead of re-writing each function call manually, you can simply just apply what you learned from the depth 1 list and apply it to sub-lists. I feel tracing recursions is one of my strengths, as long as I don't panic at first sight with a huge problem like I did the first time! Recursion will be a key concept within the course, so it is important that I stay on top of it for the rest of the semester to excel in the course.

No comments:

Post a Comment