A military base in the tested nuclear weapons, an explosion because offailure. In order to prevent nuclear radiation leakage, it is necessary to establish a closed house.<o:p></o:p>
<o:p> </o:p>
The closed house is a convexpolygon in the wall, will be constructed of N or fewer connected straight wall segments (3 <= N <=100), forming a polygon which contains the location of thenuclear leak (X0,Y0). <o:p></o:p>
Due to the complex terrain of the military base and the cost , the chief hasobtained from his contractor a list ofprices for building wall segments at various locations. He could potentially buildN different wall segments, and he knows the coordinates of the endpoints andcost for each of these segments. The location of the nuclear leak does not lie on any endpoints (X,Y) coordinatesbetween -10000 and 10000, and does not lie directly on any of the potentialwall segments. <o:p></o:p>
Determine theminimum-cost set of wall segments that forms a convex polygon containing the location of the nuclear leak.<o:p></o:p>