Strict Binary Tree
A Strict Binary Tree (also called a full binary tree) is a binary tree in which every internal node has exactly two children. This means:
- No node has only one child.
- Every node is either a leaf node or has two children.
Structure of a Strict Binary Tree
Types of Strict Binary Tree
- Perfect Strict Binary Tree – All internal nodes have two children and all leaves are at the same depth.
- Complete Strict Binary Tree – All levels are full except possibly the last, which is filled left-to-right, but still must follow the strict property at every internal node.
- Strict but Skewed Tree – Not possible, since strictness requires every internal node to have two children.
Catalan Number and Strict Binary Trees
The Catalan number formula applies for counting the number of possible structures of strict binary trees with n
internal nodes:
where is the number of internal nodes, and total nodes = .
Example: internal nodes → Total nodes =
Number of Labelled Strict Binary Trees
If we have internal nodes (thus total labelled nodes), the number of labelled strict binary trees is:
Example: For internal nodes → Total nodes = 7
Total labelled strict binary trees:
Max and Min Number of Nodes Given Height
For a strict binary tree of height (number of edges from root to leaf):
- Max Nodes (Perfect Strict Binary Tree):
- Min Nodes: A strict binary tree must have at least nodes.
Example:
Max nodes:
Min nodes:
Max and Min Height Given Number of Nodes
Let = total nodes in a strict binary tree.
- Min Height (Perfect Strict Binary Tree):
- Max Height: In a strict binary tree, the longest possible height occurs when the tree is minimally filled but still strict:
Example: For
Min height:
Max height:
Internal and External Nodes
In a strict binary tree:
where:
- = number of external (leaf) nodes
- = number of internal nodes
Also:
Example: → , total nodes = .
Summary Table for Strict Binary Tree
Concept | Formula | Notes |
---|---|---|
Catalan Number (n internal nodes) | Counts structures only | |
Labelled strict binary trees | Labels permuted across all nodes | |
Max nodes for height | Perfect case | |
Min nodes for height | Minimal strict shape | |
Min height for nodes | Perfect case | |
Max height for nodes | Minimal strict shape | |
Full Binary Tree relation | Applies to all strict trees |