English

Subsequences With Gap Constraints: Complexity Bounds for Matching and Analysis Problems

Computational Complexity 2022-06-29 v1 Data Structures and Algorithms Formal Languages and Automata Theory

Abstract

We consider subsequences with gap constraints, i.e., length-k subsequences p that can be embedded into a string w such that the induced gaps (i.e., the factors of w between the positions to which p is mapped to) satisfy given gap constraints gc=(C1,C2,...,Ck1)gc = (C_1, C_2, ..., C_{k-1}); we call p a gc-subsequence of w. In the case where the gap constraints gc are defined by lower and upper length bounds Ci=(Li,Li+)N2C_i = (L^-_i, L^+_i) \in \mathbb{N}^2 and/or regular languages CiREGC_i \in REG, we prove tight (conditional on the orthogonal vectors (OV) hypothesis) complexity bounds for checking whether a given p is a gc-subsequence of a string w. We also consider the whole set of all gc-subsequences of a string, and investigate the complexity of the universality, equivalence and containment problems for these sets of gc-subsequences.

Keywords

Cite

@article{arxiv.2206.13896,
  title  = {Subsequences With Gap Constraints: Complexity Bounds for Matching and Analysis Problems},
  author = {Joel D. Day and Maria Kosche and Florin Manea and Markus L. Schmid},
  journal= {arXiv preprint arXiv:2206.13896},
  year   = {2022}
}
R2 v1 2026-06-24T12:06:42.326Z