As a person who has dealt with lists for so long, it's hard to see the difference between Linked Lists and Lists at first. They both seem like lists of things. Especially because of the way we imagine Linked Lists, nodes connecting to other nodes, we may not realize what it is like to the computer. For example, a human could easily look at the drawing of a Linked List when asked to name the third element without traversing the list, whereas the computer can only name the third element by going through the list node by node. Only the front and back and their reference points are visible to the computer, otherwise a path must be followed.
Other than teaching us the concept of object oriented programming, including the concept of stacks, I don't see the real purpose of Linked Lists. From what I can tell, all operations take more time. However, I realize that even lists are a class, and perhaps the methods Python uses for them aren't very efficient either.
The concept is simple enough but its uses are unexplored by me.
No comments:
Post a Comment