Wednesday, 10 February 2016

Week 5

This week pretty much came down to two things for me: try to understand what linked lists are and how they work, and prepare for the test. Well, the test is over now, and while there was nothing particularly challenging about the questions themselves, what was challenging was being able to answer them all in the amount of time given. I felt there was simply too much pressure from the short writing time to really get results that indicated how well we understood the material, but oh well, I know what to expect for next time now.
As for linked lists, this was an ADT I really enjoyed. I spent a good deal of time the other night fiddling with code and doing lab 4 in advance to get a better understanding of these things. At first I was really confused about how the nodes worked and I was under the impression that the next_ attribute of one node simply called the value of the next node, which was a bit silly. I honestly didn't think that drawing the nodes out on paper would help, I figured the image of these little boxes sitting near each other was easy enough to comprehend but I have to admit after I drew the pictures I was writing code a lot more efficiently. It's really useful to have something on a sheet of paper next to you for your eye to follow as you think about how to implement the code and where the code might run into problems.
The material is definitely starting to get tougher and more interesting!

No comments:

Post a Comment