Question: Given a convex polygon with n edges defined by vertices (x1, y1),(x2, y2), . . . ,(xn, yn), determine the diagonals to add to triangulate
Given a convex polygon with n edges defined by vertices (x1, y1),(x2, y2), . . . ,(xn, yn), determine the diagonals to add to triangulate the polygon that minimize the total length of extra edges. Standard distance function determines length of diagonals: d(vi , vj ) = q (xi xj ) 2 + (yi yj ) 2. Suggest a dynamic programming based solution for the above
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
