Wednesday, 2 March 2016

Week 7: A discussion of Recursion

This week's post is going to extend the same concept as last week's topic which as I mentioned is a huge topic in CS so it makes sense to give it the extra space it deserves.

I had done a bit of recursion in my high school classes but it was a brand new application when I saw it being used with list comprehensions. Wrapping my head around the fact that 1 line can replace 5 lines was really amazing to see. I needed a lot of practice to get around it and using it properly. By the end I was very comfortable using recursion with list comprehensions. The lab on list comprehensions also helped in solidifying my understanding though there could have been some examples of the reverse from for and counters to list comprehensions.

Trees was another big topic for recursion. They are another way to make connections in data which would be very useful for paths and graphs of methods. Trees can be organizing solution paths to maze directions where each leaf can represent a different set of turns. It seems to be an ok concept with a bit of practice both in class and in the assignment I believe that it can be conquered.

AM Signing off

No comments:

Post a Comment