Knuth–Morris–Pratt algorithm
GPTKB entity
Statements (26)
Predicate | Object |
---|---|
gptkbp:instanceOf |
string searching algorithm
|
gptkbp:alsoKnownAs |
gptkb:KMP_algorithm
|
gptkbp:category |
gptkb:algorithm
pattern matching algorithm |
gptkbp:complexity |
O(n + m)
|
gptkbp:describedBy |
"Fast Pattern Matching in Strings" (1977)
|
gptkbp:field |
computer science
string matching |
gptkbp:firstPublished |
1977
|
https://www.w3.org/2000/01/rdf-schema#label |
Knuth–Morris–Pratt algorithm
|
gptkbp:influenced |
gptkb:Boyer–Moore_algorithm
gptkb:Aho–Corasick_algorithm |
gptkbp:input |
gptkb:text
pattern |
gptkbp:language |
any programming language
|
gptkbp:namedAfter |
gptkb:Donald_Knuth
gptkb:James_H._Morris gptkb:Vaughan_Pratt |
gptkbp:output |
all occurrences of pattern in text
|
gptkbp:publishedIn |
gptkb:SIAM_Journal_on_Computing
|
gptkbp:solvedBy |
substring search problem
|
gptkbp:spaceComplexity |
O(m)
|
gptkbp:uses |
prefix function
|
gptkbp:worstCaseTimeComplexity |
O(n + m)
|
gptkbp:bfsParent |
gptkb:Karp–Rabin_algorithm
|
gptkbp:bfsLayer |
5
|