On the Complexity of String Matching for Graphs

被引:8
|
作者
Equi, Massimo [1 ]
Makinen, Veli [1 ]
Tomescu, Alexandru I. [1 ]
Grossi, Roberto [2 ]
机构
[1] Univ Helsinki, Dept Comp Sci, POB 68,Pietari Kalmin Katu 5, Helsinki 00014, Finland
[2] Univ Pisa, Dipartimento Informat, Largo B Pontecorvo 3, I-56127 Pisa, Italy
基金
欧洲研究理事会; 芬兰科学院;
关键词
Exact pattern matching; graph query; graph search; labeled graphs; string matching; string search; Strong Exponential Time Hypothesis; heterogeneous networks; variation graphs; EDIT DISTANCE CANNOT; TIME UNLESS SETH; PATTERN;
D O I
10.1145/3588334
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
Exact string matching in labeled graphs is the problem of searching paths of a graph G = (V, E) such that the concatenation of their node labels is equal to a given pattern string 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. We prove a conditional lower bound stating that, for any constant epsilon > 0, an O(|E|(1-epsilon) m) time, or an O(|E| m(1-epsilon)) time algorithm for exact string matching in graphs, with node labels and pattern drawn from a binary alphabet, cannot be achieved unless the Strong Exponential Time Hypothesis (SETH) is false. This holds even if restricted to undirected graphs with maximum node degree 2-that is, to zig-zag matching in bidirectional strings, or to deterministic directed acyclic graphs whose nodes have maximum sum of indegree and outdegree 3. These restricted cases make the lower bound stricter than what can be directly derived from related bounds on regular expression matching (Backurs and Indyk, FOCS'16). In fact, our bounds are tight in the sense that lowering the degree or the alphabet size yields linear time solvable problems. An interesting corollary is that exact and approximate matching are equally hard (i.e., quadratic time) in graphs under SETH. In comparison, the same problems restricted to strings have linear time vs quadratic time solutions, respectively (approximate pattern matching having also a matching SETH lower bound (Backurs and Indyk, STOC'15)).
引用
收藏
页数:25
相关论文
共 50 条
  • [31] An Ultralow Complexity String Matching Approach to Screen Content Coding in AVS3
    Yang, Yufen
    Zhou, Kailun
    Zhao, Liping
    Lin, Tao
    IEEE TRANSACTIONS ON CIRCUITS AND SYSTEMS FOR VIDEO TECHNOLOGY, 2021, 31 (09) : 3714 - 3718
  • [32] Approximate Two-Party Privacy-Preserving String Matching with Linear Complexity
    Beck, Martin
    Kerschbaum, Florian
    2013 IEEE INTERNATIONAL CONGRESS ON BIG DATA, 2013, : 31 - 37
  • [33] Parameterized Complexity of Induced H-Matching on Claw-Free Graphs
    Hermelin, Danny
    Mnich, Matthias
    van Leeuwen, Erik Jan
    ALGORITHMS - ESA 2012, 2012, 7501 : 624 - 635
  • [34] Complexity Results for Matching Cut Problems in Graphs Without Long Induced Paths
    Le, Hoang-Oanh
    Le, Van Bang
    GRAPH-THEORETIC CONCEPTS IN COMPUTER SCIENCE, WG 2023, 2023, 14093 : 417 - 431
  • [35] The Complexity of the Matching-Cut Problem for Planar Graphs and Other Graph Classes
    Bonsma, Paul
    JOURNAL OF GRAPH THEORY, 2009, 62 (02) : 109 - 126
  • [36] The complexity of the matching-cut problem for planar graphs and other graph classes
    Bonsma, P
    GRAPH-THEORETIC CONCEPTS IN COMPUTER SCIENCE, 2003, 2880 : 93 - 105
  • [37] Decidability of string graphs
    Schaefer, M
    Stefankovic, D
    JOURNAL OF COMPUTER AND SYSTEM SCIENCES, 2004, 68 (02) : 319 - 334
  • [38] String matching with lookahead
    Peltola, Hannu
    Tarhio, Jorma
    DISCRETE APPLIED MATHEMATICS, 2014, 163 : 352 - 360
  • [39] STRING REPRESENTATIONS OF GRAPHS
    CULIK, K
    MAURER, HA
    INTERNATIONAL JOURNAL OF COMPUTER MATHEMATICS, 1978, 6 (04) : 273 - 301
  • [40] String matching in hypertext
    Park, K
    Kim, DK
    COMBINATORIAL PATTERN MATCHING, 1995, 937 : 318 - 329