Mindmap
Binary Trees - The Binary Search Tree (BST)
Inhalt der Mindmap
Binary Trees - The Binary Search Tree (BST)
BINARY TREE
- hierarchical
- 1 Node can have up to 2 children
- ROOT NODE
- first and upper Node
- LEAVES
- Nodes without children Nodes
- hierarchical
BINARY SEARCH TREE
- Left Child < Current Node < Right Child
- Left subtree < Root Node < Right subtree
- INSERT ELEMENT
- Are there elements in the Tree?
- YES - start at the root
- NO - create a new root
- Is the new element greater than the current Node's element?
- YES - Is there already a right child?
- NO - new right child
- YES - start process with right child
- NO - Is there a left child?
- YES - start process with left child
- NO - new left child
- YES - Is there already a right child?
- Are there elements in the Tree?
- Left Child < Current Node < Right Child
Informationen
- Beschreibung
- Mindmap am Binary Trees - The Binary Search Tree (BST), erstellt von Benjamin Brandt am 08/03/2021.
- Erstellt von
- Benjamin Brandt
- Aufrufe
- 3
- Bewertung