Tree Terminology: Exercise I
- Define tree-related terminologies.
Consider the following tree:

Exercise Complete the table below:
Answer | |
---|---|
The heigh of the tree is | |
The height of node with value is | |
The depth of root is | |
The depth of node with value is |
Solution
Answer | |
---|---|
The heigh of the tree is | 3 |
The height of node with value is | 0 |
The depth of root is | 0 |
The depth of node with value is | 2 |