Assume we are given two polygons: P1: a convex polygon. P2: a polygon within P1 (either convex or non-convex)
Now I am looking for a greedy algorithm to find polygon p3 such that P3 is inside P1 and it contains p2. The goal is to minimize the number of edges of P3.
I have an attempt to the problem. We transform P2 to a convex polygon by connecting the concave parts, let's call it P2' and its number of edges is N. We remark that P2' is inside P1 and contains P2. So P2' verify the conditions. Now we need to find the polygon with the minimum number of edges (between 3 and N). we try to minimize the number of edges of P2' iteratively. there are two ways to do that: linking two edges by adding a point or linking two edges by adding a line. then verify if the new polygon is still in P1, otherwise test the next edges until we test all of them. we stop when we cannot decrease the number anymore.