arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2103.14688cs.DBcs.PL
收藏

一种计算它们的算法:基于统一线性代数的正则和上下文无关路径估计方法

One Algorithm to Evaluate Them All: Unified Linear Algebra Based Approach to Evaluate Both Regular and Context-Free Path Queries

Ekaterina Shemetova, Rustam Azimov, Egor Orachev, Ilya Epelbaum, Semyon Grigorev

摘要:

基于Kronecker乘积的上下文无关路径查询算法(CFPQ)由Orachev等人(2020)提出。我们将此算法简化为布尔矩阵上的操作,并将其扩展为提取所有感兴趣路径的机制。我们还证明了所提出的算法的$O(n^3/\log{n})$时间复杂度,其中n是输入图的顶点数。因此,我们提供了另一种方法来构建CFPQ的轻微次立方算法,该算法基于线性代数和增量传递闭包(经典的图论问题),而不是Chaudhuri(2008)提出的具有相同复杂度的算法。我们的评估表明,我们的算法是一个很好的候选人,是一个通用的算法,定期和上下文无关的路径查询。

英文摘要:

The Kronecker product-based algorithm for context-free path querying (CFPQ) was proposed by Orachev et al. (2020). We reduce this algorithm to operations over Boolean matrices and extend it with the mechanism to extract all paths of interest. We also prove $O(n^3/\log{n})$ time complexity of the proposed algorithm, where n is a number of vertices of the input graph. Thus, we provide the alternative way to construct a slightly subcubic algorithm for CFPQ which is based on linear algebra and incremental transitive closure (a classic graph-theoretic problem), as opposed to the algorithm with the same complexity proposed by Chaudhuri (2008). Our evaluation shows that our algorithm is a good candidate to be the universal algorithm for both regular and context-free path querying.

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

↑