Incremental Topological Ordering and Cycle Detection with Predictions
Not on the map. Why?
Abstract (arXiv)
This paper leverages the framework of algorithms-with-predictions to design data structures for two fundamental dynamic graph problems: incremental topological ordering and cycle detection. In these problems, the input is a directed graph on n nodes, and the m edges arrive one by one. The data structure must maintain a topological ordering of the vertices at all times and detect if the newly inserted edge creates a cycle. The theoretically best worst-case algorithms for these problems have high update cost (polynomial in n and m). In practice, greedy heuristics (that recompute the solution from scratch each time) perform well but can have high update cost in the worst case. In this paper, we bridge this gap by leveraging predictions to design a learned new data structure for the problems. Our data structure guarantees consistency, robustness, and smoothness with respect to predictions -- that is, it has the best possible running time under perfect predictions, never performs worse than the best-known worst-case methods, and its running time degrades smoothly with the prediction error. Moreover, we demonstrate empirically that predictions, learned from a very small training dataset, are sufficient to provide significant speed-ups on real datasets.
Key facts. Cited by 4 papers in the map (data through 14 Oct 2026). First posted on arXiv 16 Feb 2024.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2024: 1; 2025: 1; 2026: 2.
4 papers.
- 2024Binary Search with Distributional Predictionscited by 11
- 2025Incremental Approximate Single-Source Shortest Paths with Predictionscited by 3
- 2026Incremental Strongly Connected Components with Predictionscited by 0
- 2026Learning-Augmented Algorithms: Guarantees, Construction Mechanisms, and System-Level Implicationscited by 0
- 2026Learning-Augmented Algorithms: Guarantees, Construction Mechanisms, and System-Level Implications4 Sep 2026
- 2026Incremental Strongly Connected Components with Predictions28 Apr 2026
- 2025Incremental Approximate Single-Source Shortest Paths with Predictions12 Feb 2025
- 2024Binary Search with Distributional Predictions25 Nov 2024