String Matching in (Block) Graphs: A Full Classification by Walk Length
Sebastian Angrick, Ben Bals, Paweł Gawrychowski, Solon P. Pissis, Yuki Yonemoto
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 and a pattern of length , 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 time, where 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 . Thus, we might be able to bypass this lower bound by restricting the walk length to , which naturally reduces to having as input a directed graph whose set of nodes is partitioned into 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 -SMBG problem. We provide a more fine-grained classification that essentially settles the complexity of -SMBG parameterized by : (1) We give a near-linear-time algorithm for . (2) We show that there is no combinatorial algorithm improving over the state-of-the-art bound for any . (3) We also present a fast matrix multiplication-based algorithm yielding an improvement for , which is conditionally optimal. (4) Finally, we show that under SETH, for any , no algorithm can improve over the state of the art.
Create a lesson
Metadata
- Comments
- ESA 2026
Related papers
ObliGraph: Graph Pattern Query Processing with Full and Differential Obliviousness
Shared title terminologycs.DSLyu Xu, Xinyi Zhang, Qichen Wang
A Graph Matching Based Approach for the Multi-Depot Capacitated Vehicle Routing Problem
Shared title terminologycs.DSJayant Chandwani, Pranav M R, Anand Jat et al.
Achieving Almost Exact Recovery in Almost Quadratic Time: Rank-Based Graph Matching via Local Tree Correlation Tests
Shared title terminologycs.DSJiale Cheng, Ziao Wang, Lei Ying
Parameterized Algorithms for Minimum Sum Vertex Cover on Dense Graphs
Shared title terminologycs.DSShubhada Aute, Noleen Köhler, Fahad Panolan
Toggle Tree: A New Data Structure for Efficient Parallel Graph Processing
Shared title terminologycs.DSXinjian Jiang, Youzhe Liu, Yan Gu et al.
Improved Exact Algorithms and Parameterized Results for Monopolar Graph Problems
Shared title terminologycs.DSSoumen Mandal, Ashutosh Rai