Tuesday 11 February 2014

Week 5 Assignment #1

This week in CSC148, I focused on working on my assignment #1. During class, we learned about the tower of hanoi algorithm which was essential in doing assignment #1 and during our labs, we practiced our recursion by making functions such as freeze. The materials that I learned during class and labs helped me a lot when I was working on my assignment and especially I was really glad that we learned the tower of hanoi algorithm. But while I was working on my assignment I ran into lots of errors and was frustrated as finding i for different number of cheeses is challenging for me.

Thursday 30 January 2014

Week 4 Recursion

This week in CSC148, we had lessons on recursion and had practice on recursion by tracing nested_depth function and by playing with the turtle recursion programs. During this week's lecture, I was really confused about the turtle program and how we are supposed to trace and make different shape by spawning and sending the turtles to different places. On the other hand tracing nested_depth was fairly easy to understand and I had no problem tracing. Also this week's lab exercises about making super classes, subclasses and test cases was really helpful, especially, making our own test class to test our code helped me a lot as I could use it later on to test my exercises or even my assignment.

Thursday 23 January 2014

Week 3 Object Oriented Programming

Before taking CSC148 or even CSC108, I had some background knowledge on Java programming and this led me to believe that python programming would be similar to Java and I would have no problems in CSC148. This thought soon changed as I started listening to lectures on abstract data types, I was instantly lost and started to get confused on how stacks and queues work. The thing that frustrated me the most was why queues would take much longer time to store and pop data than stack. But after going to the lab and doing the lab exercises, I realized that when popping an item from queues, the rest of the items in the queues have to move and reorder themselves which was why queues would take longer time to complete a task than stacks. In conclusion, this week I learned a lot of new things such as abstract data types, class implementation.