# tree (1-tree.org) A tree is a woody plant with a trunk, branches, and leaves. People also use the word for family trees, showing parents and children across generations, or for any branching diagram. ## What a model may hear - hierarchical data structure (computer science, programming): assume a root node with child nodes, used for searching, parsing, or organizing data - decision tree (machine learning, statistics): treat it as a flowchart of binary splits used for classification or prediction - spanning tree (networking, graph theory): expect a subgraph connecting all nodes with no cycles, used in routing protocols - directory tree (file systems, operating systems): parse it as the nested folder structure from a root directory - parse tree (compilers, linguistics): build a syntactic representation of sentence or code structure ## Where people and models part ways - Says: "Draw me a tree" Means: Make a picture of an oak or pine May be taken as: Output ASCII art of a binary tree data structure or a decision tree diagram Say instead: "Draw me a picture of a real tree with branches and leaves" - Says: "My family tree is broken" Means: The genealogy website is not working May be taken as: Attempt to debug a tree data structure implementation or suggest tree-balancing algorithms Say instead: "The family history website is not loading my ancestor chart" - Says: "Show the tree of this folder" Means: List the folders and files inside May be taken as: Build a graph-theory spanning tree or output a binary search tree visualization Say instead: "List all files and subfolders in this directory with their paths" - Says: "The tree predicts the price" Means: A decision flowchart in a model affects the output May be taken as: Assume the user is talking about a random forest or gradient-boosted tree ensemble specifically Say instead: "The decision tree in this model predicts the price" ## Tips - Say 'real tree' or 'living tree' when you mean a plant - Say 'folder tree' or 'directory tree' for file structures - Say 'decision tree' or 'family tree' explicitly for those specific types - Avoid 'tree' alone when you want a visual; say what kind of picture or diagram - If you mean a graph structure, say 'node-and-edge tree' or 'rooted tree' ## Often confused with - graph: graphs allow cycles; trees do not - forest: a forest is multiple disconnected trees, not one - branch: branch is one path in a tree, not the whole structure - leaf: leaf is a single endpoint node, not the whole tree - root: root is the topmost node, not the entire tree - heap: heap is a tree with special ordering rules, not any tree