2014年2月9日星期日

Week5 SLOG

It is week 5 now. The most important topic this week, I think, is recursion according to the A1 and lab. But we are required to talk about recursion on week7. So, I want to write something specific about A1.

I suppose most people have started A1. Frankly speaking, the assignment in csc148 is really quite different from that in 108. A1 is way more complicated and requires much more work. It involves class, recursion and basically everything we have learnt in 108. So, it is a decent opportunity for us to test whether we can apply what we have learnt for programming in Python. Besides, we can review some new concepts just learnt, like recursion in this assignment, which it is hard to finish but excited to think how to write it.

I think the most tricky part in this assignment is the Tour part. At the beginning, we could not figure out a clue. I think the most difficult part here is we were not sure how many extra functions we were supposed to write. Actually, we came across the some problem when doing step 2. Sometimes it is hard to start because you are uncertain whether your thought in mind is correct. And a good start or more precisely, a good try could be a half success.

Luckily, prof gave us a clue about three stools version during lecture. It inspired us that 4 stools version was basically the same recursion with a slight change. The recursion of 4 stools should be formed by 3 parts, one of which should be 3 stools recursion and the other two should be moving n-i cheeses. So we need to write a 3 stools recursion which was covered in lecture as a helper function.

We have not finished A1 yet, but I believe we will finish all the steps soon and I am sure I will learn many new things from my partners.

Well, the midterm is approaching and it seems we lack enough past tests. There is only past test on the main page.

2 条评论:

  1. A lot of recursion is used in A1. I think you could get a better understanding of recursion when you finish it.

    回复删除
  2. A1 is very interesting and the recursion used in A1 help me get a better understand of recursion.

    回复删除