paper

Scattered Factor-Universality of Words

arXiv:2003.04629

Abstract

A word is a scattered factor of a word if can be obtained from by deleting some of its letters: there exist the (potentially empty) words such that . The set of all scattered factors up to length of a word is called its full -spectrum. Firstly, we show an algorithm deciding whether the -spectra for given of two words are equal or not, running in optimal time. Secondly, we consider a notion of scattered-factors universality: the word , with $\letters(w)=Σ$, is called -universal if its -spectrum includes all words of length over the alphabet ; we extend this notion to -circular universality. After a series of preliminary combinatorial results, we present an algorithm computing, for a given -universal word the minimal such that is -universal for some . Several other connected problems~are~also~considered.