Fast Algorithm for Partial Covers in Words
arXiv:1401.0163
Abstract
A factor of a word is a cover of if every position in lies within some occurrence of in . A word covered by thus generalizes the idea of a repetition, that is, a word composed of exact concatenations of . In this article we introduce a new notion of -partial cover, which can be viewed as a relaxed variant of cover, that is, a factor covering at least positions in . We develop a data structure of size (where ) that can be constructed in time which we apply to compute all shortest -partial covers for a given . We also employ it for an -time algorithm computing a shortest -partial cover for each .