Skip to content

Space-Optimal Spanning Tree Algorithms in Bounded-Deletion Streams

Tsun-Ming Cheung, Yu Hsiang, Shang-En Huang, Peng-Ting Lin, Meng-Tsung Tsai

cs.DS

Abstract

We determine the optimal single-pass space complexity of computing a spanning forest of an nn-vertex simple graph in a stream of edge insertions and at most kk deletions. For 1≤k≤n21\le k\le n^2 and any fixed failure probability 0<δ≤1/30<δ\le 1/3, the optimal randomized space is Θδ(nlog⁡n log⁡2(2k))Θ_δ(n\log n\,\log^2(2k)) bits. For every fixed c>0c>0, our upper and lower bounds match throughout the range n−c≤δ≤1/3n^{-c}\leδ\le 1/3. At δ=n−cδ=n^{-c}, the optimal space is Θc ⁣(nlog⁡2n log⁡ ⁣(1+klog⁡n))Θ_c\!\left(n\log^2 n\,\log\!\left(1+\frac{k}{\log n}\right)\right) bits. We also give a dynamic data structure with polylogarithmic worst-case update time and O(log⁡n/log⁡log⁡n)O(\log n/\log\log n) worst-case connectivity query time. For every oblivious update sequence with at most kk deletions, the probability that it maintains a spanning forest of the current graph after every update is at least 1−n−c1-n^{-c}. For the deterministic setting, we prove that for every k≥1k\ge 1, the optimal streaming space is Θ ⁣(min⁡ ⁣{n2,nklog⁡ ⁣(1+nk)})Θ\!\left(\min\!\left\{n^2, nk\log\!\left(1+\frac{n}{k}\right)\right\}\right) 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.

Create a lesson

Metadata

Comments
This manuscript is based on the submission to STACS 2027