arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2402.16205cs.DS
收藏

增强的图模式匹配

Enhanced Graph Pattern Matching

Nicola Cotumaccio

AI总结:

本文研究图模式匹配的计算复杂度,通过为任意图引入最长公共前缀(LCP)数组概念,证明了在图上计算匹配统计量与解决标准模式匹配查询同样困难,从而将字符串领域的结论推广到图结构。

摘要:

字符串上的模式匹配查询可以通过 Knuth-Morris-Pratt(KMP)算法在线性时间内解决。1973 年,Weiner 引入了字符串的后缀树 [FOCS 1973],并证明了看似更困难的计算匹配统计量问题也可以在线性时间内解决。图上的模式匹配查询本质上更加困难:在正交向量假设下,图模式匹配问题无法在亚二次时间内解决 [TALG 2023]。图模式匹配的复杂度可以通过所考虑图的拓扑复杂度进行参数化,该拓扑复杂度由参数 $p$ 刻画 [JACM 2023]。在本文中,我们证明了与字符串情形一样,在图上计算匹配统计量与解决标准模式匹配查询同样困难。为此,我们为任意图引入了最长公共前缀(LCP)数组的概念。

英文摘要:

Pattern matching queries on strings can be solved in linear time by Knuth-Morris-Pratt (KMP) algorithm. In 1973, Weiner introduced the suffix tree of a string [FOCS 1973] and showed that the seemingly more difficult problem of computing matching statistics can also be solved in liner time. Pattern matching queries on graphs are inherently more difficult: under the Orthogonal Vector hypothesis, the graph pattern matching problem cannot be solved in subquadratic time [TALG 2023]. The complexity of graph pattern matching can be parameterized by the topological complexity of the considered graph, which is captured by a parameter $ p $ [JACM 2023]. In this paper, we show that, as in the string setting, computing matching statistics on graph is as difficult as solving standard pattern matching queries. To this end, we introduce a notion of longest common prefix (LCP) array for arbitrary graphs.

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

↑