计算机科学 > 形式语言与自动机理论
[提交于 2022年6月10日]
标题:A Report on Achieving Complete Regular-Expression Matching using Mealy Machines
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:While regexp matching is a powerful mechanism for finding patterns in data streams, regexp engines in general only find matches that do not overlap. Moreover, different forms of nondeterministic exploration, where symbols read are processed more than once, are often used, which can be costly in real-time matching. We present an algorithm that constructs from any regexp a Mealy machine that finds all matches and while reading each input symbol only once. The machine computed can also detect and distinguish different patterns or sub-patterns inside patterns. Additionally, we show how to compute a minimal Mealy machine via a variation of DFA minimization, by formalizing Mealy machines in terms of regular languages.
提交历史
来自:Ricardo Almeida[v1] 2022年6月10日 星期五 08:36:38 UTC