English

Subsequences in Bounded Ranges: Matching and Analysis Problems

Formal Languages and Automata Theory 2024-09-16 v3 Data Structures and Algorithms

Abstract

In this paper, we consider a variant of the classical algorithmic problem of checking whether a given word vv is a subsequence of another word ww. More precisely, we consider the problem of deciding, given a number pp (defining a range-bound) and two words vv and ww, whether there exists a factor w[i:i+p1]w[i:i+p-1] (or, in other words, a range of length pp) of ww having vv as subsequence (i.\,e., vv occurs as a subsequence in the bounded range w[i:i+p1]w[i:i+p-1]). We give matching upper and lower quadratic bounds for the time complexity of this problem. Further, we consider a series of algorithmic problems in this setting, in which, for given integers kk, pp and a word ww, we analyse the set pp-Subseqk(w)_{k}(w) of all words of length kk which occur as subsequence of some factor of length pp of ww. Among these, we consider the kk-universality problem, the kk-equivalence problem, as well as problems related to absent subsequences. Surprisingly, unlike the case of the classical model of subsequences in words where such problems have efficient solutions in general, we show that most of these problems become intractable in the new setting when subsequences in bounded ranges are considered. Finally, we provide an example of how some of our results can be applied to subsequence matching problems for circular words.

Keywords

Cite

@article{arxiv.2207.09201,
  title  = {Subsequences in Bounded Ranges: Matching and Analysis Problems},
  author = {Maria Kosche and Tore Koß and Florin Manea and Viktoriya Pak},
  journal= {arXiv preprint arXiv:2207.09201},
  year   = {2024}
}

Comments

Extended version of a paper which will appear in the proceedings of the 16th International Conference on Reachability Problems, RP 2022

R2 v1 2026-06-25T01:02:50.433Z