基于SAT的正则图模式匹配算法
SAT-Based Algorithms for Regular Graph Pattern Matching
AI总结:
针对图同构仅能校验严格相等、无法检测复杂结构性质的局限,研究提出受正则表达式启发的正则图模式ReGaP及基于SAT的匹配算法,还设计了预处理优化技术,经CodeSearchNet基准实验验证有效。
摘要:
图匹配是模式识别中的一个基础问题,在软件分析、计算生物学等领域有诸多应用。图同构是一类广为人知的图匹配问题,其核心是判定两个图是否完全相同。尽管图同构具备实用价值,但通过它可检验的图性质相当有限,因为它仅支持两个图之间的严格相等性校验。例如,它无法用于检验复杂的结构性质,比如目标图是否为“任意长度的序列后接任意大小的环”这类结构。\n 我们提出了一种图同构的泛化形式,可通过声明式规范检验上述复杂性质。该规范以正则图模式(Regular Graph Pattern,ReGaP)的形式给出——这是受正则表达式启发的一类特殊图,可包含通配符节点,用于表示可变长度序列、子图等任意结构。我们提出了一种基于SAT的算法,用于检验目标图是否匹配给定的ReGaP。我们还提出了一种提升算法性能的预处理技术,并在CodeSearchNet数据集的基准测试上开展了大量实验评估,验证了该技术的效果。
英文摘要:
Graph matching is a fundamental problem in pattern recognition, with many applications such as software analysis and computational biology. One well-known type of graph matching problem is graph isomorphism, which consists of deciding if two graphs are identical. Despite its usefulness, the properties that one may check using graph isomorphism are rather limited, since it only allows strict equality checks between two graphs. For example, it does not allow one to check complex structural properties such as if the target graph is an arbitrary length sequence followed by an arbitrary size loop. We propose a generalization of graph isomorphism that allows one to check such properties through a declarative specification. This specification is given in the form of a Regular Graph Pattern (ReGaP), a special type of graph, inspired by regular expressions, that may contain wildcard nodes that represent arbitrary structures such as variable-sized sequences or subgraphs. We propose a SAT-based algorithm for checking if a target graph matches a given ReGaP. We also propose a preprocessing technique for improving the performance of the algorithm and evaluate it through an extensive experimental evaluation on benchmarks from the CodeSearchNet dataset.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。