English

Detecting $k$-(Sub-)Cadences and Equidistant Subsequence Occurrences

Data Structures and Algorithms 2020-02-18 v1

Abstract

The equidistant subsequence pattern matching problem is considered. Given a pattern string PP and a text string TT, we say that PP is an \emph{equidistant subsequence} of TT if PP is a subsequence of the text such that consecutive symbols of PP in the occurrence are equally spaced. We can consider the problem of equidistant subsequences as generalizations of (sub-)cadences. We give bit-parallel algorithms that yield o(n2)o(n^2) time algorithms for finding kk-(sub-)cadences and equidistant subsequences. Furthermore, O(nlog2n)O(n\log^2 n) and O(nlogn)O(n\log n) time algorithms, respectively for equidistant and Abelian equidistant matching for the case P=3|P| = 3, are shown. The algorithms make use of a technique that was recently introduced which can efficiently compute convolutions with linear constraints.

Keywords

Cite

@article{arxiv.2002.06796,
  title  = {Detecting $k$-(Sub-)Cadences and Equidistant Subsequence Occurrences},
  author = {Mitsuru Funakoshi and Yuto Nakashima and Shunsuke Inenaga and Hideo Bannai and Masayuki Takeda and Ayumi Shinohara},
  journal= {arXiv preprint arXiv:2002.06796},
  year   = {2020}
}
R2 v1 2026-06-23T13:43:34.734Z