Weizmann Logo
ECCC
Electronic Colloquium on Computational Complexity

Under the auspices of the Computational Complexity Foundation (CCF)

Login | Register | Classic Style



REPORTS > DETAIL:

Paper:

TR25-216 | 3rd December 2025 18:18

Universally Optimal Streaming Algorithm for Random Walks in Dense Graphs

RSS-Feed




TR25-216
Authors: Klim Efremenko, Gillat Kol, Raghuvansh Saxena, Zhijun Zhang
Publication: 14th December 2025 13:33
Downloads: 51
Keywords: 


Abstract:

Sampling a random walk is a fundamental primitive in many graph applications. In the streaming model, it is known that sampling an $L$-step random walk on an $n$-vertex directed graph requires $\Omega(n L)$ space, implying that no sublinear-space streaming algorithm exists for general graphs.

We show that sublinear algorithms are possible for the case of dense graphs, where every vertex has out-degree at least $\Omega(n)$. In particular, we give a one-pass turnstile streaming algorithm that uses only $\tilde{\mathcal{O}}(L)$ memory for such graphs. More broadly, for graphs with minimum out-degree at least $d$, our streaming algorithm samples a random walk using $\tilde{\mathcal{O}}(\frac{n}{d} \cdot L)$ memory.

We show that our algorithm is optimal in a strong ``beyond worst-case'' sense. To formalize this, we introduce the notion of universal optimality for graph streaming algorithms. Informally, a streaming algorithm is universally optimal if it performs (almost) as well as possible on every graph, assuming a worst-case choice of the streaming order. This notion of universal optimality is a key conceptual contribution of our work.



ISSN 1433-8092 | Imprint