inserted text 'aka Parent Node' to the file "index.md" (#26929)
* Update file "index.md" added text = 'aka Parent Node' increased branch length from the root * text replaced in index.md file text 'aka' replaced with 'also known as' in index.md file
This commit is contained in:
committed by
Christopher McCormack
parent
51fcc8e509
commit
6be246ac4a
@ -5,7 +5,7 @@ title: Binary Search Trees
|
|||||||

|

|
||||||
|
|
||||||
A tree is a data structure composed of nodes that has the following characteristics:
|
A tree is a data structure composed of nodes that has the following characteristics:
|
||||||
1. Each tree has a root node (at the top) - containing some value (can be any datatype).
|
1. Each tree has a root node at the top (also known as Parent Node) containing some value (can be any datatype).
|
||||||
2. The root node has zero or more child nodes.
|
2. The root node has zero or more child nodes.
|
||||||
3. Each child node has zero or more child nodes, and so on. This creates a subtree in the tree. Every node has its own subtree made up of its children and their children, etc. This means that every node on its own can be a tree.
|
3. Each child node has zero or more child nodes, and so on. This creates a subtree in the tree. Every node has its own subtree made up of its children and their children, etc. This means that every node on its own can be a tree.
|
||||||
|
|
||||||
@ -334,6 +334,7 @@ Full Binary Tree/Strict Binary Tree: A Binary Tree is full or strict if every no
|
|||||||
|
|
||||||
18
|
18
|
||||||
/ \
|
/ \
|
||||||
|
/ \
|
||||||
15 30
|
15 30
|
||||||
/ \ / \
|
/ \ / \
|
||||||
40 50 100 40
|
40 50 100 40
|
||||||
@ -344,6 +345,7 @@ Complete Binary Tree: A Binary Tree is complete Binary Tree if all levels are co
|
|||||||
|
|
||||||
18
|
18
|
||||||
/ \
|
/ \
|
||||||
|
/ \
|
||||||
15 30
|
15 30
|
||||||
/ \ / \
|
/ \ / \
|
||||||
40 50 100 40
|
40 50 100 40
|
||||||
@ -354,6 +356,7 @@ Perfect Binary Tree A Binary tree is Perfect Binary Tree in which all internal n
|
|||||||
|
|
||||||
18
|
18
|
||||||
/ \
|
/ \
|
||||||
|
/ \
|
||||||
15 30
|
15 30
|
||||||
/ \ / \
|
/ \ / \
|
||||||
40 50 100 40
|
40 50 100 40
|
||||||
|
Reference in New Issue
Block a user