Thursday, 12 March 2015

Week 8

Linked lists are pretty cool. Not quite sure how we're gonna use them yet, but they are still pretty cool.

In week 8, we were introduced to linked lists. Its an ADT that does 2 things: for one, it stores data at at its nodes, and secondly, its nodes point to other nodes (unless you're at the end of a linked list), so you can traverse the list by following the chain of nodes that point to each other.

I suppose that focusing on linked lists was a welcome break from recursion, but my main issue with linked lists is that I have no idea what makes it more useful than a generic list. I mean, you can traverse a list in a similar way, and lists are already built into Python, so there's no added code required to work with them.

I'm sure this will be cleared up soon, but for now, I'm interested in the topic, but not sure how its useful.

No comments:

Post a Comment