Sunday, 13 March 2016

Week8 SLOG

        This week, in the previous lecture, professor Amir introduced us to a new concept named Binary Search Tree. It is exactly the same as the Tree structure in what we learned last week except that each parent has only two children. And the smaller one between the two children will be positioned to the left and the bigger one will be on the right side of the parent. We have also learned some special method such as '__contain__', which I believe will probably in the upcoming test. At the end of the lecture, the professor led us to a new concept which is to return the value of the BST in a variety of orders. The key for this concept is not to memorize the implementation of different order. The key is to know how the value is going to be returned. This really confused me a lot because I have no idea which order matches to which. I am so nervous on the upcoming test in next week since last test is interuppted by the fire alarm and the test was cancelled... I hope that I could do it well for the test. Last week, I got the mark from the Assignment1. It was bad because we actually didn't really run our code successfully. I need to work harder on the next assignment to bump my mark back.

No comments:

Post a Comment