English

$k$-Universality of Regular Languages

Formal Languages and Automata Theory 2023-11-20 v1 Data Structures and Algorithms

Abstract

A subsequence of a word ww is a word uu such that u=w[i1]w[i2]w[ik]u = w[i_1] w[i_2] \dots w[i_{k}], for some set of indices 1i1<i2<<ikw1 \leq i_1 < i_2 < \dots < i_k \leq \lvert w\rvert. A word ww is kk-subsequence universal over an alphabet Σ\Sigma if every word in Σk\Sigma^k appears in ww as a subsequence. In this paper, we study the intersection between the set of kk-subsequence universal words over some alphabet Σ\Sigma and regular languages over Σ\Sigma. We call a regular language LL \emph{kk-\exists-subsequence universal} if there exists a kk-subsequence universal word in LL, and \emph{kk-\forall-subsequence universal} if every word of LL is kk-subsequence universal. We give algorithms solving the problems of deciding if a given regular language, represented by a finite automaton recognising it, is \emph{kk-\exists-subsequence universal} and, respectively, if it is \emph{kk-\forall-subsequence universal}, for a given kk. The algorithms are FPT w.r.t.~the size of the input alphabet, and their run-time does not depend on kk; they run in polynomial time in the number nn of states of the input automaton when the size of the input alphabet is O(logn)O(\log n). Moreover, we show that the problem of deciding if a given regular language is \emph{kk-\exists-subsequence universal} is NP-complete, when the language is over a large alphabet. Further, we provide algorithms for counting the number of kk-subsequence universal words (paths) accepted by a given deterministic (respectively, nondeterministic) finite automaton, and ranking an input word (path) within the set of kk-subsequence universal words accepted by a given finite automaton.

Keywords

Cite

@article{arxiv.2311.10658,
  title  = {$k$-Universality of Regular Languages},
  author = {Duncan Adamson and Pamela Fleischmann and Annika Huch and Tore Koß and Florin Manea and Dirk Nowotka},
  journal= {arXiv preprint arXiv:2311.10658},
  year   = {2023}
}
R2 v1 2026-06-28T13:24:26.254Z