11277 - Cyclic Polygons
Moderator: Board moderators
11277 - Cyclic Polygons
I get WA. I try finding circumradius by bisection. I fear that it may not be so accurate for some cases, like very thin triangles. Can anyone give me some test cases? Thank you.
Use Newton's Method
I recommend Newton's method for this
problem.
Although bisection code will also run in time.
The combinatorial nature of the problem is to
realize you can re-order the edges to your advantage...
Think about how you can re-order the edges to make
your code significantly faster (amortized).
problem.
Although bisection code will also run in time.
The combinatorial nature of the problem is to
realize you can re-order the edges to your advantage...
Think about how you can re-order the edges to make
your code significantly faster (amortized).
The input data does not contain cases that...
The input data does not contain cases that the center of the circle lies out of the polygon.
Added Dataset
I will add some datasets where the
center lies outside the polygon and
the problem will be rejudged.
What happened is the dataset was generated using
randomization. Somehow it didn't hit that
case as I had thought it surely would.
center lies outside the polygon and
the problem will be rejudged.
What happened is the dataset was generated using
randomization. Somehow it didn't hit that
case as I had thought it surely would.