arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2109.05290cs.DScs.CC
收藏

标号直积最优解图上的弦问题

The Labeled Direct Product Optimally Solves String Problems on Graphs

Nicola Rizzo, Alexandru I. Tomescu, Alberto Policriti

摘要:

后缀树是一种重要的数据结构,它是解决诸如精确模式匹配、最长公共子串、匹配统计和最长重复子串等基本字符串问题的核心。最近的研究集中在扩展这些问题中的一些顶点标记的图形,虽然使用特设的方法,在某些情况下,不推广到所有的输入图。在没有一个无处不在的工具,如后缀树的标记图,我们引入了标记的直接产品的两个图作为一个通用的工具,以获得最佳的算法:我们获得概念上更简单的算法的二次问题的字符串匹配(SMLG)和最长的公共子串(LCSP)的标记图。我们的算法也更有效,因为它们在标记乘积图的大小上是时间线性的,对于某些输入,它可能小于二次的,并且它们的运行时间是可预测的,因为标记直积图的大小可以有效地预先计算。我们还解决了包含圈的图上的LCSP,这是Shimohira等人在2011年留下的一个开放问题。为了展示标记乘积图的强大功能,我们还将其应用于解决标记图中的匹配统计(MSP)和最长重复串(LRSP)问题。此外,我们表明,我们的(最坏情况下的二次)算法也是最佳的,条件正交向量假设。最后,我们通过在无向图上研究LRSP,完成了LRSP的复杂性图。

英文摘要:

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, although using ad-hoc approaches which in some cases do not generalize to all input graphs. In the absence of a ubiquitous 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: we obtain conceptually simpler algorithms for the quadratic problems of string matching (SMLG) and longest common substring (LCSP) in labeled graphs. Our algorithms are also more efficient, since they 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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑