Introduction
Imagine organizing information in a way that each piece connects to two others at most, like a family tree. Understanding the special words used to describe parts of this structure helps us work with it clearly and easily.
Jump into concepts and practice - no test required
Think of a family tree where the oldest ancestor is at the top. Each person (node) has parents and children, and some people have no children, ending their branch. The lines connecting family members show relationships.
┌─────┐
│Root │
└──┬──┘
┌────┴────┐
┌──┴──┐ ┌──┴──┐
│ P1 │ │ P2 │
└─┬───┘ └─┬───┘
┌──┴──┐ ┌─┴─┐
│L1 │ │L2 │
└─────┘ └───┘Node A has two children: Node B (left) and Node C (right). Node B has no children. Node C has one child: Node D (left)."A leaf node can have one child."