Abstract

A word u=u1…unu=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)=Σ$, is called kk-universal if its kk-spectrum includes all words of length kk over the alphabet ΣΣ; we extend this notion to kk-circular universality. After a series of preliminary combinatorial results, we present an algorithm computing, for a given k′k'-universal word ww the minimal ii such that wiw^i is kk-universal for some k>k′k>k'. Several other connected problems~are~also~considered.

Explore this paper’s authors, topics and related work.

Building this map preview

BZPEER is loading the nearby papers, people, topics and institutions for this page.

Reviews 0

Write a reviewWrite

No reviews yet.

Discussion 0

Add a commentWrite

No comments yet.