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.
Sensitive Distance and Reachability Oracles for Large Batch Updates
在敏感距离预言问题中,有三个阶段。我们首先预处理一个给定的有向图$G$与$n$节点和整数权重从$[-W,W]$。其次,给定一批$f$边插入和删除,我们更新数据结构。第三,给定查询节点对$(u,v)$,返回从$u$到$v$的距离。在称为敏感可达性预言机问题的更简单问题中,我们只询问是否存在从$u$到$v$的有向路径。我们的第一个结果是一个敏感的距离预言与$\tilde{O}(Wn^{ω+(3-ω)μ})$预处理时间,$\tilde{O}(Wn^{2-μ}f^{2}+Wnf^ω)$更新时间,和$\tilde{O}(Wn^{2-μ}f+Wnf^{2})$查询时间,其中参数$μ\in[0,1]$可以选择。数据结构需要$O(Wn^{2+μ} \log n)$位的内存。这是第一个可以处理$f\ge\log n$更新的算法。之前的结果(例如[Demetrescu et al. SICOMP'08; Bernstein and Karger SODA'08 and FOCS'09; Duan and Pettie SODA'09; Grandoni and Williams FOCS'12])最多可以处理2次更新。当$3\le f\le\log n$,唯一的非平凡算法是由[Weimann和Yuster FOCS'10]。当$W=\tilde{O}(1)$,我们的算法同时提高了他们的预处理时间,更新…
Parallel Minimum Cost Flow in Near-Linear Work and Square Root Depth for Dense Instances
Georgia Institute of Technology(佐治亚理工学院);Karlsruhe Institute of Technology(卡尔斯鲁厄理工学院);Max Planck Institute for Informatics and Saarland University(马克斯·普朗克 informatics 研究所和萨尔兰大学);TU Graz(格拉茨科技大学)