Constant-Time Dynamic Enumeration of Word Infixes in a Regular Language
Abstract
For a fixed regular language , the enumeration of -infixes is the following task: we are given an input word and we must enumerate the infixes of that belong to , i.e., the pairs such that . We are interested in dynamic enumeration of -infixes, where we must additionally support letter substitution updates on (e.g., "replace the -th letter of by a letter "). Each update changes the set of infixes to enumerate, and resets the enumeration state. We study for which regular languages we can perform dynamic enumeration of -infixes in constant delay (i.e., the next infix is always produced in constant time) and constant additional memory throughout the enumeration, while supporting each update in constant time. We show that, for languages with a neutral letter, if the language belongs to the class ZG and is extensible (i.e., if and is a factor of then ), then dynamic enumeration of -infixes can be achieved with a simple algorithm that ensures constant-time updates and constant delay, but not constant additional memory. Our main contribution is then to show an algorithm that additionally uses only constant additional memory, and applies to a more general class of semi-extensible ZG languages for which we give several equivalent characterizations. We further discuss whether our results can be generalized to larger language classes and show some (conditional) lower bounds.
Cite
@article{arxiv.2602.14748,
title = {Constant-Time Dynamic Enumeration of Word Infixes in a Regular Language},
author = {Antoine Amarilli and Sven Dziadek and Luc Segoufin},
journal= {arXiv preprint arXiv:2602.14748},
year = {2026}
}
Comments
34 pages, 1 figure. Submitted