Exercise · ZW-CATALAN-NUMBER-004 · ★★☆ Intermediate
In how many different ways can the product \(x_1x_2x_3\) be parenthesized?
Choose one option.
Show answer
- C. 2
Exercise · ZW-CATALAN-NUMBER-004 · ★★☆ Intermediate
Choose one option.
There are two bracketings, \((x_1x_2)x_3\) and \(x_1(x_2x_3)\), matching \(C_2=2\). The value 6 counts orderings of the three factors, not bracketings.
The Catalan number \(C_n\) counts, among many other structures, the triangulations of a convex polygon with \(n+2\) sides and the Dyck paths of length \(2n\).