Sunday, February 28, 2016

SLOG Week #6

This week, we learned about new topic, recursion. Recursions are basically functions that calls itself. By doing that, the function can do things like, for example, calculating sum of numbers in list when there are lists in list or more list ore list with depth of greater than 2. Since the function calls itself, whenever there is a list in list, we call the function on that list so that it calculates the sum of the numbers in the list, or if there is another list, calls the function again and repeat. In the end, when it calculates all the sums, it just returns the total sum as we wanted. Personally this is by far the most entertaining topic to learn. It was a lot easier to understand than other previous topics we learned in the past and I feel very confident with this topic.

The lab and quiz this week went pretty well, I could fully understand all the things I had to do. Hopefully the result is as good as I expect it to be. On the other hand, the test result was very disappointing. it was a lot lower than I expected. The shortage of time was more of a problem than I expected. But past is a past, I just have to work really hard to earn my marks back.


Saturday, February 13, 2016

SLOG Week #5


Week #4

This week, we only had 1 hour of lecture, because of the first midterm for this course. It did not go as I expected and wanted, even after spending a long time studying. Main problem I had with the test was I ran out of time to complete it. Maybe I panicked when there weren't much time left but had a lot to finish, so I had to rush through all questions to finish and as a result my writing got very messy. Hopefully, the person marking can read it... I found the test way too long compared to the time we were given to write it. At least now I know how to prepare for the test more effectively. Because of the test, we only had 1 hour lecture this week because of the midterm and we continued on learning the linked list nodes. This topic was confusing me quite a bit before the test, but after studying for test, I had no problem with it. But I still had difficult time during the lab and as a result I could not finish the lab and did poorly on the quiz. I get stuck a lot when I am programming and I should just spend some time just reviewing and reading over basic things and reading over all the course notes again and maybe some from CSC108 so that I don’t struggle while programming.

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.