Sunday, 15 March 2015

Week9: Term test 2 week!

This week we had the term test 2, which was about some definitions about tree, recursive functions and linked list.

As for the definitions, I think I understood most of them, however, after checking answers with my friends, I found out that I had some misunderstanding about the arity. The arity of a tree is the max number of nodes of any trees. It means that I should find the node who has most children and count the number of its children. In the past, I thought arity represents the number of children a node can hold, which was wrong!!!

As for recursive functions, I found that although in most cases, I could work out recursive functions, under the stress of test, I become too nervous to do anything. That means my understanding of recursive functions is not good enough, otherwise, I should have worked it out easily. I should practice more to understand recursive functions better, rather than just memorizing.

In fact, I found I did really badly in linked list. It was obvious that I didn't understand the model at all!

So I found a way to deal with it. I asked some of my friends who had worked with linked lists before. They told me I had two methods to deal with linked lists. First, I may take care of my order, which can help me not to lose the front or the back of a linked list. Second, I can copy or store the front or back in advance, then I can do something to the linked list and then find back the front or back. These methods sounds good, but I still have many problems. Since there is no TA, I think I'd better ask my friends more about the method to deal with linked lists.

No comments:

Post a Comment