Content deleted Content added
→Other classification: both classification approaches can be looked up at a referenced document |
m WP:CHECKWIKI error fixes using AWB (12068) |
||
Line 1:
In [[computer science]], '''string searching algorithms''', sometimes called '''string matching algorithms''', are an important class of [[
Let Σ be an [[Alphabet (computer science)|alphabet]] ([[finite set]]). Formally, both the pattern and searched text are vectors of elements of Σ. The Σ may be a usual human alphabet (for example, the letters A through Z in the Latin alphabet). Other applications may use ''binary alphabet'' (Σ = {0,1}) or ''DNA alphabet'' (Σ = {A,C,G,T}) in [[bioinformatics]].
Line 84:
|}
Another one classifies the algorithms by their matching strategy
* Match the prefix first (Knuth-Morris-Pratt, Shift-And, Aho-Corasick)
* Match the suffix first (Boyer-Moore and variants, Commentz-Walter)
|