Let be a simple polygon with vertices, and let be a point in . Let . A point is -visible from if and only if the line segment crosses the boundary of at most times. The -visibility region of in is the set of all points that are -visible from . We study the problem of computing the -visibility region in the limited workspace model, where the input resides in a random-access read-only memory of words, each with bits. The algorithm can read and write additional words of workspace, where is a parameter of the model. The output is written to a write-only stream. Given a simple polygon with vertices and a point , we present an algorithm that reports the -visibility region of in in expected time using words of workspace. Here, is the number of critical vertices of for where the -visibility region of may change. We generalize this result for polygons with holes and for sets of non-crossing line segments.

生成讲解博客的中文版本

生成AI智能校验的中文版本