TREE
- Node at the top is called as root.
- A line connecting the parent to the child is edge.
- Nodes that do not have children are called leaf.
- Nodes that have the same parent are called sibling.
- Degree of node is the total sub tree of the node.
- Height/Depth is the maximum degree of nodes in a tree.
- If there is a line that connects p to q, then p is called the ancestor of q, and q is a descendant of p.
- Node at the top is called as root.
- A line connecting the parent to the child is edge.
- Nodes that do not have children are called leaf.
- Nodes that have the same parent are called sibling.
- Degree of node is the total sub tree of the node.
- Height/Depth is the maximum degree of nodes in a tree.
- If there is a line that connects p to q, then p is called the ancestor of q, and q is a descendant of p.
BINARY TREE
- Binary tree is a rooted tree data structure in which each node has at most two children
- Those two children usually distinguished as left child and right child.
- Node which doesn’t have any child is called leaf.
Comments
Post a Comment