Last week we talked about a new data type: linked list. At the very
beginning, I thought the linked list was very simple because it has just two
initial parameters, which are self.front and self.back. How simple it is! However,
I found I was wrong as the lecture went on. The linked is list is much more complicated
than I expected, especially when it combines with class LLNode. Sometime it
gets pretty confusing. In linked list. Each single LLNode has the value
self.front and self.back. As a result, when we implement methods such as __contains__,
__getitem__ and append, there are numerous factors that we should care about. For
example, when we implement append method, it is important that we assign lnk.back.nxt
= new_node first and then let lnk.back equal to new_node. The order of the
assignment matters a lot.
Besides, the assignment 2 was due on Thursday. We did not complete
our final version until the last minute of the due time. Anyway, fortunately,
we work out the minimax strategy, thanks for Mr. Heap’s tips in the emails. I have
to say the assignment 2 is the most challenging assignment I have ever went through.
I even once wanted to give up. However, I got over the trouble and made it. This
is an amazing experience.

No comments:
Post a Comment