- A Tree with N Nodes has N-1 Edges
- Nodes with No Children are called leaves
- Depth for Node N – Length of Unique path from Root to Node N. Root is of depth 0
- Height of the root is equal to height of the tree
For above tree Height is 3. E is at Depth 1- Binary Tree – No node can have more than two children
- AVL Tree is identical to BST. Height of left and right subtree differ by 1
- Tree Traverals - Depth First Traversals of Binary Trees
More Reads
No comments:
Post a Comment