A tree with a root vertex.
Height
Length of the longest path from the root.
Level
For a given vertex , length of the simple path from the root to .
Parent
For a given vertex , its parent vertex is the unique vertex where and there is an edge between and .
Child
For a given vertex , is a child of iff is the parent of .
Siblings
Vertices with the same parent.
Ancestors
For a given vertex , all vertices in the path from the root to , excluding and including the root.
Descendants
For a given vertex , all vertices that have as their ancestor.
Leaf
A vertex without any children.
Internal vertices
Vertices that have children. Non-leaf vertices.
Sub-rooted tree
Suppose is a vertex in a tree. Then the sub-tree with as its root is the sub-graph of the tree consisting of and its descendants and all edges incident to these descendants.
Ordered Rooted Tree
Rooted tree with a specified left-to-right ordering among siblings.
Labeling scheme (recursive):
- Root label . Its children at level 1 labels (left to right).
- Vertex at level with label , having children children labeled .
Decision tree
Vertices represent the decision points or events, where a decision could be made. Edges represent the possible decisions/outcomes of different choices.