|
A tree has its records (Nodes) arranged in a
hierarchical way.
There is one root called a root node at the 'top' of the tree.
Connections between nodes are called branches.
A node with no branches is called a terminal node.
Example: 'Britain' is the root node.
'Avon', 'Devon' etc are terminal nodes.
|

|
This tree is not a binary tree. A binary tree is a tree where each node has at most 2 branches.
|
|
|
Constructing a
binary tree.
Example : Suppose a set of records has the following key
fields :
Johnson, Clay, Mullet,
Ferry, Zob, Lunt
|
|