Tree Data Structure Terminology
This guide lists out the key tree data structure terminology.
Guide Tasks
  • Read Tutorial

Before we walk through how the tree data structure can be utilized to manage data, there are some key terminologies you should become familiar with. This guide walks through each of these terms. These examples all use a binary search tree, however many of the concepts, such as nodes and edges can be applied to all trees and graphs.

Root

Definition: The very top node of a tree.

large

Child

Definition: Any node connected to another node, while moving away from the root node.

large

Parent

Definition: A node that contains child nodes

large

Siblings

Definition: Multiple nodes connected to the same parent node.

large

Leaf

Definition: A node with no child nodes.

large

Edge

Definition: Connection between one node to another node.

large

Path

Definition: A sequence of nodes connecting a node with a descendant node.

large

Tree Height

Definition: Number of edges in the longest path from the root to the leaf node.

large

Depth

Definition: Number of edges from a node to the tree's root node.

large

Summary

Now that you have a good idea of the key terms associated with trees you're ready to start walking through each of the key structures and how they can be used.