Sunday, March 8, 2015

Week #8: Binary Trees

The next concept that we learned after trees were binary trees. Basically binary trees are the same thing as trees except that each node only has a maximum of two children. Each node is usually defined as having a left child and a right child.

Before I learned about trees I had heard about the concept of trees from a friend. I didn't really know how it worked and it sounded extremely complicated. However, now I know that trees are a type of ADT. Trees are easy to setup but sometimes I find it difficult to traverse trees with recursion.

I feel like I still need a lot more practice with recursion  problems. Usually, I can get a general solution but I can't fully implement the code.

No comments:

Post a Comment