Sunday, February 7, 2016

Slog #2 Week 4

This week, we learned about stacks, matching parentheses, linked list and nodes. Stacks has property that last thing that goes in to the stack should be the first thing to be taken out. We also saw things like queue which has a different property: 'first thing in is the first thing out' and it was fun comparing these methods with different property and how these are being used in real world.

Then we learned about matching parentheses. this was a straight forward topic that we should know already. parentheses has to be matching to be working. If they are not, they simply give an error and code will not run. This topic was pretty much a common sense so we did not spend much time on it in class.

Last thing we learned this week was linked lists and nodes. This was a new concept and was the hardest thing we learned this week. Node is object with value that refers to other similar objects. Nodes are used because python lists sometimes allocate large blocks of contiguous memory and using nodes solves the problem.

Overall, concepts we learned this week was not that difficult but I definitely still need to more understanding and practices on linked lists and nodes.

No comments:

Post a Comment