RUS  ENG
Full version
JOURNALS // Prikladnaya Diskretnaya Matematika // Archive

Prikl. Diskr. Mat., 2014 Number 2(24), Pages 119–125 (Mi pdm457)

This article is cited in 2 papers

Computational Methods in Discrete Mathematics

Simultaneous search for several binary patterns in a stream with finite-state automaton

I. V. Pankratov

Tomsk, Russia

Abstract: The task under consideration in this paper is to search for binary subsequencies in a data stream. The article offers the finite automaton able to search for a set of binary vectors simultaneously performing only two operations per every bit or even byte of the data stream. Increasing the number of searched vectors causes a slower increase in memory usage compared to overall vector's length growth, and computational complexity does not increase at all. The automaton is described by the transition and output tables. Estimates of the size of the automaton's tables are given. Known approaches to the problem are discussed. There is a possibility to generalize the automaton building algorithm to search for partially defined Boolean patterns, but the amount of required memory may be greater than the estimate found in the paper.

Keywords: bit subsequences search, synchronization, string matching, Knuth–Morris–Pratt algorithm, Aho–Corasick string matching.

UDC: 519.7



© Steklov Math. Inst. of RAS, 2026