Friday, March 13, 2015

Impressions of Week 7

From week 4 or 5,  I’ve started learning about recursion.
As mentioned before on my post, I am pretty impressed by how recursion methods work.
I am very interested in solving recursive problems although I felt they are not fully understandable.
Trees, BTNode, BST, and even LLNode, they are all about recursion.
Trees are my favorite parts, so do BT and BST.
They have exactly the same features except for only few things.
Tree is a data structure that emulates a tree design with a set of linked nodes.
The reason why I like it the most is because i can easily capture the idea.
Which means that I can guess the appropriate algorithm by just looking at the structure. 
My understanding of BT and BST is so simple. 
BT is just tree which can have only up to 2 children and BST is BT but we call one child as left
and the other as right.
Left is smaller than parent value and right is bigger than parent value.
Personally prefer using BST since the children are positioned left or right by there value compare to their parent, i can know relative value of each data.
Well, this post is about writing MY thought and impression about week 8.
And I do not know why people made “LLNode” and what is the point of using LLNode.
I only know people made it because they needed it. 
But so far, I DO NOT KNOW.

No comments:

Post a Comment