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

一种求解DAG可达性问题的贪婪方法

A Greedy Approach to Answer Reachability Queries on DAGs

Nicolas Boria, Gianpiero Cabodi, Paolo Camurati, Marco Palena, Paolo Pasini, Stefano Quer

摘要:

一些现代应用程序涉及巨大的图形,并需要快速回答可达性查询。在二十多年以来的第一个建议,已经提出了几种方法,采用在线搜索,跳标签或传递闭包压缩。传递闭包压缩技术通常构造图可达性指数,例如通过将图分解成不相交的链。由于内存消耗与链的数量成正比,这些算法的目标是将图分解为最佳数量的链\width \。然而,常用的技术不能满足一般的期望,是非常复杂的,它们的应用程序在大型图是不切实际的。本文的主要贡献是一种新的方法来构建这样的可达性指标。所提出的方法分解成一个次优的链数$\widehat{c}$的图通过以下的贪婪策略。我们表明,给定一个顶点拓扑顺序,这样的分解是在$\mathcal{O}(\widehat{c} m)$时间,并要求$\mathcal{O}(\widehat{c} n)$空间,与$\widehat{c}$有界的$[c \log(\frac{n}{c})]$。我们提供的实验证据表明,在不同类别的自动生成的基准,以及从逻辑合成和形式化验证领域产生的图形,所提出的方法产生了一些链非常接近最佳,同时显着减少计算时间。

英文摘要:

Several modern applications involve huge graphs and require fast answers to reachability queries. In more than two decades since first proposals, several approaches have been presented adopting on-line searches, hop labelling or transitive closure compression. Transitive closure compression techniques usually construct a graph reachability index, for example by decomposing the graph into disjoint chains. As memory consumption is proportional to the number of chains, the target of those algorithms is to decompose the graph into an optimal number \width\ of chains. However, commonly used techniques fail to meet general expectations, are exceedingly complex, and their application on large graphs is impractical. The main contribution of this paper is a novel approach to construct such reachability indexes. The proposed method decomposes the graph into a sub-optimal number $\widehat{c}$ of chains by following a greedy strategy. We show that, given a vertex topological order, such a decomposition is obtained in $\mathcal{O}(\widehat{c} m)$ time, and requires $\mathcal{O}(\widehat{c} n)$ space, with $\widehat{c}$ bounded by $[c \log(\frac{n}{c})]$. We provide experimental evidence suggesting that, on different categories of automatically generated benchmarks as well as on graphs arising from the field of logic synthesis and formal verification, the proposed method produces a number of chains very close to the optimum, while significantly reducing computation time.

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

↑