Online matching of multiple regular patterns with gaps and character classes

5Citations
Citations of this article
2Readers
Mendeley users who have this article in their library.
Get full text

Abstract

Given a dictionary D of regular expressions and a text T, the online regular-pattern-matching problem is to single out, for each text position T[c], those expressions in D that have a match ending at T[c], while processing T only once. This problem is considered in the context of regular patterns over bounded-length gaps and keywords, where the gaps are specified by wildcards and character classes and the keywords are strings over the input alphabet. Our algorithm is based on constructing the Aho-Corasick pattern-matching automaton for the set of keywords, and representing as a bit vector the set of keywords that can precede a given keyword in a regular-pattern instance. For a dictionary D with r patterns and with k i keywords in pattern i, the preprocessing takes time, where w denotes the number of bits in a memory word. When only fixed-length wildcard gaps without character classes are allowed, the time spent by our matching algorithm for each text character T[c] is at most O((logr + k/w) (K c + 1)), where k = max {k 1,., k r } and K c is the number of keyword occurrences in D matched at text position T[c]. © 2013 Springer-Verlag Berlin Heidelberg.

Cite

CITATION STYLE

APA

Sippu, S., & Soisalon-Soininen, E. (2013). Online matching of multiple regular patterns with gaps and character classes. In Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics) (Vol. 7810 LNCS, pp. 523–534). Springer Verlag. https://doi.org/10.1007/978-3-642-37064-9_46

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free