On the Worst-Case Behavior of String-Searching Algorithms. Rivest, R. SIAM Journal on Computing, 6(4):669–674, December, 1977.
Paper doi abstract bibtex Any algorithm for finding a pattern of length k in a string of length n must examine at least \$n - k + 1\$ of the characters of the string in the worst case. By considering the pattern \$00 {\textbackslash}cdots 0\$, we prove that this is the best possible result. Therefore there do not exist pattern matching algorithms whose worst-case behavior is “sublinear” in n (that is, linear with constant less than one), in contrast with the situation for average behavior (the Boyer-Moore algorithm is known to be sublinear on the average).
@article{rivest_worst-case_1977,
title = {On the {Worst}-{Case} {Behavior} of {String}-{Searching} {Algorithms}},
volume = {6},
issn = {0097-5397},
url = {http://epubs.siam.org/doi/abs/10.1137/0206048},
doi = {10.1137/0206048},
abstract = {Any algorithm for finding a pattern of length k in a string of length n must examine at least \$n - k + 1\$ of the characters of the string in the worst case. By considering the pattern \$00 {\textbackslash}cdots 0\$, we prove that this is the best possible result. Therefore there do not exist pattern matching algorithms whose worst-case behavior is “sublinear” in n (that is, linear with constant less than one), in contrast with the situation for average behavior (the Boyer-Moore algorithm is known to be sublinear on the average).},
number = {4},
urldate = {2017-12-18TZ},
journal = {SIAM Journal on Computing},
author = {Rivest, R.},
month = dec,
year = {1977},
pages = {669--674}
}
Downloads: 0
{"_id":"LZR8aDEPeYsQmzJQD","bibbaseid":"rivest-ontheworstcasebehaviorofstringsearchingalgorithms-1977","downloads":0,"creationDate":"2018-08-26T16:08:16.490Z","title":"On the Worst-Case Behavior of String-Searching Algorithms","author_short":["Rivest, R."],"year":1977,"bibtype":"article","biburl":"https://api.zotero.org/users/4543350/collections/8WTCDAGM/items?key=fF5y8imNS4C1ujxzFy92dlmr&format=bibtex&limit=100","bibdata":{"bibtype":"article","type":"article","title":"On the Worst-Case Behavior of String-Searching Algorithms","volume":"6","issn":"0097-5397","url":"http://epubs.siam.org/doi/abs/10.1137/0206048","doi":"10.1137/0206048","abstract":"Any algorithm for finding a pattern of length k in a string of length n must examine at least \\$n - k + 1\\$ of the characters of the string in the worst case. By considering the pattern \\$00 {\\textbackslash}cdots 0\\$, we prove that this is the best possible result. Therefore there do not exist pattern matching algorithms whose worst-case behavior is “sublinear” in n (that is, linear with constant less than one), in contrast with the situation for average behavior (the Boyer-Moore algorithm is known to be sublinear on the average).","number":"4","urldate":"2017-12-18TZ","journal":"SIAM Journal on Computing","author":[{"propositions":[],"lastnames":["Rivest"],"firstnames":["R."],"suffixes":[]}],"month":"December","year":"1977","pages":"669–674","bibtex":"@article{rivest_worst-case_1977,\n\ttitle = {On the {Worst}-{Case} {Behavior} of {String}-{Searching} {Algorithms}},\n\tvolume = {6},\n\tissn = {0097-5397},\n\turl = {http://epubs.siam.org/doi/abs/10.1137/0206048},\n\tdoi = {10.1137/0206048},\n\tabstract = {Any algorithm for finding a pattern of length k in a string of length n must examine at least \\$n - k + 1\\$ of the characters of the string in the worst case. By considering the pattern \\$00 {\\textbackslash}cdots 0\\$, we prove that this is the best possible result. Therefore there do not exist pattern matching algorithms whose worst-case behavior is “sublinear” in n (that is, linear with constant less than one), in contrast with the situation for average behavior (the Boyer-Moore algorithm is known to be sublinear on the average).},\n\tnumber = {4},\n\turldate = {2017-12-18TZ},\n\tjournal = {SIAM Journal on Computing},\n\tauthor = {Rivest, R.},\n\tmonth = dec,\n\tyear = {1977},\n\tpages = {669--674}\n}\n\n","author_short":["Rivest, R."],"key":"rivest_worst-case_1977","id":"rivest_worst-case_1977","bibbaseid":"rivest-ontheworstcasebehaviorofstringsearchingalgorithms-1977","role":"author","urls":{"Paper":"http://epubs.siam.org/doi/abs/10.1137/0206048"},"downloads":0},"search_terms":["worst","case","behavior","string","searching","algorithms","rivest"],"keywords":[],"authorIDs":[],"dataSources":["WGuzu8d9YYFsR6WY7"]}