UGC-NET Jul 2016 · Asymptotic Analysis & Recurrences

MCQ · 2 marks · Problem PROG-DIVC-0033

A triangulation of a polygon is a set of $T$ chords that divide the polygon into disjoint triangles. Every triangulation of $n$ vertex convex polygon has chords and divides the polygon into  triangles
  1. A
    $n-2, n-1$
  2. B
    $n-3, n-2$
  3. C
    $n-1, n$
  4. D
    $n-2, n-2$

Solve it on GATE DA practice →More Searching & Sorting Algorithms problems

Show the worked solutionThe interior angles of the triangles together make up the interior angles of the polygon, \((n-2)\pi\), and each triangle contributes \(\pi\):\[\text{triangles}=n-2.\]The triangles have \(3(n-2)\) sides in total; the \(n\) polygon sides are used once and each chord twice:\[3(n-2)=n+2t\ \Rightarrow\ t=n-3\ \text{chords}.\]Answer: B

GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com