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.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
References
K. Abrahamson. Generalized string matching. SIAM J. Comp., 16(6):1039–1051, 1987.
A. Amir, G. Benson, and M. Farach. An alphabet independent approach to two dimensional pattern matching. SIAM J. Comp., 23(2):313–323, 1994.
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.
A. Amir and M. Farach. Efficient 2-dimensional approximate matching of half-rectangular figures. Information and Computation, 118(1):1–11, April 1995.
A. Amir, M. Farach, and S. Muthukrishnan. Alphabet dependence in parameterized matching. Information Processing Letters, 49:111–115, 1994.
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.
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.
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.
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.
M. Crochemore and W. Rytter. Text Algorithms. Oxford University Press, 1994.
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.
W.C. Kreahling and C. Norris. Profile assisted register allocation. In Proc. ACM. Symp. on Applied Computing (SAC), pages 774–781, 2000.
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.
Jr. K. Merz and S.M. La Grand. The Protein Folding Problem and Tertiary. Structure Prediction. Birkhauser, Boston, 1994.
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.
M. Swain and D. Ballard. Color indexing. International Journal of Computer. Vision, 7(1):11–32, 1991.
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.
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.
Author information
Authors and Affiliations
Editor information
Editors and Affiliations
Rights 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