[Paper Review] $k$-Universality of Regular Languages
This paper introduces and studies two notions of k-universality in regular languages: k-∃-subsequence universal (existence) and k-∀-subsequence universal (universality), providing FPT algorithms parameterized by alphabet size to decide both properties in polynomial time when the alphabet is small. The key contribution is an efficient, FPT-based framework for counting and ranking k-subsequence universal words/path in finite automata, with runtime independent of k and polynomial in the number of states for small alphabets.
A subsequence of a word w is a word u such that u = w[i₁] w[i₂] … w[i_k], for some set of indices 1 ≤ i₁ < i₂ < … < i_k ≤ |w|. A word w is k-subsequence universal over an alphabet Σ if every word in Σ^k appears in w as a subsequence. In this paper, we study the intersection between the set of k-subsequence universal words over some alphabet Σ and regular languages over Σ. We call a regular language L k-∃-subsequence universal if there exists a k-subsequence universal word in L, and k-∀-subsequence universal if every word of L is k-subsequence universal. We give algorithms solving the problems of deciding if a given regular language, represented by a finite automaton recognising it, is k-∃-subsequence universal and, respectively, if it is k-∀-subsequence universal, for a given k. The algorithms are FPT w.r.t. the size of the input alphabet, and their run-time does not depend on k; they run in polynomial time in the number n of states of the input automaton when the size of the input alphabet is O(log n). Moreover, we show that the problem of deciding if a given regular language is k-∃-subsequence universal is NP-complete, when the language is over a large alphabet. Further, we provide algorithms for counting the number of k-subsequence universal words (paths) accepted by a given deterministic (respectively, nondeterministic) finite automaton, and ranking an input word (path) within the set of k-subsequence universal words accepted by a given finite automaton.
Motivation & Objective
- To formalize and analyze two new notions of k-universality in regular languages: k-∃-subsequence universal (existence) and k-∀-subsequence universal (universality).
- To develop efficient decision algorithms for determining whether a regular language, represented by a finite automaton, is k-∃- or k-∀-subsequence universal.
- To provide a computational toolbox for counting and ranking k-subsequence universal words or paths accepted by deterministic or nondeterministic finite automata.
- To investigate the complexity of the k-∃-subsequence universality problem, showing it is NP-complete for large alphabets.
- To design algorithms with runtime independent of k, achieving polynomial time when the input alphabet size is O(log n).
Proposed method
- Define k-subsequence universal words as those containing every word of length k over Σ as a subsequence.
- Introduce two language-level notions: k-∃-subsequence universal (some word in L is k-universal) and k-∀-subsequence universal (all words in L are k-universal).
- Construct dynamic programming tables T(PR) and U(PR) to track reachability and subsequence coverage over prefixes of paths.
- Use state-based dynamic programming with parameters: current state, path length, number of distinct symbols seen, and symbol set, to encode subsequence universality.
- Leverage the FPT framework with respect to alphabet size σ, ensuring runtime dependence on σ and n (number of states), but not on k.
- Apply lexicographic ranking by counting all k-universal words smaller than a given word using prefix-based tables and summation over accepting states.
Experimental results
Research questions
- RQ1Can we decide in FPT time whether a regular language is k-∃-subsequence universal, given its finite automaton representation?
- RQ2What is the complexity of deciding whether a regular language is k-∀-subsequence universal, and can this be done efficiently?
- RQ3Is the k-∃-subsequence universality problem NP-complete when the alphabet is large?
- RQ4Can we efficiently count the number of k-subsequence universal words or paths accepted by a given finite automaton?
- RQ5How can we compute the lexicographic rank of a given k-universal word within the set of all k-universal words accepted by a finite automaton?
Key findings
- The problem of deciding k-∃-subsequence universality is NP-complete when the input alphabet is large, even for regular languages.
- Algorithms for deciding k-∃- and k-∀-subsequence universality run in FPT time with respect to the alphabet size σ, and polynomial time in n (number of states) when σ = O(log n).
- The number of k-subsequence universal words (or paths) accepted by a deterministic or nondeterministic finite automaton can be computed in O*(m²n²k²σ) time for m-length paths.
- The lexicographic rank of a k-universal word w of length m within the set of m-length k-universal words accepted by an automaton can be computed in O*(m²n²k²σ) time.
- For words of length at most m, the rank can be computed in O*(m²n²k²σ) time, and for all words in the language, the rank is computable in O*(n⁴k³σ) time.
- The framework supports both deterministic and nondeterministic finite automata, and the results hold for both counting words and paths.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.