Space-Optimal Algorithms for Spanning Forests in Dynamic Streams at Every Confidence Level: With and Without Deletion Constraints
arXiv:2611.04365
Abstract
We characterize the optimal space for one-pass spanning-forest computation in dynamic streams of -vertex simple graphs with failure probability at most . Nelson and Yu proved an -bit lower bound, establishing the AGM algorithm's optimality for each fixed and . We resolve the remaining high-confidence regime: for every , matching lower bounds and an algorithm give \[ Θ\!\left(\min\left\{v^2,\;v\log(v/δ)\log^2\!\left(2+\frac{v}{\log(v/δ)}\right)\right\}\right) \] bits, improving space by up to a factor of in this regime. We also study streams with at most previously inserted edges deleted and not yet reinserted at report time, where the integer is given in advance. Total deletions, restorations, and intermediate absence counts are unrestricted. For a single report and every , matching lower bounds and a one-pass randomized algorithm yield optimal space bits, where and \[ \mathcal L(v,Z,t)=v\log v\min\{\log^2v,\log^2(Z+2)\} +vt\log\!\left(1+\frac{x_Z(t)}t\right)\log\!\left(1+\frac v{x_Z(t)}\right). \] At zero error, a lower bound for all zero-error algorithms and a matching deterministic algorithm give optimal space \[ Θ\!\left(\min\{v^2,v(Z+1)\log(1+v/(Z+1))\}\right) \] bits. Together, these results characterize the memory required across all confidence levels and report-time edge-loss bounds.