Skip to content
Preprint

Translation of Regular Expression with Lookahead into Finite State Automaton

Aug 2026 · 2 citations · 27 references
Computer Science

TL;DR

W weighted regular expressions are considered, which enable us to calculate submatch addressing and a transformation from a weighted REwLA of size $m$ to a weighted nondeterministic finite automaton of $\mr{O}(2^{2^m})$ states is proposed.

Abstract

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.

View source

Similar papers

Preprint Sep 2026

Two-State Max-Plus Comparison Is Decidable

Daviaud, Guillon, and Merlet proved that comparison of max-plus automata is undecidable under a fixed state bound of 553 and explicitly left the range from 2 to 552 states open. We resolve the two-state endpoint. More strongly, given an arbitrary finite max-plus automaton $A$ and a max-plus automaton $B$ with at most t...

Keigo Oka · 0 citations

Arbitrary-arity Tree Automata for QCTL 1

A new class of automata running on infinite trees of arbitrary arity is introduced, and several algorithms to perform classical operations are developed for those automata and precisely characterise their complexities.

François Laroussinie, Nicolas Markey · 0 citations
Preprint Sep 2026

The triple rendezvous time of a synchronizing automaton can be floor(4n/3)

For every $n\ge9$, we construct a strongly connected synchronizing automaton with two input letters and $n$ states whose shortest word merging some three distinct states has length $\lfloor4n/3\rfloor$. One letter is a permutation; the other has an image of size $n-1$. We give complete transition maps and an explicit w...

En-Kai Zhang · 0 citations
Review Oct 2026

The compress-with-another threshold of Szyku{\l}a's Figure 3 family

We give a self-contained pair-automaton proof of the exact compress-with-another threshold of the corrected Figure 3 family from a recent survey of open problems in synchronizing automata. For every $p \geq 3$, the automaton has $n = 3p$ states and $\mu(q_0) = 4p = 4n/3$. The word $(ba)^p(ab)^p$ attains this value. Two...

Qi-Chao Wang · 0 citations
Preprint Aug 2026

Undecidability of Confluence for Binary Length-Reducing Cycle Rewriting

Confluence guarantees that diverging rewrite choices can always be rejoined. For finite terminating string- and term-rewriting systems, confluence is decidable by critical-pair analysis, and in polynomial time for length-reducing strings. For finite terminating (hyper)graph transformation systems, in contrast, confluen...

Graham Campbell · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.