Skip to main content

An Experimental Study of Algorithms for Geodesic Shortest Paths in the Constant-Workspace Model

  • Conference paper
  • First Online:
Analysis of Experimental Algorithms (SEA 2019)

Abstract

We perform an experimental evaluation of algorithms for finding geodesic shortest paths between two points inside a simple polygon in the constant-workspace model. In this model, the input resides in a read-only array that can be accessed at random. In addition, the algorithm may use a constant number of words for reading and for writing. The constant-workspace model has been studied extensively in recent years, and algorithms for geodesic shortest paths have received particular attention.

We have implemented three such algorithms in Python, and we compare them to the classic algorithm by Lee and Preparata that uses linear time and linear space. We also clarify a few implementation details that were missing in the original description of the algorithms. Our experiments show that all algorithms perform as advertised in the original works and according to the theoretical guarantees. However, the constant factors in the running times turn out to be rather large for the algorithms to be fully useful in practice.

Supported in part by DFG projects MU/3501-1 and RO/2338-6 and ERC StG 757609.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 69.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 89.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 1.

    If a triangulation of P is already available, the implementation is relatively straightforward. If not, a linear-time implementation of the triangulation procedure constitutes a significant challenge [8]. Simpler methods are available, albeit at the cost of a slightly increased running time of \(O(n \log n)\) [7].

  2. 2.

    https://github.com/jonasc/constant-workspace-algos.

References

  1. Asano, T.: Memory-constrained algorithms for simple polygons. Comput. Geom. Theory Appl. 46(8), 959–969 (2013)

    Article  MathSciNet  Google Scholar 

  2. Asano, T., Mulzer, W., Rote, G., Wang, Y.: Constant-work-space algorithms for geometric problems. J. Comput. Geom. 2(1), 46–68 (2011)

    MathSciNet  MATH  Google Scholar 

  3. 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)

    Article  MathSciNet  Google Scholar 

  4. Auer, T., Held, M.: Heuristics for the generation of random polygons. In: Proceedings of 8th Canadian Conference on Computational Geometry (CCCG), pp. 38–43 (1996)

    Google Scholar 

  5. Baffier, J.F., Diez, Y., Korman, M.: Experimental study of compressed stack algorithms in limited memory environments. In: Proceedings of 17th International Symposium Experimental Algorithms (SEA), pp. 19:1–19:13 (2018)

    Google Scholar 

  6. Banyassady, B., Korman, M., Mulzer, W.: Computational geometry column 67. SIGACT News 49(2), 77–94 (2018)

    Article  MathSciNet  Google Scholar 

  7. de Berg, M., Cheong, O., van Kreveld, M., Overmars, M.: Computational Geometry: Theory and Applications, 3rd edn. Springer, Heidelberg (2008). https://doi.org/10.1007/978-3-540-77974-2

    Book  MATH  Google Scholar 

  8. Chazelle, B.: Triangulating a simple polygon in linear time. Discret. Comput. Geom. 6, 485–524 (1991)

    Article  MathSciNet  Google Scholar 

  9. Chew, L.P.: Constrained Delaunay triangulations. Algorithmica 4, 97–108 (1989)

    Article  MathSciNet  Google Scholar 

  10. Dierker, S., Ehrhardt, M., Ihrig, J., Rohde, M., Thobe, S., Tugan, K.: Abschlussbericht zum Softwareprojekt: Zufällige Polygone und kürzeste Wege. Institut für Informatik, Freie Universität, Berlin (2012). https://github.com/marehr/simple-polygon-generator

  11. Ghosh, S.K.: Visibility Algorithms in the Plane. Cambridge University Press, New York (2007)

    Book  Google Scholar 

  12. Har-Peled, S.: Shortest path in a polygon using sublinear space. J. Comput. Geom. 7(2), 19–45 (2016)

    MathSciNet  MATH  Google Scholar 

  13. Hunter, J.D.: Matplotlib: a 2D graphics environment. Comput. Sci. Eng. 9(3), 90–95 (2007)

    Article  Google Scholar 

  14. Lee, D.T., Preparata, F.P.: Euclidean shortest paths in the presence of rectilinear barriers. Networks 14(3), 393–410 (1984)

    Article  MathSciNet  Google Scholar 

  15. Python Software Foundation: Python. https://www.python.org/. version 3.5

  16. Rufat, D.: Python Triangle (2016). http://dzhelil.info/triangle/. version 20160203

  17. Shewchuk, J.R.: Triangle: engineering a 2D quality mesh generator and Delaunay triangulator. In: Lin, M.C., Manocha, D. (eds.) WACG 1996. LNCS, vol. 1148, pp. 203–222. Springer, Heidelberg (1996). https://doi.org/10.1007/BFb0014497

    Chapter  Google Scholar 

  18. Tantau, T.: Logspace optimization problems and their approximability properties. Theor. Comput. Sci. 41(2), 327–350 (2007)

    MathSciNet  MATH  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Jonas Cleve .

Editor information

Editors and Affiliations

A Tables of Experimental Results

A Tables of Experimental Results

Here we list the experimental results shown in Figs. 7 and 8 (Tables 1 and 2).

Table 1. The median and maximum memory usage in bytes for all runs with a specific number of vertices n.
Table 2. The median and maximum running times in seconds for all runs with a specific number of vertices n.

Rights and permissions

Reprints and permissions

Copyright information

© 2019 Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Cleve, J., Mulzer, W. (2019). An Experimental Study of Algorithms for Geodesic Shortest Paths in the Constant-Workspace Model. In: Kotsireas, I., Pardalos, P., Parsopoulos, K., Souravlias, D., Tsokas, A. (eds) Analysis of Experimental Algorithms. SEA 2019. Lecture Notes in Computer Science(), vol 11544. Springer, Cham. https://doi.org/10.1007/978-3-030-34029-2_21

Download citation

  • DOI: https://doi.org/10.1007/978-3-030-34029-2_21

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-030-34028-5

  • Online ISBN: 978-3-030-34029-2

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics