Abstract
We consider the fundamental problems of reachability shortcuts and compression schemes of the transitive closure (TC) of n-vertex directed acyclic graphs (DAGs) G when we are allowed to neglect the distance (or reachability) constraints for an ϵ fraction of the pairs in the transitive closure of G, denoted by TC(G). Shortcuts with Slack. For a directed graph G = (V, E), a d-reachability shortcut is a set of edges H ⊆ TC(G), whose addition decreases the directed diameter of G to be at most d. We introduce the notion of shortcuts with slack which provide the desired distance bound d for all but a small fraction ϵ of the vertex pairs in TC(G). For ϵ ∈ (0, 1), a (d, ϵ)-shortcut H ⊆ TC(G) is a subset of edges with the property that distG∪H(u, v) ≤ d for at least (1 − ϵ) fraction of the (u, v) pairs in TC(G). Our constructions hold for any DAG G and their size bounds are parameterized by the width of the graph G defined by the smallest number of directed paths in G that cover all vertices in G. For every ϵ ∈ (0, 1] and integer d ≥ 5, every n-vertex DAG G of width ω admits a (d, ϵ)-shortcut of size Oe(ω2/(ϵd)+n). A more delicate construction yields a (3, ϵ)-shortcut of size Oe(ω2/(ϵd)+n/ϵ), hence of linear size for ω ≤ √n. We show that without a slack (i.e., for ϵ = 0), graphs with ω ≤ √n cannot be shortcut to diameter below n1/6 using a linear number of shortcut edges. There exists an n-vertex DAG G for which any (3, ϵ = 1/2 √log ω)-shortcut set has Ω(ω2/2 √log ω + n) edges. Hence, for d = Oe(1), our constructions are almost optimal. Approximate TC Representations. A key application of our shortcut's constructions is a (1−ϵ)-approximate all-successors data structure which given a vertex v, reports a list containing (1 − ϵ) fraction of the successors of v in the graph. We present a Oe(ω2/ϵ + n)-space data structure with a near linear (in the output size) query time. Using connections to Error Correcting Codes, we also present a near-matching space lower bound of Ω(ω2 + n) bits (regardless of the query time) for constant ϵ. This improves upon the state-of-the-art space bounds of O(ω · n) for ϵ = 0 by the prior work of Jagadish [ACM Trans. Database Syst., 1990].
Original language | English |
---|---|
Title of host publication | 32nd Annual European Symposium on Algorithms, ESA 2024 |
Editors | Timothy Chan, Johannes Fischer, John Iacono, Grzegorz Herman |
Publisher | Schloss Dagstuhl- Leibniz-Zentrum fur Informatik GmbH, Dagstuhl Publishing |
ISBN (Electronic) | 9783959773386 |
DOIs | |
Publication status | Published - 23 Sept 2024 |
Event | 32nd Annual European Symposium on Algorithms, ESA 2024 - London, United Kingdom Duration: 2 Sept 2024 → 4 Sept 2024 |
Publication series
Series | Leibniz International Proceedings in Informatics, LIPIcs |
---|---|
Volume | 308 |
ISSN | 1868-8969 |
Conference
Conference | 32nd Annual European Symposium on Algorithms, ESA 2024 |
---|---|
Country/Territory | United Kingdom |
City | London |
Period | 2/9/24 → 4/9/24 |
Funding
This project is funded by the European Research Council (ERC) under the European Union’s Horizon 2020 research and innovation programme (grant agreement No. 949083), and by the Israeli Science Foundation (ISF), grant No. 2084/18.
All Science Journal Classification (ASJC) codes
- Software