For the past few weeks, we have been focused on writing recursive code. We did several exercise sheets during lectures which I found was very helpful. Furthermore, we were required to write more recursive code during our past two labs. It was very good practice in getting a better understanding of how recursion works, and now I'm more comfortable with it than I was when the concept was first introduced.
We were also introduced to another abstract data structure: Tree. What I found most especially interesting is not the Tree itself, bu the Binary Search Tree. With this type of data structure, we can easily locate data without having to go through the whole Tree! (This is assuming the BST is relatively balanced) Searching for data thus becomes very efficient since we can easily cut down our search space in half (left or right side of the node) as we find the value that we want.
I would like to be graded on my summary of of object-oriented programming which can be found in in my Week 4 and 6 posts.
I would like to be graded on my summary of of object-oriented programming which can be found in in my Week 4 and 6 posts.
No comments:
Post a Comment