2016年4月8日星期五

Week 12 wrap-ups

Finally we come to the end of the semster and final exam is right at the corner. This week I am so glad that I got full marks for my A2 demo. I was very worried about the demo but it turned out to be pretty easy and straightforward. The prof asked me to write out some outputs of the mn puzzle. And I was glad because it might be the easiest puzzle among all these puzzles. As long as one is clear about what breadth and depth searching method means, it is pretty easy to work out what would be outcomes.
This friday we did the last quiz. But I don't feel like I got it right. Only from looking at the time spent for each sorting method does not quite make sense for me to determine the intuition behind it. I should spend more effort in the sorting topic.
Final exam is just around the corner. I wish I can do my best and finish the semester with a satisfying outcome. Although I am not in CS major, I believe that some knowledge of programming language would contribute to my future career as one useful skill. Good luck!

2016年3月30日星期三

Week 11: Revisiting the history

How time flies! It has already been 11 weeks since I began my adventure in csc148 and final exam is just steps away. After revisiting my blog histories, I find out that I was having problems and confusions about linked list, trees and recursions. Indeed, they are not straight forward to approach at first glance. But after all the exercises including labs and in-class exercises, I think the important step is to understand the intuition first and not hurry into the problem before having a general idea about it.

The assignments are pretty good practice for having an idea about what the course is talking about and focusing now. And midterms are signals to indicate how ready one is for the next challenge in the course. All the topics are actually connected and associated with each other. For example, tree is kind of like a lot of linked list and all of them need recursion to deal with efficiently. I used to rely a lot on loops because I thought loops are straight forward. But now after a thorough encounter with recursion, I feel like lot of the work become rather easy and saves plenty of time. Recursion makes functions to run functions by them self, which is indeed useful and cool tool in cs studies.

2016年3月25日星期五

I need to work harder on recursion

This week, I got my midterm 2 test back. Sadly, my marks are pretty low. All my questions seem to get entry level points. This is apparently a serious sign indicating that I am quite left behind in my csc148 studies. For the second question, I thought I was completely right while at test, but now I find out that I actually wrote an infinite loop, which is a terrible mistake. I need to work harder on recursion! The understanding of intuition is much more important in this course.

After 2 hours past the deadline, I finally managed to submit my assignment 2, which is worked alone by myself. It was a sad story because my partner left me after we screwed up the first assignment and I had no choice but to work alone. Although I think sometimes working alone is not bad because one can focus on all parts more thoroughly and continuously. I wish I get better outcome for this assignment.

2016年3月19日星期六

Midterm 2 and assignment 2

This week, we had our midterm 2 for csc148. After the exam, I do not feel as well as my performance in midterm 1. I still have weakness in tree class implementing and do not have quite enough time finishing all parts. I need to pay more attention to it since it would be the major part of our final exam, no need to say.

I have started looking at my assignment 2. The game topic is quite interesting. My first thoughts is that I will do the easy parts such as is_solved and extension parts. The breadth first and depth first parts seem to be a little uncertain for me. I will need to seek more information about that from slides and the internet.

2016年3月11日星期五

Trees and Trees

From this week, we encounter a lot about class binary trees. Recursion is well used for this class. I learned that there are three kind of order for binary tree: pre-order, post-order and in-order. In-order looks at left first then centre then right. Pre-order looks at centre first then left and right. Post-order looks at left and right first then centre. But I still wonders what are the benefits for these three methods seperately. I need to take more time on weekends on the lab materials.

2016年3月3日星期四

Week 7 thoughts on recursion.

I learned recursion this week. It is a fun but useful concept. Rather than using loop, it gives an intuitive approach to the problem. For example, solving the factorial using recursion is the same way treating it as a math problem: think from the bottom/base case and go “up”. In some way recursion is a vivid representation of math models. The Fibonacci numbers is another example of how recursion can be really useful in solving complicated math problems. Unfortunately, even though recursion is a fantastic tool, it is not applicable in some cases. Surprisingly, the Fibonacci number is one of those cases. Normal recursion algorithm would provide the correct answer, and it is intuitive and easy to understand. However, it suffers the combinatorial explosion: the runtime of the algorithm increases exponentially with the complexity of the Fibonacci Number. The actual better way to do it is to just use loops and store the values and the series in an array. This way the run time decreases dramatically and still provide the correct answer.

In summary, recursion is a very useful tool to use, but the programmer has make a clever decision on whether to implement it in certain problems.

2016年2月28日星期日

What's new for this week

This week, the contents in lectures become quite different with last few weeks. We are talking about while loops and for loops again! Yeah! I feel less stressed about this topic because I had been doing well on these in CSC108.

This week's lab is also not a big deal. Rewriting functions with loops is quite easy. Also the quiz is no challenge to me. I feel quite confident now than weeks before midterms. I hope the good condition can last through final exam.