This paper is about the length of the longest path in directed acyclic graph (DAG) with random edge lengths, where and . When the edge lengths are mutually independent and uniformly distributed, the problem of computing the distribution function $\Pr[X_{\rm MAX}\le x]#G$ is a directed path. In this case, is equal to the volume of the knapsack polytope, an -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 in case the treewidth of is at most a constant . The running time of our algorithm is to achieve a multiplicative approximation ratio . Before our FPTAS, we present a fundamental formula that represents by at most repetitions of definite integrals. Moreover, in case the edge lengths follow the mutually independent standard exponential distribution, we show a time exact algorithm. For random edge lengths satisfying certain conditions, we also show that computing is fixed parameter tractable if we choose treewidth , the additive error , and as the parameters.

生成讲解博客的中文版本

生成AI智能校验的中文版本