0-tree.org

tree

A tree is a plant with a woody trunk, branches, and leaves. People also call family lineages trees, with parents above and children below.

What a model may hear

hierarchical data structure computer science and programming
assume a node with child nodes, used for searching, parsing, or organizing data
decision tree machine learning
treat it as a flowchart of binary splits used for classification or prediction
directory tree file systems and operating systems
list files and folders in a branching, indented format or navigate nested paths
parse tree compilers and linguistics
build a structured representation of grammar from a sentence or code
Merkle tree cryptography and blockchains
verify data integrity through a hierarchy of cryptographic hashes

Where people and models part ways

“Show me the tree”

Meant: a picture of an oak or pine

May be taken as: print a file directory listing or ASCII art of nested folders

Say instead: “Show me a photograph of a tree”

“Build a family tree”

Meant: a chart of relatives

May be taken as: generate a data structure with parent and child pointers

Say instead: “Create a visual family tree diagram with names and dates”

“The tree is unbalanced”

Meant: a lopsided real tree

May be taken as: diagnose a binary search tree with uneven left and right subtrees

Say instead: “The real tree leans to one side”

“Prune the tree”

Meant: cut branches in a garden

May be taken as: remove nodes from a decision tree or data structure to reduce complexity

Say instead: “Prune the actual garden tree”

Tips

Often confused with

graph
any connected nodes, not necessarily hierarchical
forest
a collection of separate trees, in both plain and technical senses
heap
a tree with a specific ordering rule for fast access
trie
a tree for storing strings, with nodes as prefixes
binary tree
a tree with at most two children per node
bush
a shorter, multi-stemmed plant with no technical meaning