Sunday, 22 March 2015

My impressions of week 9

We had a midterm this week and it was definitely a lot to handle with the strike. Studying for the midterm was all about drawing. I drew trees and tried different transversals and recursion methods. I also drew pictures for how to work out linked lists.

We learned how to delete nodes from a BST. This is a very tedious process because there are so many conditions one much consider. If you wish to delete a node, you have to be wary of what node will take its place. Since a BST has the condition where the left child is smaller and the right child is bigger, we would want to make sure that whatever we remove, the replacing node still fulfills the conditions that the left child is smaller and the right child is bigger.

Working on the lab was difficult. I didn't fully know how to work on the delete method but my problem was my understanding of delete. I kept forgetting that we have to be aware of what we are removing. We have to careful if we want to remove something in the middle because the whole tree could collapse. It's like a terrible game of Janga.

Other than these things, my week was really good. I'm really enjoying the course thus far and I am very glad I have taken this course.

No comments:

Post a Comment