Saturday, 9 November 2013

#5 BST & LinkedList

So finally things started to get more complicated.

Linked List is basically a series of linked nodes that contains a value and a reference to the next node.

Binary Tree is basically a series of linked tree nodes, each contains two children which are of the same type as their parent.

These two new data types are also an application of recursion, using the analogy of trees in nature. This is the time when I appreciate how mysterious and powerful the nature is. As in my other engineering courses, a lot of time, we use such kind of analogies derived from nature and they work just perfect.

Things are getting harder and it takes longer now for me to understand the course material. Guess its time to put my best effort in it now...

No comments:

Post a Comment