Abstract
We present several algorithms for computing the visibility polygon of a simple polygon \(\ensuremath{\mathcal{P}}\) from a viewpoint inside the polygon, when the polygon resides in read-only memory and only few working variables can be used. The first algorithm uses a constant number of variables, and outputs the vertices of the visibility polygon in \(O(n\ensuremath{\bar{r}})\) time, where \(\ensuremath{\bar{r}}\) denotes the number of reflex vertices of \(\ensuremath{\mathcal{P}}\) that are part of the output. The next two algorithms use O(logr) variables, and output the visibility polygon in O(nlogr) randomized expected time or O(nlog2 r) deterministic time, where r is the number of reflex vertices of \(\ensuremath{\mathcal{P}}\).
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
References
Asano, T., Mulzer, W., Rote, G., Wang, Y.: Constant-work-space algorithm for geometric problems. Submitted to Journal of Computational Geometry (2010)
Asano, T., Mulzer, W., Wang, Y.: Constant-work-space Algorithm for a Shortest Path in a Simple Polygon. In: Rahman, M. S., Fujita, S. (eds.) WALCOM 2010. LNCS, vol. 5942, pp. 9–20. Springer, Heidelberg (2010)
Asano, T., Rote, G.: Constant-working-space algorithms for geometric problems. In: CCCG, pp. 87–90 (2009)
Bose, P., Carmi, P., Hurtado, F., Morin, P.: A generalized Winternitz theorem. Journal of Geometry (in press)
Chan, T.M.: Comparison-based time-space lower bounds for selection. ACM Trans. Algorithms 6, 26:1–26:16 (2010)
Chan, T.M., Chen, E.Y.: Multi-pass geometric algorithms. Discrete & Computational Geometry 37(1), 79–102 (2007)
Devroye, L.: A note on the height of binary search trees. J. ACM 33, 489–498 (1986)
Frederickson, G.N.: Upper bounds for time-space trade-offs in sorting and selection. J. Comput. Syst. Sci. 34(1), 19–26 (1987)
Ghosh, S.: Visibility Algorithms in the Plane. Cambridge University Press, New York (2007)
Greenwald, M., Khanna, S.: Space-efficient online computation of quantile summaries. In: SIGMOD, pp. 58–66 (2001)
Joe, B., Simpson, R.B.: Corrections to Lee’s visibility polygon algorithm. BIT Numerical Mathematics 27, 458–473 (1987), doi:10.1007/BF01937271
Munro, J.I., Paterson, M.: Selection and sorting with limited storage. Theor. Comput. Sci. 12, 315–323 (1980)
Munro, J.I., Raman, V.: Selection from read-only memory and sorting with minimum data movement. Theor. Comput. Sci. 165, 311–323 (1996)
O’Rourke, J.: Visibility. In: Handbook of Discrete and Computational Geometry, 2nd edn., ch. 28, pp. 643–664. CRC Press, Inc. (2004)
Raman, V., Ramnath, S.: Improved Upper Bounds for Time-space Tradeoffs for Selection with Limited Storage. In: Arnborg, S. (ed.) SWAT 1998. LNCS, vol. 1432, pp. 131–142. Springer, Heidelberg (1998)
Seidel, R.: Convex hull computations. In: Handbook of Discrete and Computational Geometry, 2nd edn., ch. 22, pp. 495–512. CRC Press, Inc. (2004)
Author information
Authors and Affiliations
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2011 Springer-Verlag Berlin Heidelberg
About this paper
Cite this paper
Barba, L., Korman, M., Langerman, S., Silveira, R.I. (2011). Computing the Visibility Polygon Using Few Variables. In: Asano, T., Nakano, Si., Okamoto, Y., Watanabe, O. (eds) Algorithms and Computation. ISAAC 2011. Lecture Notes in Computer Science, vol 7074. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-642-25591-5_9
Download citation
DOI: https://doi.org/10.1007/978-3-642-25591-5_9
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-642-25590-8
Online ISBN: 978-3-642-25591-5
eBook Packages: Computer ScienceComputer Science (R0)