Sunday, 8 March 2015

Week 8 Slog

This week we learned all about linked lists which are a linear sequance of nodes which keep track of which section is the front and which section is the back. This whole topic was completely new to me. I think linked lists are very interesting and useful because they are able to keep track of sublists of informtion which are related to each other. We also learned how to traverse across linked lists which is useful for mutating. Mutating across linked lists will give us the necessary practice needed to be able to mutate trees in the future which are much more difficult to mutate. Finally, we learned that since mutations allow for much more errors, it is essential to draw diagrams of linked lists and how a mutation will affect a linked list.
Some problems that I had this week had to do with lab 7 and implementing the various functions. Previously in class, we had only talked about what exactly a linked list was, and what it represented, as well as seeing the __init__ method. However, we had not yet worked with linked lists so I was not sure how to ewrite methods for them, and I was also quite confused as to what the various functions in the lab were supposed to do. In order to combat this problem, I reread the lecture notes seral times, and sought out extra materials about linked lists and how to implement their functions. I then compared my functions with the sample solutions that were posted a few days later, and made the required corrections for my notes.

No comments:

Post a Comment