English

A Fully Polynomial Parameterized Algorithm for Counting the Number of Reachable Vertices in a Digraph

Data Structures and Algorithms 2022-02-28 v2

Abstract

We consider the problem of counting the number of vertices reachable from each vertex in a digraph GG, which is equal to computing all the out-degrees of the transitive closure of GG. The current (theoretically) fastest algorithms run in quadratic time; however, Borassi has shown that this probl m is not solvable in truly subquadratic time unless the Strong Exponential Time Hypothesis fails [Inf. Process. Lett., 116(10):628--630, 2016]. In this paper, we present an O(f3n)\mathcal{O}(f^3n)-time exact algorithm, where nn is the number of vertices in GG and ff is the feedback edge number of GG. Our algorithm thus runs in truly subquadratic time for digraphs of f=O(n13ϵ)f=\mathcal{O}(n^{\frac{1}{3}-\epsilon}) for any ϵ>0\epsilon > 0, i.e., the number of edges is nn plus O(n13ϵ)\mathcal{O}(n^{\frac{1}{3}-\epsilon}), and is fully polynomial fixed parameter tractable, the notion of which was first introduced by Fomin, Lokshtanov, Pilipczuk, Saurabh, and Wrochna [ACM Trans. Algorithms, 14(3):34:1--34:45, 2018]. We also show that the same result holds for vertex-weighted digraphs, where the task is to compute the total weights of vertices reachable from each vertex.

Keywords

Cite

@article{arxiv.2103.04595,
  title  = {A Fully Polynomial Parameterized Algorithm for Counting the Number of Reachable Vertices in a Digraph},
  author = {Naoto Ohsaka},
  journal= {arXiv preprint arXiv:2103.04595},
  year   = {2022}
}

Comments

minor changes, acknowledgments added

R2 v1 2026-06-23T23:51:56.601Z