Sunday, 8 March 2015

"Impressions of Week #7"

As the year progresses, the material has become substantially more complex.  The early subject matter didn't require much thought to fully comprehend, but week 7 has proven to be a diversion from what I would usually expect.  Further learning about tree's is very interesting as the utility of such data structures is clearly seen.  This week we have learned about binary trees, only consisting of two branches rather than a possibly infinite amount such as we have seen in previous weeks.

I was very glad to see that a sample solution was posted for the lab #6, as initially I had difficulty understanding some of the content.  During the previous lab I was only able to complete one of the assigned functions within the lab period time, and by reviewing the techniques used in lab #6 I was able to return to the previous lab and complete some of the other functions with much less trouble.  Recursive techniques still prove to be a challenge for me, so I was happy to see that recursion was used frequently throughout the lab, allowing myself to gain more experience with the implementation.

Specifically the find_max function was extremely helpful to my understanding of recursion, even though the actual code to execute the function is one simple line!  I was going about the problem all wrong, trying to do way to much when the solution itself was very simple.  With the understanding of this function, I was able to apply my knowledge to write the list_longest_path function without much difficulty.  I first wrote down the algorithm I was going to execute in english, knowing that I had to compile two lists and then judge which one was the longest and return such list.  After clearly articulating what I was going to do, the implementation of the code seemed significantly more straight forward.  I feel as if explaining the algorithm in english will be a key part of my learning new coding techniques in this course.

Overall the week was challenging, but with the examples provided in class and with the lab solutions I feel as if I will have a firm understanding of the content by the time the midterm comes around.

No comments:

Post a Comment