A fast string searching algorithm

Article Properties
  • Language
    English
  • Publication Date
    1977/10/01
  • Indian UGC (Journal)
  • Refrences
    5
  • Citations
    678
  • Robert S. Boyer Stanford Research Institute, Menlo Park, CA
  • J. Strother Moore Xerox Palo Alto Research Center, Palo Alto, CA
Abstract
Cite
Boyer, Robert S., and J. Strother Moore. “A Fast String Searching Algorithm”. Communications of the ACM, vol. 20, no. 10, 1977, pp. 762-7, https://doi.org/10.1145/359842.359859.
Boyer, R. S., & Moore, J. S. (1977). A fast string searching algorithm. Communications of the ACM, 20(10), 762-772. https://doi.org/10.1145/359842.359859
Boyer RS, Moore JS. A fast string searching algorithm. Communications of the ACM. 1977;20(10):762-7.
Journal Categories
Science
Mathematics
Instruments and machines
Electronic computers
Computer science
Science
Mathematics
Instruments and machines
Electronic computers
Computer science
Computer software
Technology
Electrical engineering
Electronics
Nuclear engineering
Electronics
Computer engineering
Computer hardware
Description

Needle in a haystack? This research presents a novel algorithm designed for rapid character string searching. The algorithm efficiently locates the first instance of a pattern string within a larger string by initiating matches from the pattern's final character. This approach enables the algorithm to make significant jumps through the text, often without inspecting all initial characters. The average number of inspected characters decreases with the length of the pattern. For a random English pattern of length 5, only a quarter of the characters in the string need inspection before finding a match. Implemented to execute fewer than i + patlen machine instructions on average, this algorithm offers substantial speed improvements. Supported by empirical evidence and theoretical analysis, the research provides a practical solution for enhancing text processing efficiency in computer science applications.

Published in Communications of the ACM, this paper is relevant to the journal's focus on computer science and computer software. By presenting a fast and efficient string searching algorithm, this research contributes to the ongoing development of core computing techniques.

Refrences
Citations
Citations Analysis
The first research to cite this article was titled An improved algorithm to check for polygon similarity and was published in 1978. The most recent citation comes from a 2024 study titled An improved algorithm to check for polygon similarity . This article reached its peak citation in 2013 , with 33 citations.It has been cited in 287 different journals, 11% of which are open access. Among related journals, the Theoretical Computer Science cited this research the most, with 42 citations. The chart below illustrates the annual citation trends for this article.
Citations used this article by year