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

快速实用的可达性应用DAG分解

Fast and Practical DAG Decomposition with Reachability Applications

Giorgos Kritikakis, Ioannis G. Tollis

摘要:

我们提出了实用的线性和几乎线性时间算法来计算链分解的有向无环图(DAG),$G=(V,E)$。计算的顶点不相交链的数量非常接近最小值。我们的算法的时间复杂度是$O(|E|+c*l)$,其中$c$是路径连接的数目,$l$是图的最长路径的长度。我们在以下章节中对$c$和$l$因子进行了全面的解释。我们的技术在许多领域都有重要的应用,包括设计更快的实用传递闭包算法。我们观察到,$|E_{red}|\leq width*|V|$($E_{red}$:非传递的边缘),并显示如何找到一个相当大的子集$E_{tr}$(传递的边缘)使用链分解在线性时间,而不计算传递的封闭。我们广泛的实验结果表明,在各种模型的图的宽度,$E_{red}$,$E_{tr}$之间的相互作用。我们展示了如何在$O(k_c*|E_{red}|)$时间内计算可达性索引方案,其中$k_c$是链的数量,$|E_{red}|$是非传递边的数量。该方案可以在恒定的时间内回答可达性查询。该方案的空间复杂度为$O(k_c*|V|)$。实验结果表明,我们的方法在实践中甚至比理论上的界限意味着更好,表明如何快速链分解算法可以应用到传递闭包问题。

英文摘要:

We present practical linear and almost linear-time algorithms to compute a chain decomposition of a directed acyclic graph (DAG), $G=(V,E)$. The number of vertex-disjoint chains computed is very close to the minimum. The time complexity of our algorithm is $O(|E|+c*l)$, where $c$ is the number of path concatenations and $l$ is the length of a longest path of the graph. We give a comprehensive explanation on factors $c$ and $l$ in the following sections. Our techniques have important applications in many areas, including the design of faster practical transitive closure algorithms. We observe that $|E_{red}|\leq width*|V|$ ($E_{red}$: non-transitive edges) and show how to find a substantially large subset of $E_{tr}$ (transitive edges) using a chain decomposition in linear time, without calculating the transitive closure. Our extensive experimental results show the interplay between the width, $E_{red}$, $E_{tr}$ in various models of graphs. We show how to compute a reachability indexing scheme in $O(k_c*|E_{red}|)$ time, where $k_c$ is the number of chains and $|E_{red}|$ is the number of non-transitive edges. This scheme can answer reachabilitiy queries in constant time. The space complexity of the scheme is $O(k_c*|V|)$. The experimental results reveal that our methods are even better in practice than the theoretical bounds imply, indicating how fast chain decomposition algorithms can be applied to the transitive closure problem.

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

↑