Unlike being alone on valentines day, trees actually have real relationships, the most important use of a tree it's representation of hierarchical relationships. Used in structures of a program, relationships in an mathematical expression or directory structures. Trees are an ADT (abstract data type) which means that it has both a root value and several subtrees linked by nodes. One example of this is those binary fractal things that people can get on necklaces to give to their significant other if they had anyone.
Together with recursive functions, and understanding the core concepts of it, we are now able to expand our limitations and do so much more with Python.
No comments:
Post a Comment