In the lab, we also practiced the problem of recursion. I think this lab was more challenge than previous lab, because I cannot finish all the tasks with my partner ontime. I tried to ask TA for help, but I think we do not understand the recursion clearly enough. I will do more practice about recursion this week for a good preparation of Assignment 1.
2014年2月8日星期六
Week 5(Feb.3 - 7)
In this week's lecture, we were talking about the application of Tower of Hanoi in Python. Also, we learned about scopes and namespaces. I believe that most of people are familiar with this game. Base on this reason, when we were talking about completing the code of Hanoi during the class, we were easy to understand the change of source, intermediate and destination.
2014年2月2日星期日
Week - 4(Jan.27-31)
This week, we learned about inheritance and the basic of recursion. Firstly, I want to talk about inheritance. As far as I know, inheritance makes a subclass for a superclass. We applied this method to this week's lab and exercise. I figure it out with my partner in the lab. For example, class Motorized(Car) and class Bicycle(Motorized), then Bicycle also inherit the method of Car. With the process of learning CS, I found that it is useful for us to read the website's source before the class and communicate more with partner about the problem after class.
Then, we also learn a little basic about recursion which is a kind of method to solve problem. Recursion will break down the problems into many smaller parts which they are small enough to solve easily. Although I know the what is recursion, I do not practice the problem of recursion. Therefore, I am not sure I can do well in recursion problem. Next week, I will do more practice about recursion for understanding more.
Although learning CS is very hard and stressful, I believe that if we do more practice, we will learn more. I will keep practicing every week. I hope I can get a good result of this course.
订阅:
博文 (Atom)