English

Cadences in Grammar-Compressed Strings

Data Structures and Algorithms 2020-08-14 v1

Abstract

Cadences are structurally maximal arithmetic progressions of indices corresponding to equal characters in an underlying string. This paper provides a polynomial time detection algorithm for 3-cadences in grammar-compressed binary strings. This algorithm also translates to a linear time detection algorithm for 3-cadences in uncompressed binary strings. Furthermore, this paper proves that several variants of the cadence detection problem are NP-complete for grammar-compressed strings. As a consequence, the equidistant subsequence matching problem with patterns of length three is NP-complete for grammar-compressed ternary strings.

Keywords

Cite

@article{arxiv.2008.05594,
  title  = {Cadences in Grammar-Compressed Strings},
  author = {Julian Pape-Lange},
  journal= {arXiv preprint arXiv:2008.05594},
  year   = {2020}
}
R2 v1 2026-06-23T17:49:14.699Z