Skip to main content

Multidimensional String Matching

1999; Kärkkäinen, Ukkonen

  • Reference work entry
Encyclopedia of Algorithms

Keywords and Synonyms

Multidimensional array matching; Image matching ; Template registration      

Problem Definition

Given two two-dimensional arrays, the text \( T[1\,\ldots\, n,\,1\,\ldots\, n] \) and the pattern \( P[1\,\ldots\, m,\,1\,\ldots\, m] \), \( m\leq n \), both with element values from alphabet Σ of size σ, the basic two-dimensional string matching (2DSM) problem is to find all occurrences of P in T, i. e., all \( m\times m \) subarrays of T that are identical to P. In addition to the basic problem, several types of generalizations are considered: approximate matching (allow local errors), invariant matching (allow global transformations), indexed matching (preprocess the text), and multidimensional matching.

In approximate matching, an occurrence is a subarray S of the text, whose distance d(S, P) from the pattern does not exceed a threshold k. Different distance measures lead to different variants of the problem. When no distance is explicitly mentioned, the Hamming distance...

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 399.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Recommended Reading

  1. Amir, A.: Theoretical issues of searching aerial photographs: a bird's eye view. Int. J. Found. Comput. Sci. 16, 1075–1097 (2005)

    Article  MathSciNet  MATH  Google Scholar 

  2. Amir, A., Benson, G., Farach, M.: An alphabet independent approach to two-dimensional pattern matching. SIAM J. Comput. 23, 313–323 (1994)

    Article  MathSciNet  MATH  Google Scholar 

  3. Amir, A., Chencinski, E.: Faster two dimensional scaled matching. In: Proc. 17th Annual Symposium on Combinatorial Pattern Matching. LNCS, vol. 4009, pp. 200–210. Springer, Berlin (2006)

    Google Scholar 

  4. Amir, A., Kapah, O., Tsur, D.: Faster two dimensional pattern matching with rotations. In: Proc. 15th Annual Symposium on Combinatorial Pattern Matching. LNCS, vol. 3109, pp. 409–419. Springer, Berlin (2004)

    Chapter  Google Scholar 

  5. Amir, A., Landau, G.M.: Fast parallel and serial multidimensional approximate array matching. Theoretical Comput. Sci. 81, 97–115 (1991)

    Article  MathSciNet  MATH  Google Scholar 

  6. Baeza-Yates, R., Navarro, G.: New models and algorithms for multidimensional approximate pattern matching. J. Discret. Algorithms 1, 21–49 (2000)

    MathSciNet  Google Scholar 

  7. Baker, T.P.: A technique for extending rapid exact-match string matching to arrays of more than one dimension. SIAM J. Comput. 7, 533–541 (1978)

    Article  MathSciNet  MATH  Google Scholar 

  8. Bird, R.S.: Two dimensional pattern matching. Inf. Process. Lett. 6, 168–170 (1977)

    Article  Google Scholar 

  9. Brown, L.G.: A survey of image registration techniques. ACM Computing Surveys 24, 325–376 (1992)

    Article  Google Scholar 

  10. Fredriksson, K., Navarro, G., Ukkonen, E.: Faster than FFT: Rotation invariant combinatorial template matching. In: Pandalai, S. (ed.) Recent Research Developments in Pattern Recognition, vol. II, pp. 75–112. Transworld Research Network, Trivandrum, India (2002)

    Google Scholar 

  11. Fredriksson, K., Navarro, G., Ukkonen, E.: Sequential and indexed two-dimensional combinatorial template matching allowing rotations. Theoretical Comput. Sci. 347, 239–275 (2005)

    Article  MathSciNet  MATH  Google Scholar 

  12. Fredriksson, K., Ukkonen, E.: Combinatorial methods for approximate pattern matching under rotations and translations in 3D arrays. In: Proc. 7th International Symposium on String Processing and Information Retrieval, pp. 96–104. IEEE Computer Society, Washington, DC (2000)

    Google Scholar 

  13. Galil, Z., Park, J.G., Park, K.: Three-dimensional periodicity and its application to pattern matching. SIAM J. Discret. Math. 18, 362–381 (2004)

    Article  MathSciNet  MATH  Google Scholar 

  14. Galil, Z., Park, K.: Alphabet-independent two-dimensional witness computation. SIAM J. Comput. 25, 907–935 (1996)

    Article  MathSciNet  MATH  Google Scholar 

  15. Kärkkäinen, J., Ukkonen, E.: Two- and higher-dimensional pattern matching in optimal expected time. SIAM J. Comput. 29, 571–589 (1999)

    Article  MathSciNet  MATH  Google Scholar 

  16. Kim, D.K., Park, K.: Linear-time construction of two-dimensional suffix trees. In: Proc. 26th International Colloquium on Automata Languages and Programming. LNCS, vol. 1644, pp. 463–472. Springer, Berlin (1999)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2008 Springer-Verlag

About this entry

Cite this entry

Kärkkäinen, J., Ukkonen, E. (2008). Multidimensional String Matching. In: Kao, MY. (eds) Encyclopedia of Algorithms. Springer, Boston, MA. https://doi.org/10.1007/978-0-387-30162-4_247

Download citation

Publish with us

Policies and ethics