Abstract
We present algorithms for efficient searching of regular expressions on preprocessed text. We obtain logarithmic (in the size of the text) average time for a wide subclass of regular expressions, and sublinear average time for any regular expression, hence providing the first known algorithm to achieve this time complexity.
Preview
Unable to display preview. Download preview PDF.
References
A. Aho and M. Corasick. Efficient string matching: An aid to bibliographic search. C.ACM, 18(6):333–340, June 1975.
A. Aho. Pattern Matching in Strings, pages 325–347. Academic Press, London, 1980.
R. Boyer and S. Moore. A fast string searching algorithm. C.ACM, 20:762–772, 1977.
B. Commentz-Walter. A string matching algorithm fast on the average. In ICALP, volume 6 of Lecture Notes in Computer Science xxx, pages 118–132. Springer-Verlag, 1979.
L. Devroye. A note on the average depth of tries. Computing, 28:367–371, 1982.
M. Fischer and M. Paterson. String Matching and Other Products, volume 7, pages 113–125. American Mathematical Society, Providence, RI, 1974.
P. Flajolet and C. Puech. Tree structures for partial match retrieval. J.ACM, 33:371–407, 1986.
Z. Galil. Open Problems in Stringology, volume F12 of NATO ASI Series, pages 1–8. Springer-Verlag, 1985.
F.R. Gantmacher. The Theory of Matrices (2 Vols). Chelsea Publishing Company, New York, 1959.
G.H. Gonnet. Unstructured data bases or very efficient text searching. In ACM PODS, volume 2, pages 117–124, Atlanta, GA, Mar 1983.
J. Hopcroft and J. Ullman. Introduction to Automata Theory. Addison-Wesley, Reading, Mass., 1979.
D. Knuth, J. Morris, and V. Pratt. Fast pattern matching in strings. SIAM J on Computing, 6:323–350, 1977.
D.E. Knuth. The Art of Computer Programming: Sorting and Searching, volume 3. Addison-Wesley, Reading, Mass., 1973.
D. Morrison. Patricia-practical algorithm to retrieve information coded in alphanumeric. JACM, 15:514–534, 1968.
A.M. Ostrowski and H. Schneider. Bounds for the maximal characteristic root of a non-negative irreducible matrix. Duke Math J., 27:547–553, 1960.
R. Pinter. Efficient String Matching with Don't-Care Patterns, volume F12 of NATO ASI Series, pages 11–29. Springer-Verlag, 1985.
R. Rivest. On the worst-case behavior of string-searching algorithms. SIAM J on Computing, 6:669–674, 1977.
K. Thompson. Regular expression search algorithm. C.ACM, 11:419–422, 1968.
Author information
Authors and Affiliations
Editor information
Rights and permissions
Copyright information
© 1989 Springer-Verlag Berlin Heidelberg
About this paper
Cite this paper
Baeza-Yates, R.A., Gonnet, G.H. (1989). Efficient text searching of regular expressions. In: Ausiello, G., Dezani-Ciancaglini, M., Della Rocca, S.R. (eds) Automata, Languages and Programming. ICALP 1989. Lecture Notes in Computer Science, vol 372. Springer, Berlin, Heidelberg. https://doi.org/10.1007/BFb0035751
Download citation
DOI: https://doi.org/10.1007/BFb0035751
Published:
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-540-51371-1
Online ISBN: 978-3-540-46201-9
eBook Packages: Springer Book Archive