2016年3月30日星期三

WEEK 11 SLOG

Week 11 slog
Mingjie Zhu
1002110404

This week, I want to talk a little bit more about my week 5 slog. In week 5, we just finished the studying of stack, queue and linked lists, so in my slog I talked about them and said that they are easier to handle (comparing with other materials such as recursions). At that time, I was just thinking about the way stack or queue works, which is basically “first in first out” or “first in last out”, since it is easy to understand and most of the time it can be thought as a special kind of list. Now, after several weeks of studying, I think I develop my understanding of it in some way.

Firstly, I think I learn more about when and how to use them, besides working with a question on the test or in the lab saying that “writing a function using stack” or “write a special method of stack”. For instance, in assignment 2, there are two ways to write the most important and crucial functions. One of them is by recursion, and the other one is using a stack or queue. By using a stack or queue, I think the whole process becomes more clear and logic to trace and work. This is a very helpful example on applying stack or queue in other functions as well as using them to solve problems. It also reminds me that they can be applied into many other places and therefore bring a more convenient path to the solution.

What’s more, I learnt that they are one of the “advanced” versions of list, and therefore there will be more relative functions coming out. They might look like another list, set, or dictionary, but we can create them with different methods and as a result make it better and easier to use in our own program. It also reminds me that, although stack looks like a list, I cannot use it as a one hundred percent list. For example, I wrote “for item in stack” on my test1, which was completely wrong since I could not assume that a stack is iterable.

Also, it’s interesting to note that, in my week 5 slog I wrote that I didn’t have enough time for test 1, and I would need to speed up while understanding the question and developing an answer. Fortunately, I am becoming more and more familiar with the material such as building classes or writing functions, and in test 2 I got a really high mark. Going to keep working harder and hoping to do well with the final. 

没有评论:

发表评论