Advertisement

Algorithmica

, Volume 81, Issue 7, pp 2829–2856 | Cite as

A New Balanced Subdivision of a Simple Polygon for Time-Space Trade-Off Algorithms

  • Eunjin Oh
  • Hee-Kap AhnEmail author
Article
  • 75 Downloads

Abstract

Given a read-only memory for input and a write-only stream for output, an s-workspace algorithm, for a positive integer parameter s, is an algorithm using only O(s) words of workspace in addition to the memory for the input. In this paper, we present an \(O(n^2/s)\)-time s-workspace algorithm for subdividing a simple n-gon into \(O(\min \{n/s,s\})\) subpolygons of complexity \(O(\max \{n/s,s\})\). As applications of the subdivision, the previously best known time-space trade-offs for the following three geometric problems are improved immediately by adopting the proposed subdivision: (1) computing the shortest path between two points inside a simple n-gon, (2) computing the shortest-path tree from a point inside a simple n-gon, (3) computing a triangulation of a simple n-gon. In addition, we improve the algorithm for problem (2) further by applying different approaches depending on the size of the workspace.

Keywords

Time-space trade-off Balanced subdivision Simple polygon Shortest path Shortest path tree Triangulation 

Notes

References

  1. 1.
    Ahn, H.-K., Baraldo, N., Oh, E., Silvestri, F.: A time-space trade-off for triangulations of points in the plane. In: Proceedings of the 23rd Annual International Computing and Combinatorics Conference (COCOON 2017), pp. 3–12 (2017)Google Scholar
  2. 2.
    Aronov, B., Korman, M., Pratt, S., van Renssen, A., Roeloffzen, M.: Time-space trade-offs for triangulating a simple polygon. J. Comput. Geom. 8(1), 105–124 (2017)MathSciNetzbMATHGoogle Scholar
  3. 3.
    Asano, T., Buchin, K., Buchin, M., Korman, M., Mulzer, W., Rote, G., Schulz, A.: Memory-constrained algorithms for simple polygons. Comput. Geom. 46(8), 959–969 (2013)MathSciNetCrossRefzbMATHGoogle Scholar
  4. 4.
    Asano, T., Kirkpatrick, D.: Time-space tradeoffs for all-nearest-larger-neighbors problems. In: Proceedings of the 13th Algorithms and Data Structures Symposium (WADS 2013), pp. 61–72 (2013)Google Scholar
  5. 5.
    Asano, T., Mulzer, W., Rote, G., Wang, Y.: Constant-work-space algorithms for geometric problems. J. Comput. Geom. 2(1), 46–68 (2011)MathSciNetzbMATHGoogle Scholar
  6. 6.
    Asano, T., Mulzer, W., Wang, Y.: Constant-work-space algorithms for shortest paths in trees and simple polygons. J. Graph Algorithms Appl. 15(5), 569–586 (2011)MathSciNetCrossRefzbMATHGoogle Scholar
  7. 7.
    Banyassady, B., Barba, L., Mulzer, W.: Time-space trade-offs for computing Euclidean minimum spanning trees. In: Proceedings of the 13th Latin American Theoretical Informatics Symposium (LATIN 2018), pp. 108–119 (2018)Google Scholar
  8. 8.
    Banyassady, B., Korman, M., Mulzer, W.: Computational geometry column 67. SIGACT News 49(2), 77–94 (2018)MathSciNetCrossRefGoogle Scholar
  9. 9.
    Barba, L., Korman, M., Langerman, S., Sadakane, K., Silveira, R.I.: Space-time trade-offs for stack-based algorithms. Algorithmica 72(4), 1097–1129 (2015)MathSciNetCrossRefzbMATHGoogle Scholar
  10. 10.
    Chazelle, B.: Triangulating a simple polygon in linear time. Discrete Comput. Geom. 6(3), 485–524 (1991)MathSciNetCrossRefzbMATHGoogle Scholar
  11. 11.
    Darwish, O., Elmasry, A.: Optimal time-space tradeoff for the 2D convex-hull problem. In: Proceedings of the 22nd Annual European Symposium on Algorithms (ESA 2014), pp. 284–295 (2014)Google Scholar
  12. 12.
    de Berg, M., Cheong, O., van Kreveld, M., Overmars, M.: Computational Geometry: Algorithms and Applications. Springer TELOS, Berlin (2008)CrossRefzbMATHGoogle Scholar
  13. 13.
    Frederickson, G.N.: Upper bounds for time-space trade-offs in sorting and selection. J. Comput. Syst. 34(1), 19–26 (1987)MathSciNetCrossRefzbMATHGoogle Scholar
  14. 14.
    Guibas, L., Hershberger, J.: Optimal shortest path queries in a simple polygon. J. Comput. Syst. Sci. 39(2), 126–152 (1989)MathSciNetCrossRefzbMATHGoogle Scholar
  15. 15.
    Guibas, L., Hershberger, J., Leven, D., Sharir, M., Tarjan, R.E.: Linear-time algorithms for visibility and shortest path problems inside triangulated simple polygons. Algorithmica 2(1), 209–233 (1987)MathSciNetCrossRefzbMATHGoogle Scholar
  16. 16.
    Har-Peled, S.: Shortest path in a polygon using sublinear space. J. Comput. Geom. 7(2), 19–45 (2015)MathSciNetzbMATHGoogle Scholar
  17. 17.
    Korman, M., Mulzer, W., van Renssen, A., Roeloffzen, M., Seiferth, P., Stein, Y.: Time-space trade-offs for triangulations and Voronoi diagrams. Comput. Geom. 73, 35–45 (2018)MathSciNetCrossRefzbMATHGoogle Scholar

Copyright information

© Springer Science+Business Media, LLC, part of Springer Nature 2019

Authors and Affiliations

  1. 1.Max Planck Institute for InformaticsSaarbrückenGermany
  2. 2.Department of Computer Science and EngineeringPOSTECHPohangKorea

Personalised recommendations