On the Worst-Case Behavior of String-Searching Algorithms. Rivest, R. SIAM Journal on Computing, 6(4):669–674, December, 1977.
On the Worst-Case Behavior of String-Searching Algorithms [link]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