Cₙ = C(2n,n)/(n+1) counts balanced parentheses, binary trees, triangulations, and Dyck paths.
| Method | Time | Space | Note |
|---|---|---|---|
| Convolution recurrence | O(n²) | O(n) | builds the whole table |
| Closed form (incremental) | O(n) | O(1) | Cₙ = Cₙ₋₁·2(2n-1)/(n+1) |
| Modular Cₙ mod p | O(1)* | O(n) | after O(n) factorial precompute |
| Enumerate all structures | O(Cₙ·n) | O(n) | exponential ~4ⁿ |