Tuesday, 10 March 2015

Week 8 impressions

   Another week has passed by, and I need to write another post. This week in class we learned about linked list structures. As it was already noted in the lecture linked lists have a lot in common with trees. However, in difference to trees linked lists can only have one node on them. I think the idea of reference between the nodes of the list can be very useful and important. It helps to connect otherwise unrelated data structures and use them as a whole. But although linked lists seem simple at first, it soon became clear to me that working with them requires not only thinking about the concept, but also a big deal of drawing pictures. Drawing schemes really helps when you start to create the code, because otherwise it is pretty easy to get lost in nodes and lose track of what the code is doing. When working on the lab exercises I realized how tricky these lists can be. Putting cur_node instead of cur_node.value has screwed up my entire work and cost me a lot of time to find and correct. Besides, the alternation between cur_node and prev_node in one of the functions was not easy to understand without a picture, however, I managed to figure it out once I've done the drawing.
 
   To conclude, I hope that with more practice I'll get better with writing methods and functions for the linked list structures. And  of course I hope that my second midterm will be at least as good as the first one.

 

No comments:

Post a Comment