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 条
  • [31] Solving the problems of new product forecasting
    Kahn, Kenneth B.
    BUSINESS HORIZONS, 2014, 57 (05) : 607 - 615
  • [32] Solving Product Line Design Optimization Problems Using Stochastic Programming
    Voekler, Sascha
    Baier, Daniel
    DATA ANALYSIS, MACHINE LEARNING AND KNOWLEDGE DISCOVERY, 2014, : 235 - 243
  • [33] LINE GRAPHS OF UNIT GRAPHS ASSOCIATED WITH THE DIRECT PRODUCT OF RINGS
    Pirzada, S.
    Altaf, Aaqib
    KOREAN JOURNAL OF MATHEMATICS, 2022, 30 (01): : 53 - 60
  • [34] Constraint programming techniques for solving problems on graphs
    Sidorov, V
    Telerman, V
    Ushakov, D
    PERSPECTIVES OF SYSTEM INFORMATICS, 2000, 1755 : 424 - 433
  • [35] NEW GRAPHS FOR SOLVING COMPRESSIBLE FLOW PROBLEMS
    LOEB, MB
    CHEMICAL ENGINEERING, 1969, 76 (11) : 179 - &
  • [36] Solving inverse problems with autoencoders on learnt graphs
    Majumdar, Angshul
    SIGNAL PROCESSING, 2022, 190
  • [37] Conflict graphs in solving integer programming problems
    Atamtürk, A
    Nemhauser, GL
    Savelsbergh, MWP
    EUROPEAN JOURNAL OF OPERATIONAL RESEARCH, 2000, 121 (01) : 40 - 55
  • [38] Solving Steiner tree problems in graphs to optimality
    Koch, T
    Martin, A
    NETWORKS, 1998, 32 (03) : 207 - 232
  • [39] Solving Matching Problems Efficiently in Bipartite Graphs
    Djelloul, Selma
    COMBINATORIAL ALGORITHMS, IWOCA 2014, 2015, 8986 : 128 - 139
  • [40] Solving String Constraints Using SAT
    Lotz, Kevin
    Goel, Amit
    Dutertre, Bruno
    Kiesl-Reiter, Benjamin
    Kong, Soonho
    Majumdar, Rupak
    Nowotka, Dirk
    COMPUTER AIDED VERIFICATION, CAV 2023, PT II, 2023, 13965 : 187 - 208