Design DP for optimal convex polygon triangulation
A convex polygon is given by its vertices in boundary order. The input string encodes integer-coordinate points as `x,y;x,y;...`. Triangulate the polygon with non-crossing diagonals. The cost of a triangulation is the sum of the Euclidean perimeters of all triangles, and the goal is to return the minimum possible cost. Boundary edges are counted once for every incident triangle, exactly as required by the triangle-perimeter objective; diagonals are counted twice.