Thursday, April 7, 2016

SLOG Week #12


This week is the last week of the class, which also means this will be my last SLOG for this course. Overall, the course was pretty fun, even though the result is not what I was hoping for so far. But SLOGs were the not fun part of the course. It was stressful sometimes to come up with things to write about, especially with the ones that I had to hand it in. But SLOGs were useful since I had to read over the course notes to write about the materials covered in class and it actually helped with review. Only final exam remains for this course. I really hope I do well so that I can get in to the program.

Wednesday, March 30, 2016

SLOG Week #11

This week, I will talk about a topic that I talked about few weeks ago, back in week 6, recursion. Recursion is used in function to call the function itself, to repeat itself. Instead of using iteration such as for-loops and while-loops in a function, by using recursion, even though it may take longer to run, it makes iterative function much simpler, and it is much easier to use on data structure like trees. At the time I learned it, I understood the concept and was able trace recursive function by myself but I did not really understand how to implement it when needed. I thought of it as the most annoying and hardest topic for me to understand completely. My biggest mistake was when I was introduced to recursion, I thought it would be the easiest topic in this course, but I was wrong and it ended up being the hardest for me. Now, my views and confidence on that topic did not really change much. It is still annoying to learn and I am still not confident in my abilities when it comes to using recursion, even after learning trees and binary trees, writing test on that subject. Probably did not spend more time on it than I should have. Since recursion is very important part of the course, especially when it comes to trees, I should master my skills on it so that I can finish the course successfully.

Monday, March 28, 2016

SLOG Week #10

This week, we learned about sorting algorithms and their efficiency. There are many sorting algorithms we looked at in this course and in CSC108 but the one we spent most of the time on is the quick sort. Quick sort just breaks up the list and set a number to be a pivot and sort the numbers in respect to the pivot and recombine the list to complete sorting. the sorting algorithm for quick sort and any other sorting algorithms were not hard to understand. For me, it was easy to follow and more entertaining than recursion and trees. But calculating efficiency was pretty difficult and need more of my attention on that topic

Sunday, March 20, 2016

SLOG Week 9


We had our second test this week. Good news is that I did not run out of time, but I still struggled with a few questions and also realize I made some mistakes too, maybe I was too nervous. Hopefully the grade is not as low as it was last time. We are continuing our learning on mutating BinarySearchTree, such as inserting data in to the tree and deleting data in the tree. Now the codes are getting more complicated and need more thinking than other codes we looked at so far. Especially the deleting function had a lot of conditions that we had to check in the code using if and elif. Since I am pretty confident with BST, even though it is still a little confusing, mainly because of recursion, I still expect myself to understand this soon.

Sunday, March 13, 2016

SLOG Week 8


This week, we are learning about Trees and BinarySearchTrees. Trees are in form of tree with root and branch and leaf. We can also think of it as a family tree. Trees are made up of nodes that branches out by a branching factor(arity) and has height and depth. Trees or BinarySearchTrees use recursion and linked list nodes a lot in their functions and I think this is the reason I feels difficult to understand fully. Even though I understood recursion perfectly, it is still very difficult when trying to implement it on functions in Class Trees.  The course is going fine for now, but it feels like the course is slightly getting harder, and I should spend more time on this course especially because we have a test next week, it will be very important to fully understand Trees and BinarySearchTree since I expect majority of test question will be about this topic.

Saturday, March 5, 2016

SLOG Week #7

This week, I am going to write about Abstract Data Types (ADT). ADT is one of the topics I really enjoyed learning. ADTs are objects with information and behavior, meaning what kind of data it stores and what kind of operations will it use on that data. Examples we have seen are stack and queues and both of them are examples that we see in the real world often. Stacks are ordered so that last thing stored is the first one to get out. We can think of it as stacking dishes in the shelves, last dish getting stacked is one top of the stack, above all dishes, so when we take out a dish it will the one at the top, which is the last dish stacked. Queue is the opposite. First thing in the queue is the first thing to get remove. It works like lining up for food in a restaurant. If you are the first one in the line, you will the first one to get served. Since we focus on the real world situations like stacks and queues, it was really helpful to learn and understand the concept. I personally enjoyed this topic very much because the same reason. I really liked how we use the real world situations as examples and it showed me how it can be used and why it is important. Even on the assignment #1, we had to use ADT for storing rider using Queue, and storing events using PriorityQueue and showed how these ADTs can work in the real world situations. I personally think that ADTs are really important topic to learn as I feel like it will be used a lot for programming things like applications, because since we can change how ADTs behave, using it will make organizing data a lot simpler and easier.

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.

Friday, January 29, 2016

SLOG Week #3


We are now 3 weeks in to the course. For the first few weeks of lectures, the lectures were a little confusing because I couldn’t remember the things I learned back in CSC108 even though it was just about 2 months ago and because of that, I had some hard time with lab questions and the quiz in the first lab. But after few more lectures things started to make sense and now I feel like I can handle the material that is and will be covered in this course. SLOGs are one of many things I have to do for this course, and this probably will be my least favorite part of this course just because I don’t enjoy writing. But I think by doing all these writing about the course, what we learn, how I feel about the material covered in lecture almost every week is really good for review and self-reflection and that would be my goal with these SLOGs. Being able to do review and self-reflection with SLOGs hopefully lead to a success in CSC148.