On Dynamic Graph Algorithms with Predictions
Abstract
We study dynamic algorithms in the model of algorithms with predictions. We assume the algorithm is given imperfect predictions regarding future updates, and we ask how such predictions can be used to improve the running time. This can be seen as a model interpolating between classic online and offline dynamic algorithms. Our results give smooth tradeoffs between these two extreme settings. First, we give algorithms for incremental and decremental transitive closure and approximate APSP that take as an additional input a predicted sequence of updates (edge insertions, or edge deletions, respectively). They preprocess it in time, and then handle updates in worst-case time and queries in worst-case time. Here is an error measure that can be bounded by the maximum difference between the predicted and actual insertion (deletion) time of an edge, i.e., by the -error of the predictions. The second group of results concerns fully dynamic problems with vertex updates, where the algorithm has access to a predicted sequence of the next updates. We show how to solve fully dynamic triangle detection, maximum matching, single-source reachability, and more, in worst-case update time. Here denotes how much earlier the -th update occurs than predicted. Our last result is a reduction that transforms a worst-case incremental algorithm without predictions into a fully dynamic algorithm which is given a predicted deletion time for each element at the time of its insertion. As a consequence we can, e.g., maintain fully dynamic exact APSP with such predictions in worst-case vertex insertion time and worst-case vertex deletion time (for the prediction error defined as above).
Cite
@article{arxiv.2307.09961,
title = {On Dynamic Graph Algorithms with Predictions},
author = {Jan van den Brand and Sebastian Forster and Yasamin Nazari and Adam Polak},
journal= {arXiv preprint arXiv:2307.09961},
year = {2023}
}
Comments
To appear in proceedings of SODA 2024. Abstract shortened to meet arXiv requirements