Saturday, 4 April 2015
Last impressions (Week 12 SLOG)
Finally, we arrive at the end of CSC148. Looking back at the beginning of the course, I never thought I'd be able to tackle some of the tasks given in the assignment and tests. I remember being daunted by the concept of Python classes in my first lecture, and how the first assignment had no starter code, unlike all previous CSC108 assignments. Those concepts and problems seem trivial now. As the course went by, I found that the freedom in CSC148 allowed me to develop my own coding style, and allowed me to critically think about how a number of functions and methods can come together for one single purpose. Recursion was a big part of the course, and still a tough concept; however, identifying the base cases and careful thinking can unravel some of its mysteries. Not only did we write recursive code, we also saw how recursion can be used to improve efficiency. Tree traversal can often be a long procedure. If we use recursion to "remember" traversed subtrees and their values, we can greatly reduce the time it takes to search for something in a tree. We also looked at recursive data types such as linked lists. Linked lists are unique in that they have instance variables for the front and back node. While I still need time to tinker with linked lists in order to fully understand it, I was shown in lecture that they are not simply an arbitrary class to help CSC148 students with recursive thinking. We were shown its applications in improving the Queue function. Using linked lists, we were able to remove the dependence of n on Queue. In the end, CSC148 was a challenging course for me, as I have very little prior knowledge of programming or computer science in general. However, I am glad that I stuck through the course, as I gained invaluable experience and insight into the field.
Subscribe to:
Posts (Atom)