Skip to main content
QUICK REVIEW

[Paper Review] Exact Online String Matching Bibliography

Simone Faro|arXiv (Cornell University)|May 17, 2016
Algorithms and Data CompressionComputer Science73 references4 citations
TL;DR

This paper presents a comprehensive, chronologically ordered bibliography of over 120 online exact string matching algorithms proposed since 1970, categorized into character comparison, packed string matching, and automata-based methods (including deterministic and bit-parallel variants). It serves as a foundational reference for researchers, with all algorithms implemented in the Smart tool, and highlights key advances in linear-time and sub-linear average-case performance with optimized preprocessing and shift heuristics.

ABSTRACT

In this short note we present a comprehensive bibliography for the online exact string matching problem. The problem consists in finding all occurrences of a given pattern in a text. It is an extensively studied problem in computer science, mainly due to its direct applications to such diverse areas as text, image and signal processing, speech analysis and recognition, data compression, information retrieval, computational biology and chemistry. Since 1970 more than 120 string matching algorithms have been proposed. In this note we present a comprehensive list of (almost) all string matching algorithms. The list is updated to May 2016.

Motivation & Objective

  • To compile and organize a complete, up-to-date bibliography of online exact string matching algorithms published since 1970.
  • To classify algorithms into four main categories: character comparison, packed string matching, deterministic automata, and bit-parallel non-deterministic automata simulation.
  • To provide a reference resource for researchers and practitioners in string matching, emphasizing algorithmic design, performance, and implementation.
  • To support the development and evaluation of new string matching algorithms by offering a unified, accessible catalog with standardized acronyms and references.
  • To integrate all listed algorithms into the Smart tool for practical experimentation and benchmarking.

Proposed method

  • Categorizes algorithms based on core computational model: character-by-character comparison, packed word-level comparison, deterministic automata, and bit-parallel simulation of non-deterministic automata.
  • Uses chronological ordering to trace the evolution of string matching techniques from brute-force to advanced bit-parallel and packed-word methods.
  • Applies a standardized entry format for each algorithm: name, acronym, reference, and brief description of key features and innovations.
  • Incorporates performance insights such as time complexity (e.g., O(n) linear time, O(nm) worst-case), space usage, and average-case behavior.
  • Leverages the Smart tool to implement and validate all algorithms, enabling reproducibility and performance comparison.
  • Introduces enhancements like q-grams, super-alphabets, multiple sliding windows, and lookahead techniques to improve shift heuristics and reduce comparisons.

Experimental results

Research questions

  • RQ1What are the major algorithmic families and evolutionary trends in online exact string matching since 1970?
  • RQ2How do different approaches—character comparison, packed word matching, and automata-based methods—compare in terms of time complexity and practical efficiency?
  • RQ3What are the key optimizations that enable sub-linear average-case performance while maintaining linear worst-case bounds?
  • RQ4How do modern techniques such as q-grams, multiple windows, and bit-parallelism improve shift heuristics and reduce character comparisons?
  • RQ5What is the state of the art in online string matching algorithms, and how can they be systematically cataloged and implemented for research and application?

Key findings

  • More than 120 online string matching algorithms have been proposed since 1970, with the majority falling into four main categories: character comparison, packed string matching, deterministic automata, and bit-parallel automata simulation.
  • The Morris-Pratt algorithm (1970) was the first to achieve O(n) time complexity for online string matching, establishing a foundation for linear-time algorithms.
  • The Boyer-Moore and Horspool algorithms introduced efficient right-to-left scanning and shift heuristics, significantly improving average-case performance despite O(nm) worst-case bounds.
  • Bit-parallel algorithms such as BNDM and its variants (e.g., SBNDM, BXS, BQL) achieve high performance by simulating non-deterministic automata using bit operations, with some achieving O(n/α + occ) time for packed matching.
  • Packed string matching techniques using SSE instructions and super-alphabets (e.g., Packed Belazzougui, SSECP, EPSM) enable bulk comparison of multiple characters per word, improving throughput on modern processors.
  • Advanced variants like FSBNDMqf, SBNDMw, and TSAq use lookahead, multiple windows, and q-gram super-alphabets to further optimize shift decisions and reduce comparisons, especially for long patterns.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.