Data Structures & Algorithms

Tree

/triː/

Definition

A hierarchical data structure with a root node and child nodes — no cycles, each node has one parent.

Example in context

"The DOM is a tree — the html element is root, head and body are children, and so on down."

Related terms

Practice this term

Master Tree in context by working through exercises in the Data Structures & Algorithms module. You'll see the term used in real engineering scenarios with multiple-choice, fill-in-the-blank, and matching drills.