Data Structures & AlgorithmsModerateGATE CS

In how many ways can a convex polygon with 8 vertices be divided into triangles by non-crossing diagonals?

  1. A. 429
  2. B. 252
  3. C. 48
  4. D. 132

Correct answer: D. 132

Triangulations of a convex (n)-gon are counted by the Catalan number C(n−2) = C(6) = 132 (same as full parenthesisations of a product of 7 factors).

More Trees, Graphs, Recursion and Dynamic Programming questions

Exams that ask this topic