Solving String Problems on Graphs Using the Labeled Direct Product

被引:4
|
作者
Rizzo, Nicola [1 ]
Tomescu, Alexandru, I [1 ]
Policriti, Alberto [2 ]
机构
[1] Univ Helsinki, Dept Comp Sci, Helsinki, Finland
[2] Univ Udine, Dept Math Comp Sci & Phys, Udine, Italy
基金
芬兰科学院; 欧洲研究理事会;
关键词
Longest repeated substring; Longest common substring; String algorithm; Graph algorithm; Motif discovery; Fine-grained complexity; SUFFIX TREE; FINITE AUTOMATA; AMBIGUITY; COMPLEXITY;
D O I
10.1007/s00453-022-00989-x
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Suffix trees are an important data structure at the core of optimal solutions to many fundamental string problems, such as exact pattern matching, longest common substring, matching statistics, and longest repeated substring. Recent lines of research focused on extending some of these problems to vertex-labeled graphs, either by using efficient ad-hoc approaches which do not generalize to all input graphs, or by indexing difficult graphs and having worst-case exponential complexities. In the absence of an ubiquitous and polynomial tool like the suffix tree for labeled graphs, we introduce the labeled direct product of two graphs as a general tool for obtaining optimal algorithms in the worst case: we obtain conceptually simpler algorithms for the quadratic problems of string matching (SMLG) and longest common substring (LCSP) in labeled graphs. Our algorithms run in time linear in the size of the labeled product graph, which may be smaller than quadratic for some inputs, and their run-time is predictable, because the size of the labeled direct product graph can be precomputed efficiently. We also solve LCSP on graphs containing cycles, which was left as an open problem by Shimohira et al. in 2011. To show the power of the labeled product graph, we also apply it to solve the matching statistics (MSP) and the longest repeated string (LRSP) problems in labeled graphs. Moreover, we show that our (worst-case quadratic) algorithms are also optimal, conditioned on the Orthogonal Vectors Hypothesis. Finally, we complete the complexity picture around LRSP by studying it on undirected graphs.
引用
收藏
页码:3008 / 3033
页数:26
相关论文
共 50 条
  • [22] A quasicancellation property for the direct product of graphs
    Hammack, Richard H.
    DISCRETE MATHEMATICS, 2010, 310 (12) : 1691 - 1696
  • [23] Independence in direct-product graphs
    Jha, PK
    Klavzar, S
    ARS COMBINATORIA, 1998, 50 : 53 - 63
  • [24] Enumerating cliques in direct product graphs
    Defant, Colin
    JOURNAL OF COMBINATORICS, 2020, 11 (02) : 351 - 358
  • [25] Unexpected automorphisms in direct product graphs
    Gan, Yunsong
    Liu, Weijun
    Xia, Binzhou
    JOURNAL OF COMBINATORIAL THEORY SERIES B, 2025, 171 : 140 - 164
  • [26] On the super connectivity of direct product of graphs
    Soliemany, Farnaz
    Ghasemi, Mohsen
    Varmazyar, Rezvan
    RAIRO-OPERATIONS RESEARCH, 2022, 56 (04) : 2767 - 2773
  • [27] TOTAL COLOURINGS OF DIRECT PRODUCT GRAPHS
    Mackeigan, Kyle
    Janssen, Jeannette
    CONTRIBUTIONS TO DISCRETE MATHEMATICS, 2020, 15 (01) : 67 - 71
  • [28] ON THE GENERALIZED DIRECT-PRODUCT OF GRAPHS
    PETRIC, MV
    GRAPH THEORY, 1989, : 99 - 105
  • [29] Super connectivity of direct product of graphs
    Zhou, Jin-Xin
    ARS MATHEMATICA CONTEMPORANEA, 2015, 8 (02) : 235 - 244
  • [30] METHODOLOGIES FOR SOLVING PRODUCT MANAGEMENT PROBLEMS
    Pyanikova, Elvira Anatolyevna
    Kovaleva, Anna Yevgenyevna
    SGEM 2016, BK 2: POLITICAL SCIENCES, LAW, FINANCE, ECONOMICS AND TOURISM CONFERENCE PROCEEDINGS, VOL IV, 2016, : 417 - +