Exercise 1604Combinatorics › Counting principlesOlympiadAdded 3 Nov 2026
Catalan applications
#Catalan#applications#structures
Statement
Show that the number of full binary trees with internal nodes is .
Hint
A full binary tree has internal nodes, leaves. Traverse left-to-right and encode: for internal node, for leaf.
Depth-first traversal. Each prefix has internal leaves, giving Dyck path condition.
Show solutionHide solution
Solution
Bijection. DFS traversal of binary tree with internal nodes, leaves produces a Dyck path with up-steps and down-steps; equivalently (shift) a Dyck path of length .
Count. .
Conclusion. counts full binary trees with internal nodes.
Examples. : ; : ; : .