Sunday, 22 February 2015

What is Recursion? (Week 5)


This third blog that I'm currently writing, is supposed to be my thoughts on recursion. One small problem though... I still don't quite fully understand what recursion is.
Recursion is a tricky subject; understanding how it works is much easier than knowing how to implement it. It's almost like the Deja Vu of computer programming. I always thought of recursion to be a special type of looping that we're suppose to use in our programs. In class, our professor explained it to us as a looping within a method, using the method in the method itself. I guess it's sort of like a method-ception. Its use is to break down complex problems to much smaller and easier tasks until a solution is reached. I guess it could be thought of as a puzzle: attaching smaller pieces together until the big picture is formed. So far, I feel that learning recursion will be the toughest part of computer science.
Though I have a general sense of how to trace a recursion function, I still have no idea on how to create one. I have a great feeling that creating recursion functions will be the doom of me. Hopefully, I will be able to master implementing recursion functions by the time we start assignment 2.

First weeks at U of T (Week 4)

My first few weeks for CSC148 started off pretty rough. In fact, this is the second time that I'm writing this stupid blog because Blogger decided to auto save a blank document. Aside from that, my classes start at 9:10 am on Mondays and Wednesdays and it takes me approximately eighty minutes to reach downtown. This meant that I had to wake up at around six in the morning on these days. The first few classes started off as a basic review of CSC108, focusing more on the content that we had learned towards the end of the course. Thinking that it would be basic material, I paid little to no attention in class and went on 9gag.com (a funny meme site) instead. Eventually, we began learning new material which prompted me to step up my game and partake in lectures. 

To my surprise, I found that the tutorials are extremely useful and that I actually pay attention to what the TA was teaching. So far, each tutorial has been a basic review of what we had learned during the week. This turned out to be a blessing for me as it prevented me from falling behind on course work. However, when it came to the quizzes, I would panic, forget the material, sit still for fifteen minutes, and look like a complete idiot. So yeah, I practically bombed the first couple of quizzes. Overall though, I have been keeping up with my work and am pretty content with me results.