On the Complexity of Exact Pattern Matching in Graphs: Binary Strings and Bounded Degree

01/16/2019
by   Massimo Equi, et al.
0

Exact pattern matching in labeled graphs is the problem of searching paths of a graph G=(V,E) that spell the same string as the pattern P[1..m]. This basic problem can be found at the heart of more complex operations on variation graphs in computational biology, of query operations in graph databases, and of analysis operations in heterogeneous networks, where the nodes of some paths must match a sequence of labels or types. We describe a simple conditional lower bound that, for any constant ϵ>0, an O(|E|^1 - ϵ m)-time or an O(|E| m^1 - ϵ)-time algorithm for exact pattern matching on graphs, with node labels and patterns drawn from a binary alphabet, cannot be achieved unless the Strong Exponential Time Hypothesis () is false. The result holds even if restricted to undirected graphs of maximum degree three or directed acyclic graphs of maximum sum of indegree and outdegree three. Although a conditional lower bound of this kind can be somehow derived from previous results (Backurs and Indyk, FOCS'16), we give a direct reduction from for dissemination purposes, as the result might interest researchers from several areas, such as computational biology, graph database, and graph mining, as mentioned before. Indeed, as approximate pattern matching on graphs can be solved in O(|E| m) time, exact and approximate matching are thus equally hard (quadratic time) on graphs under the assumption. In comparison, the same problems restricted to strings have linear time vs quadratic time solutions, respectively, where the latter ones have a matching lower bound on computing the edit distance of two strings (Backurs and Indyk, STOC'15).

READ FULL TEXT

page 1

page 2

page 3

page 4

research
02/10/2019

On the Complexity of Exact Pattern Matching in Graphs: Determinism and Zig-Zag Matching

Exact pattern matching in labeled graphs is the problem of searching pat...
research
01/28/2022

The Complexity of Approximate Pattern Matching on De Bruijn Graphs

Aligning a sequence to a walk in a labeled graph is a problem of fundame...
research
01/07/2020

Complexity Issues of String to Graph Approximate Matching

The problem of matching a query string to a directed graph, whose vertic...
research
02/03/2020

Graphs cannot be indexed in polynomial time for sub-quadratic time string matching, unless SETH fails

We consider the following string matching problem on a node-labeled grap...
research
12/15/2022

Parameterized Algorithms for String Matching to DAGs: Funnels and Beyond

The problem of String Matching to Labeled Graphs (SMLG) asks to find all...
research
08/19/2021

A Conditional Lower Bound for Episode Matching

Given two strings S and P, the Episode Matching problem is to compute th...
research
02/03/2020

Conditional Indexing Lower Bounds Through Self-Reducibility

We provide a general technique to turn a conditional lower bound result ...

Please sign up or login with your details

Forgot password? Click here to reset