Skip to main content
Log in

Computing the Greedy Spanner in Near-Quadratic Time

  • Published:
Algorithmica Aims and scope Submit manuscript

Abstract

The greedy algorithm produces high-quality spanners and, therefore, is used in several applications. However, even for points in d-dimensional Euclidean space, the greedy algorithm has near-cubic running time. In this paper, we present an algorithm that computes the greedy spanner for a set of n points in a metric space with bounded doubling dimension in \(\ensuremath {\mathcal {O}}(n^{2}\log n)\) time. Since computing the greedy spanner has an Ω(n 2) lower bound, the time complexity of our algorithm is optimal within a logarithmic factor.

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

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Similar content being viewed by others

References

  1. Althöfer, I., Das, G., Dobkin, D.P., Joseph, D., Soares, J.: On sparse spanners of weighted graphs. Discrete Comput. Geom. 9(1), 81–100 (1993)

    Article  MATH  MathSciNet  Google Scholar 

  2. Callahan, P.B., Kosaraju, S.R.: A decomposition of multidimensional point sets with applications to k-nearest-neighbors and n-body potential fields. J. ACM 42, 67–90 (1995)

    Article  MATH  MathSciNet  Google Scholar 

  3. Chandra, B.: Constructing sparse spanners for most graphs in higher dimensions. Inf. Process. Lett. 51(6), 289–294 (1994)

    Article  MATH  Google Scholar 

  4. Chandra, B., Das, G., Narasimhan, G., Soares, J.: New sparseness results on graph spanners. Int. J. Comput. Geom. Appl. 5, 124–144 (1995)

    Article  MathSciNet  Google Scholar 

  5. Chew, L.P.: There is a planar graph almost as good as the complete graph. In: SCG’86: Proceedings of the 2nd Annual ACM Symposium on Computational Geometry, pp. 169–177 (1986)

  6. Cormen, T.H., Leiserson, C.E., Rivest, R.L., Stein, C.: Introduction to Algorithms, 2nd edn. MIT Press/McGraw-Hill, Cambridge/New York (2001)

    MATH  Google Scholar 

  7. Das, G., Narasimhan, G.: A fast algorithm for constructing sparse Euclidean spanners. Int. J. Comput. Geom. Appl. 7, 297–315 (1997)

    Article  MATH  MathSciNet  Google Scholar 

  8. Das, G., Heffernan, P.J., Narasimhan, G.: Optimally sparse spanners in 3-dimensional Euclidean space. In: SCG’93: Proceedings of the 9th Annual ACM Symposium on Computational Geometry, pp. 53–62 (1993)

  9. Dijkstra, E.W.: A note on two problems in connexion with graphs. Numer. Math. 1, 269–271 (1959)

    Article  MATH  MathSciNet  Google Scholar 

  10. Eppstein, D.: Spanning trees and spanners. In: Sack, J.-R., Urrutia, J. (eds.) Handbook of Computational Geometry, pp. 425–461. Elsevier, Amsterdam (2000)

    Chapter  Google Scholar 

  11. Farshi, M.: A theoretical and experimental study of geometric networks. Ph.D. Thesis, Department of Mathematics and Computer Science, Eindhoven University of Technology, Eindhoven, The Netherlands (2008)

  12. Farshi, M., Gudmundsson, J.: Experimental study of geometric t-spanners. In: ESA’05: Proceedings of the 13th Annual European Symposium on Algorithms. Lecture Notes in Computer Science, vol. 3669, pp. 556–567. Springer, Berlin (2005)

    Google Scholar 

  13. Farshi, M., Gudmundsson, J.: Experimental study of geometric t-spanners: A running time comparison. In: WEA’07: Proceedings of the 6th Workshop on Experimental Algorithms. Lecture Notes in Computer Science, vol. 4525, pp. 270–284. Springer, Berlin (2007)

    Google Scholar 

  14. Gudmundsson, J., Knauer, C.: Dilation and detour in geometric networks. In: Gonzalez, T. (ed.) Handbook on Approximation Algorithms and Metaheuristics. Chapman & Hall/CRC Press, London/Boca Raton (2007)

    Google Scholar 

  15. Gudmundsson, J., Levcopoulos, C., Narasimhan, G.: Improved greedy algorithms for constructing sparse geometric spanners. SIAM J. Comput. 31(5), 1479–1500 (2002)

    Article  MATH  MathSciNet  Google Scholar 

  16. Har-Peled, S.: A simple proof? http://valis.cs.uiuc.edu/blog/?p=441 (2006)

  17. Har-Peled, S., Mendel, M.: Fast construction of nets in low-dimensional metrics and their applications. SIAM J. Comput. 35(5), 1148–1184 (2006)

    Article  MATH  MathSciNet  Google Scholar 

  18. Narasimhan, G., Smid, M.: Geometric Spanner Networks. Cambridge University Press, Cambridge (2007)

    Book  MATH  Google Scholar 

  19. Peleg, D.: Distributed Computing: A Locality-Sensitive Approach. SIAM, Philadelphia (2000)

    MATH  Google Scholar 

  20. Peleg, D., Schäffer, A.: Graph spanners. J. Graph Theory 13, 99–116 (1989)

    Article  MATH  MathSciNet  Google Scholar 

  21. Russel, D., Guibas, L.J.: Exploring protein folding trajectories using geometric spanners. In: Pacific Symposium on Biocomputing, pp. 40–51 (2005)

  22. Smid, M.: Closest point problems in computational geometry. In: Sack, J.-R., Urrutia, J. (eds.) Handbook of Computational Geometry, pp. 877–935. Elsevier, Amsterdam (2000)

    Chapter  Google Scholar 

  23. Soares, J.: Approximating Euclidean distances by small degree graphs. Discrete Comput. Geom. 11, 213–233 (1994)

    Article  MATH  MathSciNet  Google Scholar 

  24. Talwar, K.: Bypassing the embedding: algorithms for low dimensional metrics. In: STOC’04: Proceedings of the 36th Annual ACM Symposium on Theory of Computing, pp. 281–290. ACM, New York (2004)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Mohammad Farshi.

Additional information

An extended abstract of this paper appeared in the Proceedings of the 11th Scandinavian Workshop on Algorithm Theory (SWAT), Lecture Notes in Computer Science, vol. 5124, pp. 390–401, Springer, 2008.

Research supported in part by NSERC and MRI.

Rights and permissions

Reprints and permissions

About this article

Cite this article

Bose, P., Carmi, P., Farshi, M. et al. Computing the Greedy Spanner in Near-Quadratic Time. Algorithmica 58, 711–729 (2010). https://doi.org/10.1007/s00453-009-9293-4

Download citation

  • Received:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s00453-009-9293-4

Keywords

Navigation