English

Subsequence Covers of Words

Data Structures and Algorithms 2025-09-09 v1

Abstract

We introduce subsequence covers (s-covers, in short), a new type of covers of a word. A word CC is an s-cover of a word SS if the occurrences of CC in SS as subsequences cover all the positions in SS. The s-covers seem to be computationally much harder than standard covers of words (cf. Apostolico et al., Inf. Process. Lett. 1991), but, on the other hand, much easier than the related shuffle powers (Warmuth and Haussler, J. Comput. Syst. Sci. 1984). We give a linear-time algorithm for testing if a candidate word CC is an s-cover of a word SS over a polynomially-bounded integer alphabet. We also give an algorithm for finding a shortest s-cover of a word SS, which in the case of a constant-sized alphabet, also runs in linear time. The words without proper s-cover are called s-primitive. We complement our algorithmic results with explicit lower and an upper bound on the length of a longest s-primitive word. Both bounds are exponential in the size of the alphabet. The upper bound presented here improves the bound given in the conference version of this paper [SPIRE 2022].

Keywords

Cite

@article{arxiv.2509.05827,
  title  = {Subsequence Covers of Words},
  author = {Panagiotis Charalampopoulos and Solon P. Pissis and Jakub Radoszewski and Wojciech Rytter and Tomasz Waleń and Wiktor Zuba},
  journal= {arXiv preprint arXiv:2509.05827},
  year   = {2025}
}

Comments

Simplified algorithm in section 2

R2 v1 2026-07-01T05:24:38.110Z