Mind map
Trees
Map content
Trees
Strict trees
- e=i+1
- 0/2 children each node
n-ary trees
- Capacity of each node is 0-n
- Strict n-ary
- Exactly 0 or n children
- min nodes if height h: nh+1
- e=(m-1)i+1
Binary Tree
- Array rep
- If root node is at position p
- left node at 2p
- right node at 2p+1
- If root node is at position p
- Linked list rep
- Array rep
Traversal
- Inorder
- left->root->right
- Preorder
- root->left->right
- Postorder
- left->right->root
- Inorder
AVL TREES
- bf= abs(hl-hr)
Information
- Description
- Mind Map on Trees, created by Hiten Sharma on 10/05/2020.
- Created by
- Hiten Sharma
- Views
- 0
- Rating