计算机科学 > 形式语言与自动机理论
[提交于 2026年8月4日]
标题:Translation of Regular Expression with Lookahead into Finite State Automaton
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:Most of the conventional implementations of regular expressions are based on backtracking. Such implementations are slow in the worst case, and thus, we would like to develop a better matching algorithm. However, it is nontrivial to provide an efficient matching algorithm that can deal with practical extensions including submatch addressing. This paper studies regular expression with lookaheads and negative lookaheads, abbreviated to REwLA. First, we propose a transformation from a REwLA of size $m$ to a deterministic finite automaton of $\mr{O}(2^{2^m})$ states. Next, we consider weighted regular expressions, which enable us to calculate submatch addressing. We propose a transformation from a weighted REwLA of size $m$ to a weighted nondeterministic finite automaton of $\mr{O}(2^{2^m})$ states.
提交历史
来自:Akimasa Morihata[v1] 2026年8月4日 星期二 06:00:40 UTC