×

Weak visibility counting in simple polygons. (English) Zbl 1329.68260

Summary: For a simple polygon \(\mathcal{P}\) of size \(n\), we define weak visibility counting problem (WVCP) as finding the number of visible segments of \(\mathcal{P}\) from a query line segment \(p q\). We present different algorithms to compute WVCP in sub-linear time. In our first algorithm, we spend \(O(n^7)\) time to preprocess the polygon and build a data structure of size \(O(n^6)\), so that we can optimally answer WVCP in \(O(\log n)\) time. Then, we reduce the preprocessing costs to \(O(n^{4 + \epsilon})\) time and space at the expense of more query time of \(O(\log^5 n)\). We also obtain a trade-off between preprocessing and query time costs. Finally, we propose an approximation method to reduce the preprocessing costs to \(O(n^2)\) time and space and \(O(n^{1 / 2 + \epsilon})\) query time.

MSC:

68U05 Computer graphics; computational geometry (digital and algorithmic aspects)
52B55 Computational aspects related to convexity
68P05 Data structures
68Q25 Analysis of algorithms and problem complexity
Full Text: DOI

References:

[1] Bose, P.; Lubiw, A.; Munro, J. I., Efficient visibility queries in simple polygons, Comput. Geom., Theory Appl., 23, 3, 313-335 (2002) · Zbl 1019.65020
[5] Nouri, M.; Ghodsi, M., Space/query-time trade-off for computing the visibility polygon, Comput. Geom., Theory Appl., 46, 3, 371-381 (2013) · Zbl 1259.65037
[8] Ghosh, S. K.; Mount, D. M., An output-sensitive algorithm for computing visibility graphs, SIAM J. Comput., 20, 888-910 (1991) · Zbl 0768.68202
[9] Guibas, L. J.; Hershberger, J.; Leven, D.; Sharir, M.; Tarjan, R. E., Linear time algorithms for visibility and shortest path problems inside triangulated simple polygons, Algorithmica, 2, 209-233 (1987) · Zbl 0642.68081
[12] Ghosh, S. K., Visibility Algorithms in the Plane (2007), Cambridge University Press: Cambridge University Press New York, NY, USA · Zbl 1149.68076
[13] Asano, T.; Ghosh, S.; Shermer, T., Visibility in plane, (Handbook in Computational Geometry (1999), Elsevier Science)
[15] Chazelle, B.; Sharir, M.; Welzl, E., Quasi-optimal upper bounds for simplex range searching and new zone theorems, Algorithmica, 8, 5-6, 407-429 (1992) · Zbl 0788.68141
[16] Chazelle, B., Cutting hyperplanes for divide-and-conquer, Discrete Comput. Geom., 9, 145-158 (1993) · Zbl 0784.52018
[17] Dobkin, D. P.; Edelsbrunner, H., Space searching for intersecting objects, J. Algorithms, 8, 3, 348-361 (1987) · Zbl 0646.68077
[19] Chazelle, B.; Guibas, L. J., Visibility and intersection problems in plane geometry, Discrete Comput. Geom., 4, 551-581 (1989) · Zbl 0695.68033
This reference list is based on information provided by the publisher or from digital mathematics libraries. Its items are heuristically matched to zbMATH identifiers and may contain data conversion errors. In some cases that data have been complemented/enhanced by data from zbMATH Open. This attempts to reflect the references listed in the original paper as accurately as possible without claiming completeness or a perfect matching.