Thursday, March 12, 2015

courSe LOG Entry 7

We only had one lecture this week because of the second term test. During the lecture, Danny showed us how to implement binary search tree's insert and delete method. The method for tree type inevitable relates to recursion so that it is tricky to implement these method. The insert method is fairly easy to understand. However, there are a lot of different elif condition for delete method. I had trouble understanding where the node is removed. I still have trouble understanding the function when I look back some times afterwards.
I thought the term test would be the biggest challenge this week, but I am satisfied about it. The reason why I thought it would be challenging is because the test covers tree and linked list. Implementing functions for tree involves recursion and recursion is one of the hardest parts of this course. However, the test is easy. The first question is basically giving you the points. It is a question about the basic definition of tree. The second question is about implementing a function for tree that is similar to a lab question. I put the lab question onto my aid sheet. It is not a problem at all. The last question is about linked list. Iteration is more straight forward than recursion. I am relatively good at writing iteration because I tend to use a lot of iteration in computer science assignment.
Sadly, TAs are still on strike. We do not have lab this week. The lab handout is shortened this week because of that. I fear my knowledge about this week's material is not that strong without the help of lab.

No comments:

Post a Comment