Tracing recursion

12:33 0 Comments

Recursion was never one of my strong suits, much less tracing it, so I found it especially difficult to think in such a manner. When I first learnt about recursion I was blown away by the concept, it wasn't something that I had seen before. As I never had any applications of recursions I just wanted to get it over with. Week #4 had been a great way to get myself working with recursion more thoroughly, I found the Prof. Heap went over the content really well and broke it down into its smaller parts which I think greatly helped in allowing me to understand the material a lot better. The example of the nested lists at the start of the week proved to be really understandable and easy to follow along to. Tracing the recursive calls allowed me to become more familiar with things like the base case and the general case which I initially had no idea about.


Later in the week we moved to more complex functions that dealt with the cases of recursive types and began to implement a lot of the concepts we had learnt throughout the lectures. I think the lab and lecture notes really helped me become more familiar with recursion and maybe I'll use some of the concepts in my own projects.

karncsc148

Some say he’s half man half fish, others say he’s more of a seventy/thirty split. Either way he’s a fishy bastard.

0 comments: