String Pattern Matching Algorithms
An is a finite set. A is an element . A
is a finite sequence of symbols,
i.e, elements of an alphabet. The set of all strings over is denoted by .
We say a string is a over a fixed alphabet if consists of
symbols from Let be a string and denote . We say that a subsequence
of is a of . A of in is a pair
such that is a substring of .
Let be a set of patterns over a fixed alphabet and let be a fixed string. The Multiple
Pattern String Matching (MPSM) is the problem of finding all occurrences of all patterns of in .
The Single Pattern String Matching (SPSM) is a special case of (MPSM) by adding the constraint .
The Multiple Pattern String Matching is one of the basic string algorithms problems and
several algorithms have been proposed to solve it. There are practical solutions to real-world
problems that can be developed using these algorithms, including, but not limited to, intrusion
detection systems, evolutionary biology, computational linguistics, and data retrieval.