{"title":"k-Universality of Regular Languages","authors":"Duncan Adamson , Pamela Fleischmann , Annika Huch , Tore Koß , Florin Manea , Dirk Nowotka","doi":"10.1016/j.ic.2025.105357","DOIUrl":null,"url":null,"abstract":"<div><div>A subsequence of a word <em>w</em> is a word <em>u</em> such that <span><math><mi>u</mi><mo>=</mo><mi>w</mi><mo>[</mo><msub><mrow><mi>i</mi></mrow><mrow><mn>1</mn></mrow></msub><mo>]</mo><mi>w</mi><mo>[</mo><msub><mrow><mi>i</mi></mrow><mrow><mn>2</mn></mrow></msub><mo>]</mo><mo>…</mo><mi>w</mi><mo>[</mo><msub><mrow><mi>i</mi></mrow><mrow><mi>k</mi></mrow></msub><mo>]</mo></math></span>, for some set of indices <span><math><mn>1</mn><mo>≤</mo><msub><mrow><mi>i</mi></mrow><mrow><mn>1</mn></mrow></msub><mo><</mo><msub><mrow><mi>i</mi></mrow><mrow><mn>2</mn></mrow></msub><mo><</mo><mo>…</mo><mo><</mo><msub><mrow><mi>i</mi></mrow><mrow><mi>k</mi></mrow></msub><mo>≤</mo><mo>|</mo><mi>w</mi><mo>|</mo></math></span>. A word <em>w</em> is <em>k</em>-subsequence universal over an alphabet Σ if every word in <span><math><msup><mrow><mi>Σ</mi></mrow><mrow><mi>k</mi></mrow></msup></math></span> appears in <em>w</em> as a subsequence. In this paper, we study the intersection between the set of <em>k</em>-subsequence universal words over some alphabet Σ and regular languages over Σ. We call a regular language <em>L k-</em>∃<em>-subsequence universal</em> if there exists a <em>k</em>-subsequence universal word in <em>L</em>, and <em>k-</em>∀<em>-subsequence universal</em> if every word of <em>L</em> is <em>k</em>-subsequence universal. We give algorithms solving the problems of deciding if a given regular language, represented by a finite automaton recognising it, is <em>k-</em>∃<em>-subsequence universal</em> and, respectively, if it is <em>k-</em>∀<em>-subsequence universal</em>, for a given <em>k</em>. The algorithms are FPT w.r.t. the size of the input alphabet, and their run-time does not depend on <em>k</em>; they run in polynomial time in the number <em>n</em> of states of the input automaton when the size of the input alphabet is <span><math><mi>O</mi><mo>(</mo><mi>log</mi><mo></mo><mi>n</mi><mo>)</mo></math></span>. Moreover, we show that the problem of deciding if a given regular language is <em>k-</em>∃<em>-subsequence universal</em> is NP-complete, when the language is over a large alphabet. Further, we provide algorithms for counting the number of <em>k</em>-subsequence universal words (paths) accepted by a given deterministic (respectively, non-deterministic) finite automaton, and ranking an input word (path) within the set of <em>k</em>-subsequence universal words accepted by a given finite automaton.</div></div>","PeriodicalId":54985,"journal":{"name":"Information and Computation","volume":"307 ","pages":"Article 105357"},"PeriodicalIF":1.0000,"publicationDate":"2025-09-16","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Information and Computation","FirstCategoryId":"94","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S0890540125000938","RegionNum":4,"RegionCategory":"计算机科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q3","JCRName":"COMPUTER SCIENCE, THEORY & METHODS","Score":null,"Total":0}
引用次数: 0
Abstract
A subsequence of a word w is a word u such that , for some set of indices . A word w is k-subsequence universal over an alphabet Σ if every word in 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 . 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, non-deterministic) finite automaton, and ranking an input word (path) within the set of k-subsequence universal words accepted by a given finite automaton.
期刊介绍:
Information and Computation welcomes original papers in all areas of theoretical computer science and computational applications of information theory. Survey articles of exceptional quality will also be considered. Particularly welcome are papers contributing new results in active theoretical areas such as
-Biological computation and computational biology-
Computational complexity-
Computer theorem-proving-
Concurrency and distributed process theory-
Cryptographic theory-
Data base theory-
Decision problems in logic-
Design and analysis of algorithms-
Discrete optimization and mathematical programming-
Inductive inference and learning theory-
Logic & constraint programming-
Program verification & model checking-
Probabilistic & Quantum computation-
Semantics of programming languages-
Symbolic computation, lambda calculus, and rewriting systems-
Types and typechecking