Skip to content
Free planNo credit card requiredStart writing

article · 2008

Editors A Fast String Searching Algorithm

G. Manacher, S. L. Graham, Robert S. Boyer, J Strother Moore

Cited by 0Abstract and details only

Abstract

An algorithm is presented that searches for the location, "i, " of the first occurrence of a character string, "'pat,' " in another string, "string. " During the search operation, the characters of pat are matched starting with the last character of pat. The information gained by starting the match at the end of the pattern often allows the algorithm to proceed in large jumps through the text being searched. Thus the algorithm has the unusual property that, in most cases, not all of the first i characters of string are inspected. The number of characters actually inspected (on the aver-age) decreases as a function of the length of pat. For a random English pattern of length 5, the algorithm will typically inspect i/4 characters of string before finding a match at i. Furthermore, the algorithm has been implemented so that (on the average) fewer than i + patlen machine instructions are executed. These con-clusions are supported with empirical evidence and a theoretical analysis of the average behavior of the algorithm. The worst case behavior of the algorithm is linear in i + patlen, assuming the availability of array space for tables linear in patlen plus the size of the alphabet. Key Words and Phrases: bibliographic search, com-putational complexity, information retrieval, linear

Cite this paper

APA 7

Manacher, G., Graham, S. L., Boyer, R. S., & Moore, J. S. (2008). Editors A Fast String Searching Algorithm.

MLA 9

Manacher, G., et al. “Editors A Fast String Searching Algorithm.” 2008.

Chicago

Manacher, G., S. L. Graham, Robert S. Boyer, and J Strother Moore. 2008. “Editors A Fast String Searching Algorithm.”

Harvard

Manacher, G. et al. (2008) ‘Editors A Fast String Searching Algorithm’.

BibTeX
@article{manacher2008editors,
  title = {{Editors A Fast String Searching Algorithm}},
  author = {Manacher, G. and Graham, S. L. and Boyer, Robert S. and Moore, J Strother},
  year = {2008}
}

Made from the index record. Check names, capitalisation and page numbers against the paper. Need another style? AI for Research has over 10,000.