login

A very fast substring search algorithm

Communications of the ACMPublished 1 August 1990Open access
Daniel M. Sunday
Citations390
SJR quartileQ1
SJR score1.15
SNIP3.34
View PDF

TL;DR

A substring search algorithm that is faster than the Boyer-Moore algorithm and does not depend on scanning the pattern string in any particular order is described.

Abstract

This article describes a substring search algorithm that is faster than the Boyer-Moore algorithm. This algorithm does not depend on scanning the pattern string in any particular order. Three variations of the algorithm are given that use three different pattern scan orders. These include: (1) a “Quick Search” algorithm; (2) a “Maximal Shift” and (3) an “Optimal Mismatch” algorithm.

Keywords

Computer ScienceBiochemistry, Genetics and Molecular Biology