关于图的字符串匹配的复杂性

IF 0.9 3区 计算机科学 Q3 COMPUTER SCIENCE, THEORY & METHODS
Massimo Equi, Veli Mäkinen, Alexandru I. Tomescu, Roberto Grossi
{"title":"关于图的字符串匹配的复杂性","authors":"Massimo Equi, Veli Mäkinen, Alexandru I. Tomescu, Roberto Grossi","doi":"https://dl.acm.org/doi/10.1145/3588334","DOIUrl":null,"url":null,"abstract":"<p>Exact string matching in labeled graphs is the problem of searching paths of a graph <i>G=(V, E)</i> such that the concatenation of their node labels is equal to a given pattern string <i>P</i>[1.<i>m</i>]. This basic problem can be found at the heart of more complex operations on variation graphs in computational biology, of query operations in graph databases, and of analysis operations in heterogeneous networks.</p><p>We prove a conditional lower bound stating that, for any constant ε &gt; 0, an <i>O</i>(|<i>E</i>|<sup>1 - ε</sup> <i>m</i>) time, or an <i>O</i>(|<i>E</i>| <i>m</i><sup>1 - ε</sup>)time algorithm for exact string matching in graphs, with node labels and pattern drawn from a binary alphabet, cannot be achieved unless the Strong Exponential Time Hypothesis (<sans-serif>SETH</sans-serif>) is false. This holds even if restricted to undirected graphs with maximum node degree 2—that is, to <i>zig-zag matching in bidirectional strings</i>, or to <i>deterministic</i> directed acyclic graphs whose nodes have maximum sum of indegree and outdegree 3. These restricted cases make the lower bound stricter than what can be directly derived from related bounds on regular expression matching (Backurs and Indyk, FOCS’16). In fact, our bounds are tight in the sense that lowering the degree or the alphabet size yields linear time solvable problems.</p><p>An interesting corollary is that exact and approximate matching are equally hard (i.e., quadratic time) in graphs under <sans-serif>SETH</sans-serif>. In comparison, the same problems restricted to strings have linear time vs quadratic time solutions, respectively (approximate pattern matching having also a matching <sans-serif>SETH</sans-serif> lower bound (Backurs and Indyk, STOC’15)).</p><p></p>","PeriodicalId":50922,"journal":{"name":"ACM Transactions on Algorithms","volume":"8 1","pages":""},"PeriodicalIF":0.9000,"publicationDate":"2023-04-12","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"On the Complexity of String Matching for Graphs\",\"authors\":\"Massimo Equi, Veli Mäkinen, Alexandru I. Tomescu, Roberto Grossi\",\"doi\":\"https://dl.acm.org/doi/10.1145/3588334\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"<p>Exact string matching in labeled graphs is the problem of searching paths of a graph <i>G=(V, E)</i> such that the concatenation of their node labels is equal to a given pattern string <i>P</i>[1.<i>m</i>]. This basic problem can be found at the heart of more complex operations on variation graphs in computational biology, of query operations in graph databases, and of analysis operations in heterogeneous networks.</p><p>We prove a conditional lower bound stating that, for any constant ε &gt; 0, an <i>O</i>(|<i>E</i>|<sup>1 - ε</sup> <i>m</i>) time, or an <i>O</i>(|<i>E</i>| <i>m</i><sup>1 - ε</sup>)time algorithm for exact string matching in graphs, with node labels and pattern drawn from a binary alphabet, cannot be achieved unless the Strong Exponential Time Hypothesis (<sans-serif>SETH</sans-serif>) is false. This holds even if restricted to undirected graphs with maximum node degree 2—that is, to <i>zig-zag matching in bidirectional strings</i>, or to <i>deterministic</i> directed acyclic graphs whose nodes have maximum sum of indegree and outdegree 3. These restricted cases make the lower bound stricter than what can be directly derived from related bounds on regular expression matching (Backurs and Indyk, FOCS’16). In fact, our bounds are tight in the sense that lowering the degree or the alphabet size yields linear time solvable problems.</p><p>An interesting corollary is that exact and approximate matching are equally hard (i.e., quadratic time) in graphs under <sans-serif>SETH</sans-serif>. In comparison, the same problems restricted to strings have linear time vs quadratic time solutions, respectively (approximate pattern matching having also a matching <sans-serif>SETH</sans-serif> lower bound (Backurs and Indyk, STOC’15)).</p><p></p>\",\"PeriodicalId\":50922,\"journal\":{\"name\":\"ACM Transactions on Algorithms\",\"volume\":\"8 1\",\"pages\":\"\"},\"PeriodicalIF\":0.9000,\"publicationDate\":\"2023-04-12\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"ACM Transactions on Algorithms\",\"FirstCategoryId\":\"94\",\"ListUrlMain\":\"https://doi.org/https://dl.acm.org/doi/10.1145/3588334\",\"RegionNum\":3,\"RegionCategory\":\"计算机科学\",\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"Q3\",\"JCRName\":\"COMPUTER SCIENCE, THEORY & METHODS\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"ACM Transactions on Algorithms","FirstCategoryId":"94","ListUrlMain":"https://doi.org/https://dl.acm.org/doi/10.1145/3588334","RegionNum":3,"RegionCategory":"计算机科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q3","JCRName":"COMPUTER SCIENCE, THEORY & METHODS","Score":null,"Total":0}
引用次数: 0

摘要

标记图中的精确字符串匹配问题是搜索图G=(V, E)的路径,使其节点标签的连接等于给定的模式字符串P[1.m]。这个基本问题可以在计算生物学中更复杂的变异图操作、图形数据库中的查询操作和异构网络中的分析操作的核心中找到。我们证明了一个条件下界,说明对于任意常数ε >0, O(|E|1 - ε m)时间,或O(|E| m1 - ε)时间算法用于图中精确字符串匹配,节点标签和从二进制字母表中绘制的模式,除非强指数时间假设(SETH)为假,否则无法实现。即使限制到最大节点度为2的无向图(即双向字符串中的之字形匹配),或者节点最大度和出度为3的确定性有向无环图,这一点也是成立的。这些受限制的情况使得下界比正则表达式匹配的相关边界直接推导出来的下界更严格(Backurs和Indyk, FOCS ' 16)。事实上,我们的界限很紧,因为降低度或字母大小会产生线性时间可解的问题。一个有趣的推论是,在SETH下的图中,精确匹配和近似匹配同样困难(即二次时间)。相比之下,限制于字符串的相同问题分别具有线性时间和二次时间解(近似模式匹配也具有匹配的SETH下界(Backurs和Indyk, STOC ' 15))。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
On the Complexity of String Matching for Graphs

Exact string matching in labeled graphs is the problem of searching paths of a graph G=(V, E) such that the concatenation of their node labels is equal to a given pattern string P[1.m]. This basic problem can be found at the heart of more complex operations on variation graphs in computational biology, of query operations in graph databases, and of analysis operations in heterogeneous networks.

We prove a conditional lower bound stating that, for any constant ε > 0, an O(|E|1 - ε m) time, or an O(|E| m1 - ε)time algorithm for exact string matching in graphs, with node labels and pattern drawn from a binary alphabet, cannot be achieved unless the Strong Exponential Time Hypothesis (SETH) is false. This holds even if restricted to undirected graphs with maximum node degree 2—that is, to zig-zag matching in bidirectional strings, or to deterministic directed acyclic graphs whose nodes have maximum sum of indegree and outdegree 3. These restricted cases make the lower bound stricter than what can be directly derived from related bounds on regular expression matching (Backurs and Indyk, FOCS’16). In fact, our bounds are tight in the sense that lowering the degree or the alphabet size yields linear time solvable problems.

An interesting corollary is that exact and approximate matching are equally hard (i.e., quadratic time) in graphs under SETH. In comparison, the same problems restricted to strings have linear time vs quadratic time solutions, respectively (approximate pattern matching having also a matching SETH lower bound (Backurs and Indyk, STOC’15)).

求助全文
通过发布文献求助,成功后即可免费获取论文全文。 去求助
来源期刊
ACM Transactions on Algorithms
ACM Transactions on Algorithms COMPUTER SCIENCE, THEORY & METHODS-MATHEMATICS, APPLIED
CiteScore
3.30
自引率
0.00%
发文量
50
审稿时长
6-12 weeks
期刊介绍: ACM Transactions on Algorithms welcomes submissions of original research of the highest quality dealing with algorithms that are inherently discrete and finite, and having mathematical content in a natural way, either in the objective or in the analysis. Most welcome are new algorithms and data structures, new and improved analyses, and complexity results. Specific areas of computation covered by the journal include combinatorial searches and objects; counting; discrete optimization and approximation; randomization and quantum computation; parallel and distributed computation; algorithms for graphs, geometry, arithmetic, number theory, strings; on-line analysis; cryptography; coding; data compression; learning algorithms; methods of algorithmic analysis; discrete algorithms for application areas such as biology, economics, game theory, communication, computer systems and architecture, hardware design, scientific computing
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信