The Distribution Function of the Longest Path Length in Constant Treewidth DAGs with Random Edge Length

This paper is about the length $X_{\rm MAX}$ of the longest path in directed acyclic graph (DAG) $G=(V,E)$ that have random edge lengths, where $|V|=n$ and $|E|=m$. Especially, when the edge lengths are mutually independent and uniformly distributed, the problem of computing the distribution function $\Pr[X_{\rm MAX}\le x]$ is known to be $\#$P-hard even in case $G$ is a directed path. This is because $\Pr[X_{\rm MAX}\le x]$ is equal to the volume of the knapsack polytope, an $m$-dimensional unit hypercube truncated by a halfspace. In this paper, we show that there is a {\em deterministic} fully polynomial time approximation scheme (FPTAS) for computing $\Pr[X_{\rm MAX}\le x]$ in case the treewidth of $G$ is bounded by a constant $k$, where there may be exponentially many $s-t$ paths in $G$. The running time of our algorithm is $O(k^2 n(\frac{(4k+2)mn}{\epsilon})^{4k^2+5k+1})$ to achieve a multiplicative approximation ratio $1+\epsilon$. On the way to show our FPTAS, we show a fundamental formula that represents $\Pr[X_{\rm MAX}\le x]$ by at most $n-1$ repetition of definite integrals. This also leads us to more results. In case the edge lengths obey the mutually independent standard exponential distribution, we show that there exists a $((4k+2)mn)^{O(k)}$ time exact algorithm. We also show, for random edge lengths satisfying certain conditions, that computing $\Pr[X_{\rm MAX}\le x]$ is fixed parameter tractable if we choose treewidth $k$, the additive error $\epsilon'$ and $x$ as the parameters.

[1]  Ronald L. Rivest,et al.  Introduction to Algorithms , 1990 .

[2]  J. J. Martin Distribution of the Time Through a Directed, Acyclic Network , 1965 .

[3]  Shuji Kijima,et al.  An FPTAS for the Volume Computation of 0-1 Knapsack Polytopes Based on Approximate Convolution , 2015, Algorithmica.

[4]  Eric Vigoda,et al.  A Deterministic Polynomial-Time Approximation Scheme for Counting Knapsack Solutions , 2010, SIAM J. Comput..

[5]  R. Courant,et al.  Introduction to Calculus and Analysis , 1991 .

[6]  Zoltán Füredi,et al.  Computing the volume is difficult , 1986, STOC '86.

[7]  Vianey Villamizar An Introduction to the Calculus , 1926, Nature.

[8]  Sanjeev Arora,et al.  Computational Complexity: A Modern Approach , 2009 .

[9]  Kunihiko Sadakane,et al.  Computing the Exact Distribution Function of the Stochastic Longest Path Length in a DAG , 2009, TAMC.

[10]  Parikshit Gopalan,et al.  Polynomial-Time Approximation Schemes for Knapsack and Related Counting Problems using Branching Programs , 2010, Electron. Colloquium Comput. Complex..

[11]  Paul D. Seymour,et al.  Graph minors. V. Excluding a planar graph , 1986, J. Comb. Theory B.

[12]  Eric Vigoda,et al.  An FPTAS for #Knapsack and Related Counting Problems , 2011, 2011 IEEE 52nd Annual Symposium on Foundations of Computer Science.

[13]  György Elekes,et al.  A geometric inequality and the complexity of computing volume , 1986, Discret. Comput. Geom..

[14]  Jian Li,et al.  A fully polynomial-time approximation scheme for approximating a sum of random variables , 2013, Oper. Res. Lett..

[15]  Santosh S. Vempala,et al.  Bypassing KLS: Gaussian Cooling and an O^*(n3) Volume Algorithm , 2015, STOC.

[16]  Jane N. Hagstrom,et al.  Computational complexity of PERT problems , 1988, Networks.

[17]  Hans L. Bodlaender,et al.  A linear time algorithm for finding tree-decompositions of small treewidth , 1993, STOC.

[18]  Santosh S. Vempala,et al.  Simulated annealing in convex bodies and an O*(n4) volume algorithm , 2006, J. Comput. Syst. Sci..

[19]  David Blaauw,et al.  Statistical Timing Analysis: From Basic Principles to State of the Art , 2008, IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems.

[20]  Robin Thomas,et al.  Directed Tree-Width , 2001, J. Comb. Theory, Ser. B.

[21]  Martin E. Dyer,et al.  A random polynomial-time algorithm for approximating the volume of convex bodies , 1991, JACM.

[22]  Emmanuel Jeannot,et al.  Correlation-Aware Heuristics for Evaluating the Distribution of the Longest Path Length of a DAG with Random Weights , 2016, IEEE Transactions on Parallel and Distributed Systems.

[23]  D. Malcolm,et al.  Application of a Technique for Research and Development Program Evaluation , 1959 .

[24]  Martin E. Dyer,et al.  On the Complexity of Computing the Volume of a Polyhedron , 1988, SIAM J. Comput..

[25]  Kazimierz Kuratowski Introduction to Calculus , 1964 .

[26]  Ei Ando An FPTAS for Computing the Distribution Function of the Longest Path Length in DAGs with Uniformly Distributed Edge Lengths , 2017, WALCOM.