KIT | KIT-Bibliothek | Impressum | Datenschutz

String Matching in (Block) Graphs: A Full Classification by Walk Length

Angrick, Sebastian ORCID iD icon 1; Bals, Ben ; Gawrychowski, Paweł ; Pissis, Solon P. ; Yonemoto, Yuki ; Bille, Philip [Hrsg.]; Pettie, Seth [Hrsg.]; Storandt, Sabine [Hrsg.]
1 Institut für Theoretische Informatik (ITI), Karlsruher Institut für Technologie (KIT)

Abstract:

We consider directed graphs in which the nodes are labeled with strings. A walk in such a graph naturally corresponds to the concatenation of the visited nodes' labels. These graphs are widely used in bioinformatics to compactly describe large collections of highly similar genomes. Given such a graph G = (V,E) and a pattern of length m, we seek a walk whose corresponding string has an occurrence of the pattern. We call this the SMLG problem. Amir et al. [J. Algorithms, 2000] showed that SMLG can be solved in 𝒪(m |E| + N) time, where N is the total length of all node labels. Equi et al. [ACM Trans. Algorithms, 2023] showed that this is essentially optimal (under SETH).
The existing lower bound assumes that the sought walk is of length Θ(|V|). Thus, we might be able to bypass this lower bound by restricting the walk length to b-1, which naturally reduces to having as input a directed graph whose set of nodes is partitioned into b blocks. Then, we seek a walk in this graph that starts in the first block and ends in the last block. We call this the b-SMBG problem. Equi et al. [Algorithmica, 2023] showed that, if we impose no restriction on b, the existing algorithm of Amir et al. ... mehr


Verlagsausgabe §
DOI: 10.5445/IR/1000198477
Veröffentlicht am 27.10.2026
Originalveröffentlichung
DOI: 10.4230/LIPIcs.ESA.2026.105
Cover der Publikation
Zugehörige Institution(en) am KIT Institut für Theoretische Informatik (ITI)
Publikationstyp Proceedingsbeitrag
Publikationsjahr 2026
Sprache Englisch
Identifikator ISBN: 978-3-95977-445-1
ISSN: 1868-8969
KITopen-ID: 1000198477
Erschienen in 34th Annual European Symposium on Algorithms (ESA 2026). Ed: P. Bille
Veranstaltung 34th Annual European Symposium on Algorithms (ESA 2026), L'Aquila, Italien, 31.08.2026 – 04.09.2026
Verlag Schloss Dagstuhl - Leibniz-Zentrum für Informatik (LZI)
Seiten 105:1-105:19
Serie Leibniz International Proceedings in Informatics (LIPIcs) ; 388
Schlagwörter string algorithms, pattern matching, lower bounds, fine-grained complexity, Theory of computation → Pattern matching
Nachgewiesen in Scopus
OpenAlex
KIT – Die Universität in der Helmholtz-Gemeinschaft
KITopen Landing Page