, Volume 69, Issue 3, pp 641–657 | Cite as

Improved Algorithms for Partial Curve Matching

  • Anil Maheshwari
  • Jörg-Rüdiger Sack
  • Kaveh Shahbaz
  • Hamid Zarrabi-Zadeh


We revisit the problem of deciding whether a given curve resembles some part of a larger curve under a fixed Fréchet distance, achieving a running time of O(nm), for n and m being the number of segments in the two curves. This improves the long-standing result of Alt and Godau by an O(log(nm)) factor. Our solution is based on constructing a simple data structure which we call free-space map. Using this data structure, we obtain improved algorithms for several variants of the Fréchet distance problem, including the Fréchet distance between two closed curves, and the so-called minimum/maximum walk problems. We also improve the map matching algorithm of Alt et al. for the particular case in which the map is a directed acyclic graph.


Fréchet distance Partial curve matching Closed curves Free-space map 



The authors would like to thank the anonymous referees for their valuable comments.


  1. 1.
    Alt, H.: The computational geometry of comparing shapes. In: Efficient Algorithms: Essays Dedicated to Kurt Mehlhorn on the Occasion of His 60th Birthday, pp. 235–248. Springer, Berlin (2009) CrossRefGoogle Scholar
  2. 2.
    Alt, H., Efrat, A., Rote, G., Wenk, C.: Matching planar maps. J. Algorithms 49(2), 262–283 (2003) CrossRefzbMATHMathSciNetGoogle Scholar
  3. 3.
    Alt, H., Godau, M.: Computing the Fréchet distance between two polygonal curves. Int. J. Comput. Geom. Appl. 5, 75–91 (1995) CrossRefzbMATHMathSciNetGoogle Scholar
  4. 4.
    Buchin, K., Buchin, M., Gudmundsson, J.: Constrained free space diagrams: a tool for trajectory analysis. Int. J. Geogr. Inf. Sci. 24(7), 1101–1125 (2010) CrossRefGoogle Scholar
  5. 5.
    Buchin, K., Buchin, M., Knauer, C., Rote, G., Wenk, C.: How difficult is it to walk the dog? In: Proceedings of the 23rd European Workshop on Computational Geometry, pp. 170–173 (2007) Google Scholar
  6. 6.
    Buchin, K., Buchin, M., Wang, Y.: Exact algorithms for partial curve matching via the Fréchet distance. In: Proceedings of the 20th ACM-SIAM Symposium on Discrete Algorithms, pp. 645–654 (2009) CrossRefGoogle Scholar
  7. 7.
    Cook, A.F., Wenk, C.: Geodesic Fréchet distance inside a simple polygon. ACM Trans. Algorithms 7(1), 1–19 (2010) MathSciNetGoogle Scholar
  8. 8.
    Efrat, A., Guibas, L.J., Har-Peled, S., Mitchell, J.S.B., Murali, T.M.: New similarity measures between polylines with applications to morphing and polygon sweeping. Discrete Comput. Geom. 28(4), 535–569 (2002) CrossRefzbMATHMathSciNetGoogle Scholar
  9. 9.
    Har-Peled, S., Raichel, B.: The Fréchet distance revisited and extended. In: Proceedings of the 27th ACM Symposium on Computational Geometry, pp. 448–457 (2011) Google Scholar
  10. 10.
    Jiang, M., Xu, Y., Zhu, B.: Protein structure-structure alignment with discrete Fréchet distance. J. Bioinform. Comput. Biol. 6(1), 51–64 (2008) CrossRefGoogle Scholar
  11. 11.
    Maheshwari, A., Sack, J.-R., Shahbaz, K., Zarrabi-Zadeh, H.: Fréchet distance with speed limits. Comput. Geom. 44(2), 110–120 (2011) CrossRefzbMATHMathSciNetGoogle Scholar
  12. 12.
    Maheshwari, A., Sack, J.-R., Shahbaz, K., Zarrabi-Zadeh, H.: Staying close to a curve. In: Proceedings of the 23rd Canadian Conference on Computational Geometry, pp. 55–58 (2011) Google Scholar
  13. 13.
    Sriraghavendra, E., Karthik, K., Bhattacharyya, C.: Fréchet distance based approach for searching online handwritten documents. In: Proceedings of the 9th International Conference on Document Analysis and Recognition, pp. 461–465 (2007) Google Scholar

Copyright information

© Springer Science+Business Media New York 2013

Authors and Affiliations

  • Anil Maheshwari
    • 1
  • Jörg-Rüdiger Sack
    • 1
  • Kaveh Shahbaz
    • 1
  • Hamid Zarrabi-Zadeh
    • 2
  1. 1.School of Computer ScienceCarleton UniversityOttawaCanada
  2. 2.Department of Computer EngineeringSharif University of TechnologyTehranIran

Personalised recommendations