Binary Trees
Binary Trees
Think of it like an upside down tree with the root at the top and the branches coming down from it.,
Terminology
This is because every node has an incoming edge except from the root node)
Parent /child – any node that has other nodes below it is apparent note , the ones bellow are child
nodes
Sub tree-
Depth – the depth of a node is measured by how many edges it takes to get to it from the root node.
Height – this is the Longest path of edges from a node to a leaf. The height of A leaf node is zero