Skip to main content
Log in

Minimum Many-to-Many Matchings for Computing the Distance Between Two Sequences

  • Original Paper
  • Published:
Graphs and Combinatorics Aims and scope Submit manuscript

Abstract

Motivated by a problem in music theory of measuring the distance between chords, scales, and rhythms we consider algorithms for obtaining a minimum-weight many-to-many matching between two sets of points on the real line. Given sets \(A\) and \(B\), we seek to find the best rigid translation of \(B\) and a many-to-many matching that minimizes the sum of the squares of the distances between matched points. We provide discrete algorithms that solve this continuous optimization problem, and discuss other related matters.

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.

Fig. 1
Fig. 2
Fig. 3

Similar content being viewed by others

References

  1. Ben-Dor, A., Karp, R.M., Schwikowski, B., Shamir, R.: The restriction scaffold problem. J. Comput. Biol. 10(2), 385–398 (2003)

    Article  Google Scholar 

  2. Buss, S.R., Yianilos, P.N.: A bipartite matching approach to approximate string comparison and search. Technical Report, NEC Research Institute (1995)

  3. Colannino, J., Damian, M., Hurtado, F., Iacono, J., Meijer, H., Ramaswami, S., Toussaint, G.: An O\((n \log n)\) time algorithm for the restriction scaffold assignment problem. J. Comput. Biol. 13(4), 979–989 (2006)

    Article  MathSciNet  MATH  Google Scholar 

  4. Colannino, J., Damian, M., Hurtado, F., Langerman, S., Meijer, H., Ramaswami, S., Souvaine, D., Toussaint, G.: Efficient many-to-many point matching in one dimension. Graphs Comb. 23, 169–178 (2007)

    Article  MathSciNet  MATH  Google Scholar 

  5. Demirci, M.F., Shokoufandeh, A., Keselman, Y., Bretzner, L., Dickinson, S.: Object recognition as many-to-many feature matching. Int. J. Comput. Vis. 69(2), 203–222 (2006)

    Article  Google Scholar 

  6. Eiter, T., Mannila, H.: Distance measures for point sets and their computation. Acta Inform. 34(2), 109–133 (1997)

    Article  MathSciNet  MATH  Google Scholar 

  7. Karp, R.M., Li, S.-Y.R.: Two special cases of the assignment problem. Discret. Math. 13, 129–142 (1975)

    Article  MathSciNet  MATH  Google Scholar 

  8. Kuhn, H.W.: The Hungarian method for the assignment problem. Nav. Res. Logist. 2, 83–97 (1955)

    Article  Google Scholar 

  9. Mucha, M., Sankowski, P.: Maximum matchings via Gaussian elimination. In: Proceedings of 45th Annual IEEE Symposium on Foundations of Computer Science, pp. 248–255 (2004)

  10. Schrijver, A.: Combinatorial Optimization: Polyhedra and Efficiency. Springer, Berlin (2003)

    Google Scholar 

  11. Toussaint, G.: A comparison of rhythmic similarity measures. In: Proceedings of the 5th International Conference on Music Information Retrieval, pp. 242–245 (2004)

  12. Toussaint, G.: The geometry of musical rhythm. In: Akiyama, J., et al. (eds.) Selected Papers of the Japanese Conference on Discrete and Computational Geometry. LNCS, vol. 3742, pp. 198–212. Springer, Berlin (2005)

  13. Tymoczko, D.: The geometry of musical chords. Science 313(5783), 72–74 (2006)

    Article  MathSciNet  Google Scholar 

  14. Werman, M., Peleg, S., Melter, R., Kong, T.Y.: Bipartite graph matching for points on a line or a circle. J. Algorithms 7, 277–284 (1986)

    Article  MathSciNet  MATH  Google Scholar 

Download references

Acknowledgments

This work was initiated at the 2nd Bellairs Winter Workshop on Mathematics and Music, co-organized by Dmitri Tymoczko and Godfried Toussaint, held on February 6-12, 2010. We thank the other participants of that workshop, Fernando Benadon, Adrian Childs, Richard Cohn, Rachel Hall, John Halle, Jay Rahn, Bill Sethares, and Steve Taylor, for providing a stimulating research environment

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to David Rappaport.

Additional information

D. Rappaport: Research supported by NSERC Discovery Grant 388-329.

Rights and permissions

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Mohamad, M., Rappaport, D. & Toussaint, G. Minimum Many-to-Many Matchings for Computing the Distance Between Two Sequences. Graphs and Combinatorics 31, 1637–1648 (2015). https://doi.org/10.1007/s00373-014-1467-4

Download citation

  • Received:

  • Revised:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s00373-014-1467-4

Keywords

Navigation