Saturday, 9 April 2016

Week 11: A look back at Recursion

The importance of recursion was not quite clear to me when I was first introduced to this subject halfway into the semester. I viewed recursion as a quicker tool to solve problems that required similar functions occurring repeatedly, but I only considered it as a quicker alternative to methods that already existed to solve similar problems. But once I was introduced to Trees and Binary Trees later on into the semester, the necessity of recursion became quite apparent to me. Trees can be branched into multiple levels, and the only way to cover each level and make sure any calculation or function we are trying to accomplish with these components of a tree runs through every level is recursion. Thus, the importance of recursive functions becomes clearer after understanding the functionalities of a tree.

My Week 7 post about recursion tries to explain the general structure of a recursive function and how it reduces the code necessary to perform a repeating task without a recursive method. But now that I have gained much more insight into the depths of recursion and its uses, its structure and complexity can vary greatly, completely depending on the problem that is supposed to be solved. I have come across some very complicated problems that requires extremely sophisticated recursive thought process and coding to solve, and that just proves that nothing is ever too easy in computer science. But I am proud that I am understanding such in-depth concepts of computer science and I cannot wait to learn more about concepts like recursion and trees, and whatever new challenge comes my way. It has been quite a pleasure attending Professor Heap's lectures, and I really hope I can put all this information to good use during my finals. This is Jarraf, and I am signing off for now. Those finals won't study for themselves. Until next time friends, Adios!

No comments:

Post a Comment