English

Scattered Factor-Universality of Words

Formal Languages and Automata Theory 2020-03-11 v1 Combinatorics

Abstract

A word u=u1unu=u_1\dots u_n is a scattered factor of a word ww if uu can be obtained from ww by deleting some of its letters: there exist the (potentially empty) words v0,v1,..,vnv_0,v_1,..,v_n such that w=v0u1v1...unvnw = v_0u_1v_1...u_nv_n. The set of all scattered factors up to length kk of a word is called its full kk-spectrum. Firstly, we show an algorithm deciding whether the kk-spectra for given kk of two words are equal or not, running in optimal time. Secondly, we consider a notion of scattered-factors universality: the word ww, with \letters(w)=Σ\letters(w)=\Sigma, is called kk-universal if its kk-spectrum includes all words of length kk over the alphabet Σ\Sigma; we extend this notion to kk-circular universality. After a series of preliminary combinatorial results, we present an algorithm computing, for a given kk'-universal word ww the minimal ii such that wiw^i is kk-universal for some k>kk>k'. Several other connected problems~are~also~considered.

Keywords

Cite

@article{arxiv.2003.04629,
  title  = {Scattered Factor-Universality of Words},
  author = {Laura Barker and Pamela Fleischmann and Katharina Harwardt and Florin Manea and Dirk Nowotka},
  journal= {arXiv preprint arXiv:2003.04629},
  year   = {2020}
}
R2 v1 2026-06-23T14:09:55.091Z