Parallel String Matching with Variable Length Don′t Cares
String matching is the problem of finding all the occurrences of a pattern P in a text T, where P and T are strings over a finite alphabet Σ. A variable length don′t care is a special character, not belonging to Σ, which can match any string in Σ*. The string-matching problem with variable length do...
Gespeichert in:
Veröffentlicht in: | Journal of parallel and distributed computing 1994, Vol.22 (2), p.229-234 |
---|---|
Hauptverfasser: | , |
Format: | Artikel |
Sprache: | eng |
Online-Zugang: | Volltext |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | String matching is the problem of finding all the occurrences of a pattern
P in a text
T, where
P and
T are strings over a finite alphabet Σ. A variable length don′t care is a special character, not belonging to Σ, which can match any string in Σ*. The string-matching problem with variable length don′t cares is an extension of the classical string-matching problem in which the pattern
P may contain an arbitrary number of don′t cares. An efficient parallel algorithm is given for solving the string-matching problem with variable length don′t cares. The EREW PRAM model of parallel computer with scan operations is used to obtain an
O(log
n) running time using
O(
mn/log
n) processors, where
m and
n are, respectively, the lengths of
P and
T. The proposed parallel algorithm has an Ω(1/log
n) processor utilization, since the fastest serial algorithm known so far has an
O(
mn/log
n) running time. |
---|---|
ISSN: | 0743-7315 1096-0848 |
DOI: | 10.1006/jpdc.1994.1083 |