A new approach to text searching
Communications of the ACM
Formal languages and their relation to automata
Formal languages and their relation to automata
A faster algorithm for matching a set of patterns with variable length don't cares
Information Processing Letters
Hi-index | 0.00 |
Regular expressions play an important role in various fields in computer science. However, handling many regular expressions in parallel requires huge computation resources. Therefore, it is necessary to find and eliminate overlapping regular expressions. In this paper, we consider a special type of regular expressions: expressions comprised of characters and variable-length gaps between such characters. Specifically, we propose a bit-parallel solution to determine whether the languages of two expressions X and Y with variable-length gaps have a common string. The time complexity of our algorithm is O (min (LX 2|Σ|, LX LY)/w) where Σ is the alphabet from which X and Y are drawn, LX and LY are the lengths of the longest strings that respectively match X and Y, and w is the size of the computer word.