You are given a convex polygon P on n vertices in the plane (specified by their x and y | StudySoup

Textbook Solutions for Algorithms

Chapter 6 Problem 6.12

Question

You are given a convex polygon P on n vertices in the plane (specified by their x and y coordinates).A triangulation of P is a collection of n 3 diagonals of P such that no two diagonalsintersect (except possibly at their endpoints). Notice that a triangulation splits the polygonsinterior into n 2 disjoint triangles. The cost of a triangulation is the sum of the lengths of thediagonals in it. Give an efficient algorithm for finding a triangulation of minimum cost. (Hint:Label the vertices of P by 1, . . . , n, starting from an arbitrary vertex and walking clockwise. For1 i < j n, let the subproblem A(i, j) denote the minimum cost triangulation of the polygonspanned by vertices i,i + 1, . . . , j.)

Solution

Step 1 of 3

Given,

A convex polygon P on n vertices in the plane where vertices are specified by their X and Y coordinates

No two diagonals do not intersect as a triangulation of P is a collection of n-3 diagonals of P.

The sum of lengths of diagonals in polygon P will specify the cost of the triangulation.

Subscribe to view the
full solution

Title Algorithms  1 
Author Sanjoy Dasgupta Algorithms, Christos H. Papadimitriou Algorithms, Umesh Vazirani Algorithms
ISBN 9780073523408

You are given a convex polygon P on n vertices in the plane (specified by their x and y

Chapter 6 textbook questions

×

Login

Organize all study tools for free

Or continue with
×

Register

Sign up for access to all content on our site!

Or continue with

Or login if you already have an account

×

Reset password

If you have an active account we’ll send you an e-mail for password recovery

Or login if you have your password back