English

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

Computational Complexity 2022-03-29 v4 Data Structures and Algorithms Probability

Abstract

This paper is about the length XMAXX_{\rm MAX} of the longest path in directed acyclic graph (DAG) G=(V,E)G=(V,E) with random edge lengths, where V=n|V|=n and E=m|E|=m. When the edge lengths are mutually independent and uniformly distributed, the problem of computing the distribution function Pr[XMAXx]\Pr[X_{\rm MAX}\le x] is known to be #\#P-hard even in case GG is a directed path. In this case, Pr[XMAXx]\Pr[X_{\rm MAX}\le x] is equal to the volume of the knapsack polytope, an mm-dimensional unit hypercube truncated by a halfspace. In this paper, we show that there is a deterministic fully polynomial time approximation scheme (FPTAS) for computing Pr[XMAXx]\Pr[X_{\rm MAX}\le x] in case the treewidth of GG is at most a constant kk. The running time of our algorithm is O(k2n(16(k+1)mn2ϵ)4k2+6k+2)O(k^2 n(\frac{16(k+1)mn^2}{\epsilon})^{4k^2+6k+2}) to achieve a multiplicative approximation ratio 1+ϵ1+\epsilon. Before our FPTAS, we present a fundamental formula that represents Pr[XMAXx]\Pr[X_{\rm MAX}\le x] by at most n1n-1 repetitions of definite integrals. Moreover, in case the edge lengths follow the mutually independent standard exponential distribution, we show a ((4k+2)mn)O(k)((4k+2)mn)^{O(k)} time exact algorithm. For random edge lengths satisfying certain conditions, we also show that computing Pr[XMAXx]\Pr[X_{\rm MAX}\le x] is fixed parameter tractable if we choose treewidth kk, the additive error ϵ\epsilon', and xx as the parameters.

Keywords

Cite

@article{arxiv.1910.09791,
  title  = {The Distribution Function of the Longest Path Length in Constant Treewidth DAGs with Random Edge Length},
  author = {Ei Ando},
  journal= {arXiv preprint arXiv:1910.09791},
  year   = {2022}
}

Comments

40 pages, 2 figures