Efficient Computation of Periods and Covers Using Sampling

Abstract

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

0

Turn this paper into a full lesson

ArcXiv compiles a staged curriculum from this paper: 8-12 lessons across beginner → advanced, synthesised section guides, visuals, flashcards, a quiz, exercises, and on-demand deep dives per section. Grounded in the abstract, never invented.

Discussion (0)

Sign in to join the discussion.

Loading comments…