Space-Optimal Spanning Tree Algorithms in Bounded-Deletion Streams

arXiv:2611.41602 · cs.DS · Submitted 2026-11-30 · Read on arXiv

cs.DS

Submitted: 2026-11-30

Updated: 2026-11-30

Comments: This manuscript is based on the submission to STACS 2027

License: http://creativecommons.org/licenses/by/4.0/

The gist: We determine the optimal single-pass space complexity of computing a spanning forest of an n-vertex simple graph in a stream of edge insertions and at most k deletions.

Abstract

We determine the optimal single-pass space complexity of computing a spanning forest of an n-vertex simple graph in a stream of edge insertions and at most k deletions. For 1 at most k at most n squared and any fixed failure probability 0<δ at most 1/3, the optimal randomized space is Θ δ(n n, 2(2k)) bits. For every fixed c>0, our upper and lower bounds match throughout the range n-c at mostδ at most 1/3. At δ=n-c, the optimal space is Θ c! (n squared n, ! (1+ k over n)) bits. We also give a dynamic data structure with polylogarithmic worst-case update time and O(n/ n) worst-case connectivity query time. For every oblivious update sequence with at most k deletions, the probability that it maintains a spanning forest of the current graph after every update is at least 1-n-c. For the deterministic setting, we prove that for every k at least 1, the optimal streaming space is Θ! (! n squared, nk ! (1+ n over k)) bits. The matching upper bound is achieved by maintaining a sparse edge-connectivity certificate. These results also provide a basis for space-efficient algorithms in the bounded-deletion model for edge- and vertex-connectivity certificates, bipartiteness testing, maximum-leaf spanning-tree sparsification, and approximate minimum spanning trees. These applications build on reductions to spanning-tree or edge-maximal spanning-forest computation, with appropriate control of the deletion bounds and failure probabilities of the resulting subroutines.

Related papers