# leaf (10-leaf.com) A leaf is the flat green part of a plant that grows from a stem. People talk about leaves in fall when they change color and drop. The word also means a sheet of paper in a book, or a hinged table extension. ## What a model may hear - tree node with no children (computer science, data structures): Assume the user wants to traverse, count, or manipulate terminal nodes in a tree structure - network endpoint in a distributed system (Kubernetes, cloud infrastructure): Route traffic to or query worker nodes that do not themselves delegate further - certificate authority intermediate (TLS/SSL, public key infrastructure): Treat the reference as about the end-entity certificate, not the root or intermediate - page in a B-tree index (databases, storage engines): Optimize for index leaf page access patterns, sequential scans, or page splits ## Where people and models part ways - Says: "Count the leaves" Means: Count the green things on my plant May be taken as: Count terminal nodes in a tree data structure or database index Say instead: "Count the green leaves on the plant in the photo" - Says: "The leaf fell off" Means: A plant leaf dropped May be taken as: Interpret as a node failure or network partition in a cluster Say instead: "The plant's leaf fell off its stem" - Says: "Add a leaf to the table" Means: Extend the dining table with its hinged leaf May be taken as: Insert a node into a tree structure or add a database index page Say instead: "Pull out the extension leaf on the wooden dining table" ## Tips - Say 'plant leaf' or 'tree leaf' when you mean the botanical kind - Say 'page' or 'sheet' when you mean paper, not 'leaf' - In computing contexts, say 'terminal node' instead of 'leaf' if you want the CS meaning - Specify 'database index leaf' or 'B-tree leaf' for the storage engine sense - Avoid 'leaf' alone when discussing Kubernetes; say 'worker node' or 'pod' ## Often confused with - node: Any point in a network or tree, not necessarily terminal - page: Fixed-size block in storage, not necessarily a tree terminal - branch: A node with children, the opposite of a leaf in trees - blade: A flat plant part or server component, not a tree node - folio: A sheet of paper, more formal than 'leaf' in books