English

Efficient Computation of Periods and Covers Using Sampling

Data Structures and Algorithms 2025-03-03 v2

Abstract

Identifying regularities in strings, such as \emph{periods} and \emph{covers}, is crucial for applications in text compression, computational biology, and pattern recognition. \emph{Characters-Distance-Sampling} (\texttt{CDS}) is an efficient technique that encodes a string by storing distances between selected pivot characters, accelerating string-processing tasks. We apply \texttt{CDS} to compute periods and shortest covers, selecting only the first character as the pivot. This strategy yields optimized computations, achieving speedups of 38%38\%--43%43\% for period computation and 63%63\%--72%72\% for cover detection. These results demonstrate the potential of \texttt{CDS}-based representations for efficient string analysis and broader applications.

Keywords

Cite

@article{arxiv.2407.18216,
  title  = {Efficient Computation of Periods and Covers Using Sampling},
  author = {Thierry Lecroq and Francesco Pio Marino},
  journal= {arXiv preprint arXiv:2407.18216},
  year   = {2025}
}
R2 v1 2026-06-28T17:53:46.936Z