Mapa mental
Binary Tree
Conteúdo do mapa
Binary Tree
Hierarchical data structure
- Nodes
- Root Nodes
- First/upper node
- Leaves
- Nodes without children nodes
- Object with element
- Child Node
- Root Nodes
- Root Node created
- Next element that is > root will be its right child
- Each child node will also their own right/left children following same rules
- Branching continues until leaves
- Each child node will also their own right/left children following same rules
- Next element that is < root will be left child
- Next element that is > root will be its right child
- Nodes
Used to optimize searching/retrieving data from ordered sets
- Root node is checked for element
- If root node satisfies condition
- Return root node
- If root node does not satisfy condition
- If element is greater than root node
- Check right child node for element
- Recursive delegation continues until element is found
- Check right child node for element
- If element is less than root node
- Check left child node for element
- If element is greater than root node
- If root node satisfies condition
- Root node is checked for element
Informações
- Descrição
- Mapa Mental sobre Binary Tree, criado por Valeria Niebles em 10-03-2021.
- Criado por
- Valeria Niebles · mar 2021
- Atualizado
- 10 mar 2021
- Visualizações
- 1
- Avaliação