Wednesday, 5 March 2014

Linked Lists

Hello Folks,

First order of business, lousy poetry.

About LinkedLists did Danny teach,
He thought, surely all's a-peach!
But caused me to screech
And Beseech for release!

Actually, it isn't all that bad. Over the weekend I had to study for a mid-term on Monday so I hadn't the time to learn the readings.
LinkedLists are very interesting data structures. At least for me, it's the first time that I've ever been exposed to a recursively defined data structure. The general idea is that we don't need to worry about the details of what's at each particular node of the list and we don't need to worry about indexing etc matching up if we make changes to the node. All we need to be careful of is that once we do whatever method, that we still end up with a chain.
Actually, that is a good visualization for LinkedLists, they are chains on data. So for example, if we wanted to change the value at a particular link in the chain, we just need to go there and change that link.
Whilst say we wanted to add a new link to the chain, we would need to join the part of the chain before the position where we wanted to insert the new link to the the start of the new link as well as join the new link to the part of the old chain just after the position where we wanted to add the new link.

Not much else to say except that I really need more programming practice.

Live Long and Poop Regularly,
Seigal

2 comments: