Linear-time minimization of Aho–Corasick automaton

Abstract Aho-Corasick automaton is widely used to find occurrences of words from a given set in a text. In our paper we introduce an equivalence relation <m:math xmlns:m="http://www.w3.org/1998/Math/MathML"> <m:mrow> <m:mover> <m:mrow> <m:mo>∼</m:mo> </m:mrow> <m:mrow> <m:mi>R</m:mi> </m:mrow> </m:mover> </m:mrow> </m:math> $\stackrel{R}{\sim}$ on states of Aho–Corasick automaton and prove indistinguishability of <m:math xmlns:m="http://www.w3.org/1998/Math/MathML"> <m:mrow> <m:mover> <m:mrow> <m:mo>∼</m:mo> </m:mrow> <m:mrow> <m:mi>R</m:mi> </m:mrow> </m:mover> </m:mrow> </m:math> $\stackrel{R}{\sim}$ -equivalent states. We also propose an algorithm for construction of a <m:math xmlns:m="http://www.w3.org/1998/Math/MathML"> <m:mrow> <m:mover> <m:mrow> <m:mo>∼</m:mo> </m:mrow> <m:mrow> <m:mi>R</m:mi> </m:mrow> </m:mover> </m:mrow> </m:math> $\stackrel{R}{\sim}$ -minimal automaton whose states are <m:math xmlns:m="http://www.w3.org/1998/Math/MathML"> <m:mrow> <m:mover> <m:mrow> <m:mo>∼</m:mo> </m:mrow> <m:mrow> <m:mi>R</m:mi> </m:mrow> </m:mover> </m:mrow> </m:math> $\stackrel{R}{\sim}$ -equivalence classes. Time and space complexity of this algorithm are linear in the number of states of the original Aho–Corasick automaton. Finally we consider cases in which the relations of <m:math xmlns:m="http://www.w3.org/1998/Math/MathML"> <m:mrow> <m:mover> <m:mrow> <m:mo>∼</m:mo> </m:mrow> <m:mrow> <m:mi>R</m:mi> </m:mrow> </m:mover> </m:mrow> </m:math> $\stackrel{R}{\sim}$ -equivalence and indistinguishability are identical, and thus the proposed automaton is minimal.

Authors

Institutions

Publication Details

Journal
Discrete Mathematics and Applications
Published
2025-10-01
DOI
https://doi.org/10.1515/dma-2025-0024
Primary Topic
semigroups and automata theory
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Linear-time minimization of Aho–Corasick automaton

Evgeniya Igorevna Furletova
Discrete Mathematics and Applications
semigroups and automata theory
article

Linear-time minimization of Aho–Corasick automaton

Evgeniya Igorevna Furletova
article en

Abstract

Abstract Aho-Corasick automaton is widely used to find occurrences of words from a given set in a text. In our paper we introduce an equivalence relation <m:math xmlns:m="http://www.w3.org/1998/Math/MathML"> <m:mrow> <m:mover> <m:mrow> <m:mo>∼</m:mo> </m:mrow> <m:mrow> <m:mi>R</m:mi> </m:mrow> </m:mover> </m:mrow> </m:math> $\stackrel{R}{\sim}$ on states of Aho–Corasick automaton and prove indistinguishability of <m:math xmlns:m="http://www.w3.org/1998/Math/MathML"> <m:mrow> <m:mover> <m:mrow> <m:mo>∼</m:mo> </m:mrow> <m:mrow> <m:mi>R</m:mi> </m:mrow> </m:mover> </m:mrow> </m:math> $\stackrel{R}{\sim}$ -equivalent states. We also propose an algorithm for construction of a <m:math xmlns:m="http://www.w3.org/1998/Math/MathML"> <m:mrow> <m:mover> <m:mrow> <m:mo>∼</m:mo> </m:mrow> <m:mrow> <m:mi>R</m:mi> </m:mrow> </m:mover> </m:mrow> </m:math> $\stackrel{R}{\sim}$ -minimal automaton whose states are <m:math xmlns:m="http://www.w3.org/1998/Math/MathML"> <m:mrow> <m:mover> <m:mrow> <m:mo>∼</m:mo> </m:mrow> <m:mrow> <m:mi>R</m:mi> </m:mrow> </m:mover> </m:mrow> </m:math> $\stackrel{R}{\sim}$ -equivalence classes. Time and space complexity of this algorithm are linear in the number of states of the original Aho–Corasick automaton. Finally we consider cases in which the relations of <m:math xmlns:m="http://www.w3.org/1998/Math/MathML"> <m:mrow> <m:mover> <m:mrow> <m:mo>∼</m:mo> </m:mrow> <m:mrow> <m:mi>R</m:mi> </m:mrow> </m:mover> </m:mrow> </m:math> $\stackrel{R}{\sim}$ -equivalence and indistinguishability are identical, and thus the proposed automaton is minimal.

Discrete Mathematics and ApplicationsVol. 35(5)
Institute of Mathematical Problems of Biology (RU)
Openalex Percentile: Top 24%
semigroups and automata theory
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Linear-time minimization of Aho–Corasick automaton — Evgeniya Igorevna Furletova · Discrete Mathematics and Applications (2025) | TGRS Research Map | TGRS