Thursday, 5 March 2015

slog for week 9

   This week we learnt about linked lists, which we can think of in two ways.

1. as lists made up of an item (value) and a sub-list (rest)
2. as objects (nodes) with a value and a reference to other similar objects
   Then we started to implement the methods. At first, this process is kind of difficult since it is easy to lose track of what I was doing and what I should do next. I have to set an example for myself, and keeping turning to it. Then the professor told us to draw pictures while writing the code. That really helped. When using this method, I would not lose track as much and would not forget anything that I should do.
   It is so sad that we did not have practical this week. Computer science practicals are always the ones I love the best; the TA is really helpful and patient. I learnt a lot from the practicals past few weeks. Practice makes perfect, even if it will not make perfect, at least it can help you on the way to perfection. To get some practice, I went to the lab as usual, even though the TA was not there. I worked out several problems with the help of my friends, and had a better understanding of the topic. From merely imitating the code given by the professor to thinking independently, I learnt a lot.
For example, linked list can not be copied, I figured that out when I was trying to copy a linked list and it raised an error.
   Still have some  problems left undone. Thanks to my friends who have helped me a lot on the practical problems. I am going to work harder on it, and I will have my second term test next week.

Good luck to me and to everybody

Ciao
DarkFox

3 comments:

  1. This comment has been removed by the author.

    ReplyDelete
  2. Hello!

    You should really just care about the second way of looking at linked lists. By the way I also think that making drawing helps when dealing with these lists.

    It is nice that you are going to tutorials. Keep it up.

    All the best,
    Christian

    ReplyDelete
    Replies
    1. Hi!
      Thank you very much for the advice. It's great to see your comment. I'll keep going to the tutorial and make the best out of it.

      Have a nice day!
      Dark Fox

      Delete