Tree Terminology: Depth
- Define tree-related terminologies.
The depth, or level, of a node , is the length of the path from the root to .

The height of a tree is the depth of its deepest node.
We can recursively define the depth of a node:
Aside: In some references, the depth of a node includes the node. In that case, the depth of the root is . Some references keep the depth of the root at but define so the level of the root is .