Software Engineering vocabulary · Data Structures and Algorithms

Tree

Meaning in software engineering, with examples

/triː/nounCommon term

In software engineering, tree means: A data structure with a root at the top and branches of child nodes below it, used for data that has levels, such as folders, menus or a page's HTML.

In Turkish: ağaç, ağaç yapısı

How it is used

Common types are binary trees, binary search trees and the DOM tree in browsers. You traverse or walk a tree, often with recursion. Nodes without children are called leaves. Trees are drawn upside down, with the root at the top.

Example sentences

  1. The category menu is stored as a tree, so subcategories can go as deep as needed.

  2. Write a function that returns the depth of a binary tree.

Common collocations

  • binary tree
  • traverse a tree
  • root node
  • tree structure

More terms: Data Structures and Algorithms

Practise with graded reading

Reading at the right level is the fastest way to make new words stick. Pick free English books by level: