-
A binary tree with N internal nodes
(and by Property 1, N+1 external nodes)
has exactly 2N edges:
- Exactly N-1 edges connect 2 internal nodes
- Exactly N+1 edges connect an internal node and
an external (leaf) node
- Proof:
- Fact: in a rooted tree, every node - except the root -
has exactly 1 parent node
- There are N+1 external nodes, so there
are N+1 edges connecting an internal node and
an external (leaf) node
- There are N-1 internal nodes minus the root node, so there
are N-1 edges connecting two internal nodes
|