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 条
  • [41] SOLVING DIRECT AND INVERSE PROBLEMS OF PLATE VIBRATION BY USING THE TREFFTZ FUNCTIONS
    Maciag, Artur
    Pawinska, Anna
    JOURNAL OF THEORETICAL AND APPLIED MECHANICS, 2013, 51 (03) : 543 - 552
  • [42] Solving optimal control problems with control delays using direct transcription
    Betts, John T.
    Campbell, Stephen L.
    Thompson, Karmethia C.
    APPLIED NUMERICAL MATHEMATICS, 2016, 108 : 185 - 203
  • [43] On direct methods for solving variational problems
    Demyanov, V. F.
    Tamasyan, G. Sh.
    TRUDY INSTITUTA MATEMATIKI I MEKHANIKI URO RAN, 2010, 16 (05): : 36 - 47
  • [45] ON PLANARITY OF DIRECT PRODUCT OF MULTIPARTITE COMPLETE GRAPHS
    Beaudou, Laurent
    Dorbec, Paul
    Gravier, Sylvain
    Jha, Pranava K.
    DISCRETE MATHEMATICS ALGORITHMS AND APPLICATIONS, 2009, 1 (01) : 85 - 104
  • [46] On total coloring the direct product of complete graphs
    Castonguay, D.
    de Figueiredo, C. M. H.
    Kowada, L. A. B.
    Patrao, C. S. R.
    Sasaki, D.
    Valencia-Pabon, M.
    PROCEEDINGS OF THE XI LATIN AND AMERICAN ALGORITHMS, GRAPHS AND OPTIMIZATION SYMPOSIUM, 2021, 195 : 306 - 314
  • [47] Domination and upper domination of direct product graphs
    Defant, Colin
    Iyer, Sumun
    DISCRETE MATHEMATICS, 2018, 341 (10) : 2742 - 2752
  • [48] The homomorphism and coloring of the direct product of signed graphs
    Wen, Chao
    Sun, Qiang
    Cai, Hongyan
    Guan, Huanhuan
    Zhang, Chao
    APPLIED MATHEMATICS AND COMPUTATION, 2024, 476
  • [49] Direct product and uniqueness of automorphism groups of graphs
    Peisert, W
    DISCRETE MATHEMATICS, 1999, 207 (1-3) : 189 - 197
  • [50] Resolvability and Strong Resolvability in the Direct Product of Graphs
    Kuziak, Dorota
    Peterin, Iztok
    Yero, Ismael G.
    RESULTS IN MATHEMATICS, 2017, 71 (1-2) : 509 - 526