Saturday, 28 March 2015

Week 11 - Revisiting an Earlier Blog Post

This week, I will be revisiting the blog post of Week 4. Back in week 4, we had just finished talking about classes and inheritance and we were simply introduced to the definition of recursion. At the time, inheritance was quite a new concept for me, and I also found the course material to be very easy. I thought that the course would be a breeze due to level of easiness of the material we were exposed to in the beginning of the course. I was also very excited because of the new friends I had made in the course that I found on Facebook while looking for partners for Assignment 1. I was very optimistic in Week 4, and I was also over confident, because I thought that the course material was too easy and I would get by without doing a lot of work like I did in CSC108. I WAS WRONG!

Looking back, I agree with my earlier blog post (week 4) when I said that I find the course material very interesting. At the time, I found inheritance to be an interesting concept, and I believed that the entire course would have many more interesting things to come. I was absolutely correct in that regard. In fact, recursion turned out to be very interesting and beautiful. Recursive algorithms have the power to take in a huge problem and break it down into tiny steps. As the course progressed, I had a lot of fun writing recursive code for labs and assignments. Additionally, I found Assignment 2 the most interesting part of the course. I had to write a strategy for a game that would always choose the best possible move, called Minimax. It used recursion to create a game tree, and choose a move that would lead the computer to always win the game. I was fascinated by the power of recursion, and the beauty of what we can do with just some simple coding! Therefore, I agree with my blog post of Week 4 when I say that the course material seems very interesting and fun.

However, I completely disagree with my blog post (of week 4) when I talk about how I feel the material of the course is very easy. As the course progressed, the material of the course got harder and harder. Although I found recursion to be a very interesting concept, I also found it to be very challenging. It was hard for me to understand how to trace recursion at first, but it was even harder for me to write recursive code. Whenever given a problem, I would jump write to writing code without understanding the problem fully, and drawing out trees to see what I would like to function to return at every step, like we were told to do so in class. I even struggled with traversing through linked lists when first introduced to the topic of linked lists. Therefore, I disagree with my comment on how I felt that the course is easy back in Week 4.

I agree with myself when I say that it is essential to go to lectures. Lectures in CSC148 provide the basic foundation and understanding of the course material. The professor goes through basic concepts and provides examples related to the topic, which helps us get started on the labs. Additionally, the professor explains more in detail of what he expects us to do in the assignments. Therefore, without going to lectures, my performance in the course would be very poor. So I agree with my week 4 blog post when I said that going to lectures would drastically improve my performance in the course.

Looking back at my previous SLOG, I agree with the blogger with the link (http://dingtaoliu.blogspot.ca/2015/03/csc148-marth-30th-2015.html). Similar to this blogger, we both now realize that drawing trees and understanding what each step of the tree should return is very important and useful when solving a problem in involving recursion. We both are looking back and laughing at how we used to rush into writing recursive code without fully understanding the problem. Similar to this blogger, I too used to guess and check when solving recursive algorithms. I used to write up something related to what we did in lecture and hope it would work in lab questions, which is quite foolish. Furthermore, I also agree with the blogger when he says that the best way to think about recursive algorithms is understanding the fact that whatever the recursive code asks it's children, it will also ask it's grandchildren and so on. So it is best to think of only one relation, rather than tracing through the entire true manually.

I am glad that my experiences of looking back are similar to the blogger (http://dingtaoliu.blogspot.ca/2015/03/csc148-marth-30th-2015.html). It shows that we both learned a lot in the course and we both learned more efficient ways to tackle problems. I look forward to next week, as it is the last week of the course!

No comments:

Post a Comment