Computing Atlas

How Computing Was Built
Sign In
Text size
100%
Theme
Algorithm

Boyer-Moore-Horspool Algorithm

String Algorithm

The Boyer-Moore-Horspool algorithm, or Horspool's algorithm, finds substrings within strings and was published by Nigel Horspool in 1980 as a simplification of the Boyer-Moore string-search algorithm. It trades space for time to reach an average-case complexity of O(n) on random text, though its worst case is O(nm), where m is the length of the pattern and n the length of the string being searched.

Facts
Time Complexity
Time Complexity (category)
Linear Time -- O(n) 1
Connections

In Field

Source Boyer-Moore-Horspool algorithm (Wikipedia)

Invented By

The Boyer-Moore-Horspool algorithm is a simplification of the Boyer-Moore string search algorithm, which J Strother Moore co-published with Robert S. Boyer in 1977.

The Boyer-Moore-Horspool algorithm is a simplification of the Boyer-Moore string search algorithm, which Robert S. Boyer co-published with J Strother Moore in 1977.

Sources
1. Boyer-Moore-Horspool algorithm (Wikipedia)
Lead section
Quote, Lead section
In computer science, the Boyer-Moore-Horspool algorithm or Horspool's algorithm is an algorithm for finding substrings in strings.
View the Source
Boyer-Moore-Horspool algorithm (Wikipedia)
  • In Field: Algorithms and Complexity Theory, Lead sentence
    Boyer-Moore-Horspool algorithm or Horspool's algorithm is an algorithm for finding substrings in strings.
  • In Group: String Searching Algorithms, Lead section
    algorithm for finding substrings in strings
View the Source
Comments (0)
No comments yet. Be the first to share a thought.
Reader Challenges (0)
No disputes yet. Spotted an error or a better source? Open the first one.