We study the reachability problem in append-only DAGs: given two nodes u and v, is there a path from u to v? While the problem is linear in general, it can be answered faster by using a precomputed index, which gives a compressed representation of the transitive closure of the graph. Index algorithms are evaluated on three dimensions: the query time that the algorithm needs to answer whether there is a path from one node to another, the memory that the index uses per node, and the indexing time that is required to update the index when a node is added to the graph. In this paper, we combine Jagadish’s static index [Jagadish, 1990] with Felsner’s online chain-decomposition algorithm [Stefan Felsner, 1997] to create an incremental index: data associated with a node is immutable, guaranteeing that queries are answered properly even if new nodes are inserted while the query is processed. Its query time is constant, but its index size is heavily dependent on the graph width, and as such is not competitive with recent indexing algorithms (2-hop, tree-chain, ...). We also propose a version of that incremental algorithm with a much lighter index. In the most compressed version, the query time becomes O(log n). However, constant-time queries can be retained depending on the desired time/memory trade-off.
@InProceedings{bulteau_et_al:LIPIcs.SEA.2025.9, author = {Bulteau, Laurent and David, Pierre-Yves and Horn, Florian and Tran-Girard, Euxane}, title = {{Incremental Reachability Index}}, booktitle = {23rd International Symposium on Experimental Algorithms (SEA 2025)}, pages = {9:1--9:16}, series = {Leibniz International Proceedings in Informatics (LIPIcs)}, ISBN = {978-3-95977-375-1}, ISSN = {1868-8969}, year = {2025}, volume = {338}, editor = {Mutzel, Petra and Prezza, Nicola}, publisher = {Schloss Dagstuhl -- Leibniz-Zentrum f{\"u}r Informatik}, address = {Dagstuhl, Germany}, URL = {https://drops.dagstuhl.de/entities/document/10.4230/LIPIcs.SEA.2025.9}, URN = {urn:nbn:de:0030-drops-232477}, doi = {10.4230/LIPIcs.SEA.2025.9}, annote = {Keywords: Directed acyclic graphs, reachability, append-only, index} }
Feedback for Dagstuhl Publishing