Elsevier

Theoretical Computer Science

Volume 789, 15 October 2019, Pages 13-21
Theoretical Computer Science

A time–space trade-off for computing the k-visibility region of a point in a polygon

https://doi.org/10.1016/j.tcs.2018.06.017Get rights and content
Under an Elsevier user license
open archive

Abstract

Let P be a simple polygon with n vertices, and let qP be a point in P. Let k{0,,n1}. A point pP is k-visible from q if and only if the line segment pq crosses the boundary of P at most k times. The k-visibility region of q in P is the set of all points that are k-visible from q. We study the problem of computing the k-visibility region in the limited workspace model, where the input resides in a random-access read-only memory of O(n) words, each with Ω(logn) bits. The algorithm can read and write O(s) additional words of workspace, where sN is a parameter of the model. The output is written to a write-only stream.

Given a simple polygon P with n vertices and a point qP, we present an algorithm that reports the k-visibility region of q in P in O(cn/s+clogs+min{k/sn,nloglogsn}) expected time using O(s) words of workspace. Here, c{1,,n} is the number of critical vertices of P for q where the k-visibility region of q may change. We generalize this result for polygons with holes and for sets of non-crossing line segments.

Keywords

Limited workspace model
k-Visibility region
Time–space trade-off

Cited by (0)

A preliminary version appeared as Y. Bahoo, B. Banyassady, P. Bose, S. Durocher, W. Mulzer, Time–space trade-off for finding the k-visibility region of a point in a polygon, in: Proc. 11th WALCOM, 2017. This work was partially supported by DFG project MU/3501-2, ERC StG 757609, and by the Natural Sciences and Engineering Research Council of Canada (NSERC).