Elastic Degenerate (ED) strings and Elastic Founder (EF) graphs, here collectively named variable strings, are two representations of acyclic components of pangenomes which extend the well-known notion of indeterminate string. Recent studies have focused extensively on algorithmic tasks involving these structures and other forms of variable strings that they generalize. Among such tasks, the basic operation of matching a pattern into a text, a fundamental toolkit for pangenomic data analysis, deserves special attention. In this paper, (1) we establish a clear taxonomy across ED strings and EF graphs, categorizing types of variable strings from the simplest linear (solid) string to the most complex general cases; (2) we consider the problem match(X,Y) of matching a solid or variable pattern of type X into a variable text of type Y, and investigate its time complexity when X and Y are chosen from types of variable strings in the taxonomy of (1). For all possible X and Y, we either provide a non-trivial, often sub-quadratic, upper bound for match(X,Y), or we prove a quadratic conditional lower bound, taking as a reference the existing quadratic conditional lower bounds for match(solid,ED) and match(solid,EF). A preliminary version of this work appeared in [Ascone et al., WABI 2024].

, , , , ,
doi.org/10.1186/s13015-025-00289-3
Algorithms for Molecular Biology
Pan-genome Graph Algorithms and Data Integration , Algorithms for PAngenome Computational Analysis
creativecommons.org/licenses/by-nc-nd/4.0/
,
Centrum Wiskunde & Informatica, Amsterdam (CWI), The Netherlands

Ascone, R., Bernardini, G., Conte, A., Equi, M., Gabory, E., Grossi, R.& Pisanti, N. (2026). Pattern matching with Elastic-Degenerate strings and Elastic-Founder graphs. Algorithms for Molecular Biology, 21(1), 8:1–8:25.https://doi.org/10.1186/s13015-025-00289-3