Skip to main content

Function Matching: Algorithms, Applications, and a Lower Bound

  • Conference paper
  • First Online:
Automata, Languages and Programming (ICALP 2003)

Part of the book series: Lecture Notes in Computer Science ((LNCS,volume 2719))

Included in the following conference series:

Abstract

We introduce a new matching criterion — function matching — that captures several different applications. The function matching. problem has as its input a text T of length n over alphabet Σ T and a pattern P = P[1]P[2] ... P[m] of length m over alphabet Σ T. We seek all text locations i for which, for some function f: Σ TΣ T (f may also depend on i), the m-length substring that starts at i is equal to f(P[1])f(P[2]) ... f(P[m]).

We give a randomized algorithm which, for any given constant k, solves the function matching problem in time O(n log n) with probability \( \frac{1} {{n^k }} \) of declaring a false positive.W e give a deterministic algorithm whose time is O(n|Σ T| logm) and show that it is almost optimal in the newly formalized convolutions model. Finally, a variant of the third problem is solved by means of two-dimensional parameterized matching, for which we also give an efficient algorithm.

Partially supported by a FIRST grant of the Israel Academy of Sciences and Humanities, and NSF grant CCR-01-04494.

Partially supported by NSF grant CCR-01-05678.

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 39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. K. Abrahamson. Generalized string matching. SIAM J. Comp., 16(6):1039–1051, 1987.

    Article  MATH  MathSciNet  Google Scholar 

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

    Article  MATH  MathSciNet  Google Scholar 

  3. A. Amir, K.W. Church, and E. Dar. Separable attributes: a technique for solving the submatrices character count problem. In Proc. 13th ACM-SIAM Symp. on. Discrete Algorithms (SODA), pages 400–401, 2002.

    Google Scholar 

  4. A. Amir and M. Farach. Efficient 2-dimensional approximate matching of half-rectangular figures. Information and Computation, 118(1):1–11, April 1995.

    Article  MATH  MathSciNet  Google Scholar 

  5. A. Amir, M. Farach, and S. Muthukrishnan. Alphabet dependence in parameterized matching. Information Processing Letters, 49:111–115, 1994.

    Article  MATH  Google Scholar 

  6. G.P. Babu, B.M. Mehtre, and M.S. Kankanhalli. Color indexing for efficient image retrieval. Multimedia Tools and Applications, 1(4):327–348, Nov. 1995.

    Article  Google Scholar 

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

    Google Scholar 

  8. J.H. Bowie, R. Luthy, and D. Eisenberg. A method to identify protein sequences that fold into a known three-dimensional structure. Science, (253):164–176, 1991.

    Article  Google Scholar 

  9. R. Cole and R. Hariharan. Verifying candidate matches in sparse and wildcard matching. In Proc. 34st Annual Symposium on the Theory of Computing (STOC), pages 592–601, 2002.

    Google Scholar 

  10. M. Crochemore and W. Rytter. Text Algorithms. Oxford University Press, 1994.

    Google Scholar 

  11. M.J. Fischer and M.S. Paterson. String matching and other products. Complexity. of Computation, R.M. Karp (editor), SIAM-AMS Proceedings, 7:113–125, 1974.

    Google Scholar 

  12. W.C. Kreahling and C. Norris. Profile assisted register allocation. In Proc. ACM. Symp. on Applied Computing (SAC), pages 774–781, 2000.

    Google Scholar 

  13. G-Y. Lueh, T. Gross, and A-R. Adl-Tabatabai. Fusion-based register allocation. ACM Transactions on Programming Languages and Sustems (TOPLAS), 22(3):431–470, 2000.

    Article  Google Scholar 

  14. Jr. K. Merz and S.M. La Grand. The Protein Folding Problem and Tertiary. Structure Prediction. Birkhauser, Boston, 1994.

    Google Scholar 

  15. S. Muthukrishnan and K. Palem. Non-standard stringology: Algorithms and complexity. In Proc. 26th Annual Symposium on the Theory of Computing, pages 770–779, 1994.

    Google Scholar 

  16. M. Swain and D. Ballard. Color indexing. International Journal of Computer. Vision, 7(1):11–32, 1991.

    Article  Google Scholar 

  17. J. Yadgari, Amihood Amir, and Ron Unger Genetic algorithms for protein threading. In J. Glasgow, T. Littlejohn, F. Major, R. Lathrop, D. Sankoff, and C. Sensen, editors, Proc. 6th Int’l Conference on Intellingent Systems for Molecular Biology. (ISMB 98), pages 193–202. AAAI, AAAI Press, 1998.

    Google Scholar 

  18. A.C.C. Yao. Some complexity questions related to distributed computing. In Proc. 11th Annual Symposium on the Theory of Computing (STOC), pages 209–213, 1979.

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2003 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Amir, A., Aumann, Y., Cole, R., Lewenstein, M., Porat, E. (2003). Function Matching: Algorithms, Applications, and a Lower Bound. In: Baeten, J.C.M., Lenstra, J.K., Parrow, J., Woeginger, G.J. (eds) Automata, Languages and Programming. ICALP 2003. Lecture Notes in Computer Science, vol 2719. Springer, Berlin, Heidelberg. https://doi.org/10.1007/3-540-45061-0_72

Download citation

  • DOI: https://doi.org/10.1007/3-540-45061-0_72

  • Published:

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-540-40493-4

  • Online ISBN: 978-3-540-45061-0

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics