Algorithms and Indexing Lower Bounds for Variable String Matching
摘要
A \emph{generalized degenerate string} (GD) is a sequence of nonempty finite sets of strings, called \emph{segments}, such that all strings in a segment have the same length. Given a solid pattern , GD string matching asks whether occurs in . Ascone et al. (WABI 2024) identified this as the main remaining boundary case in the fine-grained complexity of pattern matching on variable strings, between variants with near-linear algorithms and those with SETH-based quadratic lower bounds. We give a -time algorithm, where is the total size of and , placing GD matching on the subquadratic side of this boundary. We also study indexing. For elastic-degenerate strings (ED), which drop the equal-width restriction, Gibney (SPIRE 2020) obtained query time after linear preprocessing. We adapt this index to GD strings, obtaining query time. Conversely, under SETH, we rule out GD indices with polynomial preprocessing and query time . Under the -Clique conjecture, we further rule out combinatorial GD indices with query time , and combinatorial ED indices with query time , matching the quadratic dependence on in Gibney's upper bound. Finally, under the OMv conjecture, we show that, after polynomial preprocessing of a string set and a pattern, active-prefix queries on a bit vector of length cannot be answered in time. Since these queries are the standard bottleneck in ED matching, improving indexed ED queries below would require both non-combinatorial techniques and an approach that avoids using active-prefix queries as the main bottleneck.
引用
@article{arxiv.2607.08566,
title = {Algorithms and Indexing Lower Bounds for Variable String Matching},
author = {Estéban Gabory},
journal= {arXiv preprint arXiv:2607.08566},
year = {2026}
}