English

Fast Algorithm for Partial Covers in Words

Data Structures and Algorithms 2014-01-03 v1

Abstract

A factor uu of a word ww is a cover of ww if every position in ww lies within some occurrence of uu in ww. A word ww covered by uu thus generalizes the idea of a repetition, that is, a word composed of exact concatenations of uu. In this article we introduce a new notion of α\alpha-partial cover, which can be viewed as a relaxed variant of cover, that is, a factor covering at least α\alpha positions in ww. We develop a data structure of O(n)O(n) size (where n=wn=|w|) that can be constructed in O(nlogn)O(n\log n) time which we apply to compute all shortest α\alpha-partial covers for a given α\alpha. We also employ it for an O(nlogn)O(n\log n)-time algorithm computing a shortest α\alpha-partial cover for each α=1,2,,n\alpha=1,2,\ldots,n.

Keywords

Cite

@article{arxiv.1401.0163,
  title  = {Fast Algorithm for Partial Covers in Words},
  author = {Tomasz Kociumaka and Jakub Radoszewski and Wojciech Rytter and Solon P. Pissis and Tomasz Waleń},
  journal= {arXiv preprint arXiv:1401.0163},
  year   = {2014}
}
R2 v1 2026-06-22T02:37:36.972Z