Skip to main content

Parameterized Matching

1993; Baker

  • Reference work entry
Encyclopedia of Algorithms

Problem Definition

Parameterized strings, or p-strings, are strings that contain both ordinary symbols from an alphabet Σ and parameter symbols from an alphabet Π. Two equal-length p‑strings s and \( { s^{\prime} } \) are a parameterized match, or p-match, if one p‑string can be transformed into the other by applying a one-to-one function that renames the parameter symbols. The following example of a p-match is one with both ordinary and parameter symbols. The ordinary symbols are in lowercase and the parameter symbols are in uppercase.

$$ \begin{aligned} s &= A\ b\ A\ b\ C\ A\ d\ b\ A\ C\ d\ d \\ s^{\prime} &= D\ b\ D\ b\ E\ D\ d\ b\ D\ E\ d\ d \end{aligned} $$

In some of the problems to be considered it will be sufficient to solve for p-strings in which all symbols are parameter symbols, as this is the more difficult part of the problem. In other words, the case in which \( { \Sigma = \emptyset } \). In this case the definition can be reformulated so that s and \( { s^{\prime} } \)...

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., Aumann, Y., Cole, R., Lewenstein, M., Porat, E.: Function matching: Algorithms, applications and a lower bound. In: Proc. of the 30th International Colloquium on Automata, Languages and Programming (ICALP), 2003 pp. 929–942

    Google Scholar 

  2. Amir, A., Farach, M., Muthukrishnan, S.: Alphabet dependence in parameterized matching. Inf. Process. Lett. 49, 111–115 (1994)

    Article  MATH  Google Scholar 

  3. Apostolico, A., Erdös, P., Lewenstein, M.: Parameterized matching with mismatches. J. Discret. Algorithms 5(1), 135–140 (2007)

    Article  MATH  Google Scholar 

  4. Baker, B.S.: A theory of parameterized pattern matching: algorithms and applications. In: Proc. 25th Annual ACM Symposium on the Theory of Computation (STOC), 1993, pp. 71–80

    Google Scholar 

  5. Baker, B.S.: Parameterized pattern matching by Boyer-Moore-type algorithms. In: Proc. 6th Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), 1995, pp. 541–550

    Google Scholar 

  6. Baker, B.S.: Parameterized pattern matching: Algorithms and applications. J. Comput. Syst. Sci. 52(1), 28–42 (1996)

    Article  MATH  Google Scholar 

  7. Baker, B.S.: Parameterized duplication in strings: Algorithms and an application to software maintenance. SIAM J. Comput. 26(5), 1343–1362 (1997)

    Article  MathSciNet  MATH  Google Scholar 

  8. Baker, B.S.: Parameterized diff. In: Proc. 10th Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), 1999, pp. 854–855

    Google Scholar 

  9. Cole, R., Hariharan, R.: Faster suffix tree construction with missing suffix links. In: Proc. 32nd ACM Symposium on Theory of Computing (STOC), 2000 pp. 407–415

    Google Scholar 

  10. Fredriksson, K., Mozgovoy, M.: Efficient parameterized string matching. Inf. Process. Lett. 100(3), 91–96 (2006)

    Article  MathSciNet  MATH  Google Scholar 

  11. Harel, D., Tarjan, R.E.: Fast algorithms for finding nearest common ancestor. J. Comput. Syst. Sci. 13, 338–355 (1984)

    MathSciNet  MATH  Google Scholar 

  12. Hazay, C., Lewenstein, M., Sokol, D.: Approximate parameterized matching. ACM Trans. Algorithms 3(3) (2007)

    Google Scholar 

  13. Hazay, C., Lewenstein, M., Tsur, D.: Two dimensional parameterized matching. In: Proc. of 16th Symposium on Combinatorial Pattern Matching (CPM), 2005, pp. 266–279

    Google Scholar 

  14. Idury, R.M., Schäffer, A.A.: Multiple matching of parametrized patterns. Theor. Comput. Sci. 154(2), 203–224 (1996)

    Article  MATH  Google Scholar 

  15. Keller, O., Kopelowitz, T., Lewenstein, M.: Parameterized LCS and edit distance are NP-Complete. Manuscript

    Google Scholar 

  16. Kosaraju, S.R.: Faster algorithms for the construction of parameterized suffix trees. In: Proc. 36th Annual Symposium on Foundations of Computer Science (FOCS), 1995, pp. 631–637

    Google Scholar 

  17. Landau, G.M., Vishkin, U.: Fast string matching with k differences. J. Comput. Syst. Sci. 37(1), 63–78 (1988)

    Article  MathSciNet  MATH  Google Scholar 

  18. McCreight, E.M.: A space‐economical suffix tree construction algorithm. J. ACM 23, 262–272 (1976)

    Article  MathSciNet  MATH  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

Lewenstein, M. (2008). Parameterized Matching. In: Kao, MY. (eds) Encyclopedia of Algorithms. Springer, Boston, MA. https://doi.org/10.1007/978-0-387-30162-4_282

Download citation

Publish with us

Policies and ethics