Mapa mental
Trees
Conteúdo do mapa
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)
Informações
- Descrição
- Mapa Mental sobre Trees, criado por Hiten Sharma em 10-05-2020.
- Criado por
- Hiten Sharma
- Visualizações
- 0
- Avaliação