Fast and Practical DAG Decomposition with Reachability Applications

Abstract

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 |Ered|≤ width*|V| (Ered: non-transitive edges) and show how to find a substantially large subset of Etr (transitive edges) using a chain decomposition in linear time, without calculating the transitive closure. Our extensive experimental results show the interplay between the width, Ered, Etr in various models of graphs. We show how to compute a reachability indexing scheme in O(kc*|Ered|) time, where kc is the number of chains and |Ered| is the number of non-transitive edges. This scheme can answer reachabilitiy queries in constant time. The space complexity of the scheme is O(kc*|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.

0

Turn this paper into a full lesson

ArcXiv compiles a staged curriculum from this paper: 8-12 lessons across beginner → advanced, synthesised section guides, visuals, flashcards, a quiz, exercises, and on-demand deep dives per section. Grounded in the abstract, never invented.

Discussion (0)

Sign in to join the discussion.

Loading comments…