subject

Given a irregular, closed, convex polygon with n-1 sides and m circle-centers contained within that polygon, compute the radii of m circles centered at those m points such that the sum of the areas of the circle is minimized and that any vertex in this polygon is also contained in at least one of the m circles. Here is the function signature: find_convex_cover(pvertices, clist) where pvertices is a (n 1)-long iterable of polygon vertices and clist is a list of (Li, Yi) tuples of circle-centers. The output of find_convex_cover is a m long list of radii, ri, corresponding to the m circle-centers.
Example:
>>> pvertices = array([[ 0.573, 0.797],
[ 0.688, 0.402],
[ 0.747, 0.238],
[ 0.802, 0.426],
[ 0.757, 0.796),
[ 0.589, 0.811]])
>>> clist = [(0.7490863467660889, 0.4917635308023209),
(0.6814339441396109, 0.6199470305156477),
(0.7241617773773865, 0.6982813914515696),
(0.6600700275207232, 0.7516911829987891),
(0.6315848053622062, 0.7730550996176769),
(0.7348437356868305, 0.41342916986639894),
(0.7597683050755328, 0.31729154508140384)]
>>> find_convex_cover(pvertices, clist) # note some radii == 0
[0, 0, 0.10297280518543134, 0, 0.06374182913818943, 0.0684588720095565, 0.07987784828713643]
Hints:
• m can be very large so use Numpy broadcasting effectively.
• For your own understanding, use Matplotlib to visualize the polygons and circles.
• Numpy is the only third-party module you can use with this assignment.
• Since the n-polygon is closed, the first and last vertices are the same so that only n
• Your solution can be an approximation to the minimum. 1 vertices need be specified.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 06:30
Exchanging which type of data uses the least bandwidth? music photographs video voice bandwidth- the amount of data that can be moved between two points in a set time period
Answers: 1
question
Computers and Technology, 22.06.2019 10:00
You need a reliable network for about twenty-five computers that will be distributed across a large building. it is important that the network be relatively cheap. which topology should you use?
Answers: 1
question
Computers and Technology, 22.06.2019 14:00
What are procedures that keep a data base current
Answers: 1
question
Computers and Technology, 22.06.2019 21:00
The average cost of one year at a private college in 2012-2013 is $43,289. the average grant aid received by a student at a private college in 2012-2013 is $15,680.   what is the average student contribution for one year at a private college in 2012-2013?
Answers: 3
You know the right answer?
Given a irregular, closed, convex polygon with n-1 sides and m circle-centers contained within that...
Questions
question
Geography, 13.10.2019 01:30
question
Mathematics, 13.10.2019 01:30
question
History, 13.10.2019 01:30
question
Mathematics, 13.10.2019 01:30
question
Mathematics, 13.10.2019 01:30
Questions on the website: 13722362