AI engineering glossary · Data structures algorithms

What is tree?

Tree: A hierarchical structure of nodes connected by edges, with one root at the top, where each other node has exactly one parent and zero or more children. It naturally represents nested data and enables fast searching when kept ordered.

Level: beginnerTopic: Data structures algorithms

Tree: an example

A folder structure on a laptop is a tree: the root drive contains folders, which contain files and further folders.

Related terms

More Data structures algorithms terms

Where you learn it

Tree is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.

Before you go

Take the cheat sheet with you

One free PDF: the key AI-engineering terms, formulas and Python idioms. No spam; unsubscribe any time.