Source: 📖 Problem Solving with Algorithms and Data Structures using Python 7.5
Date: 2021-12-13
A binary tree is a type of tree datatype. A tree is composed of nodes, each of which can have zero or more branches or edges – connections to other child nodes. A child node can only exist under a single parent node. Where two or more nodes share the same parent node, they are referred to as siblings. At the top of the tree data structure is the root node. The root node is the first node of the tree, from which all other nodes emerge.
A binary tree shares all the same properties of a regular tree, but there is a limit on the number of edges that each node can have. At most, each node can be connected to two children.
Some common terms to know when working with trees: