 |
 |
Efficient randomized pattern-matching algorithms
|  |
 |
 |
 |
by R. M. Karp and M. O. Rabin |
 |
|
|  |
 |  |  |
|
|
|
|
IBM Journal of Research and Development, Volume 31, Issue 2, pp. 249-260 (1987).
|
|
|
In this seminal paper, Karp and Rabin invented a randomized string-matching algorithm in which short patterns, known as fingerprints, are used instead of the given pattern in order to speed up the matching process. Although the algorithm runtime is quadratic in the worst case, the average runtime is close to linear. This property, together with the fact that the algorithm can be used to search at the same time for any of a large number of patterns, makes it very effective for multiple pattern matching, for example, in the detection of plagiarism. The algorithm can be extended to solve related problems, such as two-dimensional string matching.
|
|
|
|