Monday, 28 March 2016

Week 11 - Looking Back at Week 7

A few weeks ago (week 7) I wrote a blog post on the topic of recursion. In that post I talked about why recursion was useful and gave a few examples of what it could be used for; factorials and the Fibonacci sequence. However, I did not know how to apply it in real life situations.

It was not until the past few weeks that I really understood why recursion is useful in real programs. I've touched this topic in high school but not into the depth that I'm learning in this course. From the examples given during lectures and especially the previous assignment, I'm finally understanding how useful recursion really is and how it can be applied in real life. For the assignment we had to use recursion in order to implement two different search methods. These search methods also had to use methods from other files in order for the program to run. To me, this really showed the importance of recursion.

On my post from week 7 I wrote that recursion was a difficult topic for me and that I was having trouble implementing it. While recursion still is a difficult topic, I believe that I've improved on it a bit and that I will continue improving on it, especially now that I know how it can be used in a real life program.

Friday, 25 March 2016

Week 10

This week we got our marks back for the second term test and my mark wasn't as great as I hoped it would be. I think I'll be fine as long as I get decent marks for the next assignment and for the final exam.

The second assignment was due this week and my group was able to finish most of it, however, we couldn't get one of the methods in puzzle_tools to work. Next week we're going to have a demo during our lab time where we'll talk to a TA about the assignment and our code for a few minutes so they can see out understanding of it.

Friday, 18 March 2016

Week 9

This week we had the second term test and it was as difficult as I expected it to be but I was also not feeling very well that day. However, even if I did really badly on it, it is only going to be worth 8% of my final mark so I can make up for it in the final exam.

The second assignment is also due next week and I've started working on it. It seems much harder than the first assignment but hopefully my group will be able to get our code to work.

Saturday, 12 March 2016

Week 8

During the lectures this week we learned about binary trees. The example code that we were shown in class involved a mix of both linked lists and recursion. I guess now we're learning how to implement the different things we learned through the course and use them together to make a class.

Next week we're going to have the second midterm and then the week after the last assignment is due. The pace for this course is really picking up as we get closer to the end of it.

Wednesday, 2 March 2016

Week 7 - Recursion

Last week we started learning about recursion during the lectures. Recursion is a programming technique where a function calls itself during execution. This method is useful because it allows the programmer to avoid repeating the same line of codes. It is important to have different an if/else statement in the function that uses recursion. There must be at least one case telling the function when to stop repeating itself, otherwise, there would be an infinite loop.



The above picture shows an example in which recursion can be used. The factorial of 6 (6!) can be achieved through a function using recursion. In this case, recursion would be needed to find the product of all numbers from 1 to 6. Another example where recursion could be used is in the Fibonacci sequence. In order to accomplish that, the recursive function would need to call itself to add the two previous numbers in the sequence to find the current number.

Since recursion is a fairly new topic to me I am having difficulty implementing it in a program. I'm sure we will cover recursion more in the next few lectures, during the lab, and within the next assignment. I find that it is easier for me to trace a recursive program and figure out the end result than to write the whole function myself. However, I'm hoping to learn this concept soon as it is an essential tool when programming.

Thursday, 25 February 2016

Week 6

Since it was reading week last week my partner for the assignment and I had more time to work on our assignment. We did not work on it as much as I would've hoped, but we were both busy working on assignments for our other courses as well.

This week we learned recursion and so far I'm understanding it. However, I'll probably need to review the slides again before implementing it in the lab, assignment, or exam. My partner and I still have a bit to do for the assignment and it's due tomorrow. The next assignment is supposed to be posted soon so my goal for that is to start working on it earlier as we have more time.

Thursday, 11 February 2016

Week 5

This week we had our first midterm. It wasn't too hard but I probably should've reviewed more. I had difficulty on it due to the making of a superclass with a subclass - I wasn't really sure how to do it so I think I lost a few marks there. However, the other questions weren't too bad. This week we learned a little more on linked lists and the professor talked about the assignment as well.

My partner and I finally started our assignment this week which is good because it is due in 2 weeks. Since next week is reading week, we will probably have more time to meet up and work on the assignment and hopefully finish it soon.

Saturday, 6 February 2016

Week 4

This week we learned about Linked Lists and it's a bit confusing for now since this material is very new to me. I found the quiz for this week to be the simplest one for me (so far). Things for this course are speeding up as we have the first midterm next week and the assignment due in 3 weeks.

Wednesday, 27 January 2016

Week 3

So it is now the third week of classes and we are starting are blogs for the CSC148 course. My first impression of this course is that the difficulty level is much higher than CSC108 which I took last semester. The syllabus includes a list of things that were hardly or not at all taught in last semester's course. However, I think that as long as I continue attending lectures, go to labs, and start the assignments early, I should be successful in this course.

My goal for this blog is to write weekly updates on my progress for this course including what I learned in the lectures and labs, as well as how my assignments are going.