Wednesday, 16 March 2016

Week 9

This week in CSC148 is the week of our second term test, so I've been focusing my energy on LinkedLists, Trees and Binary Trees. I found LinkedLists somewhat confusing the first time we went through them because I didn't have a good grasp of how L.front, L.back and L.size were functioning and I also was getting confused about what kind of object L.next_ is. Once I realized L.next_ was a LinkedListNode (or None) and not just a value like L.value it started getting clearer to me how all of this was supposed to work. I think my first time playing with LinkedLists I was assigning regular values to L.next_ and so print(L) was returning what looked correct but really the LinkedList was ruined and I later realized all of this when I tried doing L.append( ), etc.
For term test 2 I decided to work through all of the example functions provided to us for LinkedLists and Trees - there were quite a bit - but rather than use a computer and an IDE I stuck to pencil and paper. After I was confident with a solution I typed it up and tried it out and determined what, if anything, had gone wrong. I found this method to be extremely effective. I wouldn't say I studied for a particularly long time for the test, but my studying really paid off. Without the convenience of being able to run your code instantaneously and then mindlessly alter a few things here and there until it works, pencil and paper actually forced me to sit and understand what I was doing and go through the logic of it. It definitely increased my understanding of how LinkedLists and Trees worked and I really found that the mistakes I made I made only once or twice before learning my lesson (probably because I wasn't thoughtlessly changing code until I got it right but legitimately working through it).
This is definitely going to be my go-to study method in the future.

No comments:

Post a Comment