Trees and Hierarchical Terminology Flashcards
Root Node
The special node in a tree with no parent
Parent Node
A node with lower hierarchical nodes attached below it
Child Node
The node attached below a higher hierarchical node
Ancestor
A node that lies on a higher hierarchical path level than another node; not directly above, since that would be a parent
Descendant
A node that lies on a lower hierarchical path level than another node; not directly below, since that would be a child
Siblings
Nodes with the same parent
Level
The length of the path from a node to the root (root is at level 0)
Height
The number of different levels in a tree
Subtree
A tree formed by a node and all its descendants
Leaf Node/Terminal Node
A node with no children
Internal Node/Non-Leaf Node
A node with at least one child