Tuesday, 10 March 2015

Linking Stuff...

Linked Lists !!!
I probably sound too enthusiastic but familiar terms make me happy :)

So linked lists is again something I've briefly done in high school and since its the same concept, I had a much easier time understanding.

Linked lists are basically linear sequence of nodes with a reference to the front or the head.

Linked List 

The key to understanding and doing well in linked lists is drawing it out. There's no better method. The front node here is the box with 2 and 2184 and the back node is the box with 7 and Null.
It is Null here since there is no next node to keep a reference to. The most important thing in linked lists is to know which nodes we have to keep track of. Insertion, deletion etc of nodes can get quite messy if we lose track of the nodes. This is where drawing comes in, it allows us to physically see which node needs to be connected to which other node. 

The labs for linked lists are pretty straightforward and I'm hoping to do well in linked lists related questions on the test tomorrow.

Speaking of.. test 2 ! 
With the strike in full force I'm kind of confused about how they'll mark us or if they even will. I'm hoping the strike is resolved soon with both the parties happy. I have to say not being able to actually go to labs is a bit of an inconvenience especially since our new TA seemed really helpful.

I'm all set for the test and honestly this slog was mostly just to take a break from the actual coding. 
I've discovered that I find it more helpful when I write the code down now since I've realized that it affects my performance. Depending too heavily on running the code on Wing makes me less intuitive about the logical as well as syntax errors I could be making. 

Until next time .. ! 

PS- Goodluck everyone ! :) 

No comments:

Post a Comment