Monday, 30 March 2015

Week 8

That week was easy to understand conceptually and a little more difficult to put into practice.

Binary trees and binary search trees are extremely simple concepts; you start at one node and you have the choice of going to either of the two children of that node. This is essentially a specialized Tree class so the idea should follow very easily. Binary search trees are slightly more complicated, in that they are organized in such a way that is very easy to search the tree for the item that you are looking for. (From what I understand though, generally most concepts are easy to visualize and communicate to other people than it is to actually implement in software.)

In practice however, I find binary search trees are slightly more complicated. This is because the code for the searches are more specialized and do not simply traverse the entirety of the tree. Again, this is not very complicated but it does add some depth to the issue.

No comments:

Post a Comment