计算机科学 > 形式语言与自动机理论
[提交于 2023年1月30日]
标题:Fast Matching of Regular Patterns with Synchronizing Counting (Technical Report)
查看中文 PDF 查看原文 PDF EasyResearch 阅读摘要:Fast matching of regular expressions with bounded repetition, aka counting, such as (ab){50,100}, i.e., matching linear in the length of the text and independent of the repetition bounds, has been an open problem for at least two decades. We show that, for a wide class of regular expressions with counting, which we call synchronizing, fast matching is possible. We empirically show that the class covers nearly all counting used in usual applications of regex matching. This complexity result is based on an improvement and analysis of a recent matching algorithm that compiles regexes to deterministic counting-set automata (automata with registers that hold sets of numbers).
提交历史
来自:Juraj Síč[v1] 2023年1月30日 星期一 13:01:00 UTC