Блог пользователя kowalsk1

Автор kowalsk1, история, 6 лет назад, По-английски

Does anyone know an algorithm to solve the following problem:

Given a sequence of points in the plane that represent a polygon (not necessarily convex), output the maximum possible radius of a circle that can fit inside this polygon.

It would be good if it was below O(n2), but any references are welcome. Thanks ahead.

  • Проголосовать: нравится
  • -8
  • Проголосовать: не нравится

»
6 лет назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

Auto comment: topic has been updated by kowalsk1 (previous revision, new revision, compare).

»
6 лет назад, # |
  Проголосовать: нравится +3 Проголосовать: не нравится

If it was convex, you could make inequalities of form Ax+By+Cr>=0. For non-convex you need something different.

»
6 лет назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

Binary search for R. if you choose R to be your radius check if size R circle fits inside.

»
6 лет назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

In each vertex with reflex angle generate two new polygons without that vertex. Black is non-convex. Red and green are new polygons. And after having only convex ones get maximum of circles in each polygon. Algorithm at emaxx for convex.

»
6 лет назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

Btw, why did you not just google your question? I found answer for that in few minutes.

  1. Identical question on StackOverflow. There are few interesting answers, so I will not share single one.
  2. Research paper with different from suggested on StackOverflow approaches.