Question: 2. (20 points) Let P be a convex polygon and P2 be an arbitrary polygon (not necessary convex) inside Pi. The polygon separation problem is

2. (20 points) Let P be a convex polygon and P2 be an arbitrary polygon (not necessary convex) inside Pi. The polygon separation problem is to find another polygon P3 to separate Pi and P2 (i.e., Ps is inside Pi and contains P2 in its interior) and minimize its number of edges. You may assume that Ps shares a vertex with P1. Design a greedy algorithm to solve this problem and make your algorithm run as fast as possible. You should justify the correctness of your algorithm 2. (20 points) Let P be a convex polygon and P2 be an arbitrary polygon (not necessary convex) inside Pi. The polygon separation problem is to find another polygon P3 to separate Pi and P2 (i.e., Ps is inside Pi and contains P2 in its interior) and minimize its number of edges. You may assume that Ps shares a vertex with P1. Design a greedy algorithm to solve this problem and make your algorithm run as fast as possible. You should justify the correctness of your algorithm
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
