When a graph represents a global social network or a web-scale crawl, it often contains billions of edges ($m$) but only millions of vertices ($n$). In these "planetary-scale" scenarios, the graph is too large to fit in a single machine's RAM. Traditional algorithms that require random access to the full edge set fail immediately.
The semi-streaming model provides a solution by restricting memory usage to $O(n \cdot \text{polylog } n)$. This allows an algorithm to store information about every vertex, but only a tiny fraction of the edges. The data arrives as a "stream"—a sequence of edge insertions or deletions—and the algorithm must process it in one or a few sequential passes.
The Core Intuition: Vertex-Centric Summaries
The fundamental challenge of semi-streaming is that you cannot "see" the whole graph at once. To solve global problems like finding a maximum matching or counting triangles, you must build a compact summary (a "sketch" or "sparsifier") that preserves the graph's essential structure using only vertex-level memory.
For example, in Efficient semi-streaming algorithms for local triangle counting in massive graphs, Luca Becchetti and colleagues use min-wise independent permutations (min-hashing) to estimate local clustering. Instead of storing every neighbor of a node, they store a "signature" of the neighborhood. If two nodes share many neighbors (forming many triangles), their signatures will likely match. This transforms a massive structural search into a simple bit-string comparison.
Sparsification: Keeping the Skeleton
If we cannot store the whole graph, can we store a "skeleton" that behaves like the original? This is the idea behind graph sparsification.
Ashish Goel and Ian Post demonstrated in Single pass sparsification in the streaming model with edge deletions that it is possible to maintain a "cut sparsifier" in a single pass. By combining graph sketching with sparse recovery, they preserve the weights of all cuts in the graph using space nearly proportional to $n$. Similarly, Arnold Filtser and Mikhail Makarov introduced "power cut sparsifiers" to maintain expander decompositions in dynamic streams, allowing researchers to treat a massive, messy graph as a collection of well-connected clusters.
The Pass-Efficiency Trade-off
Some problems are mathematically impossible to solve in a single pass with $O(n)$ memory. For these, researchers look for the minimum number of passes required to reach a high-quality approximation.
A breakthrough by Sepehr Assadi and others in O(log log n) Passes is Optimal for Semi-Streaming Maximal Independent Set settled a decade-old question: finding a Maximal Independent Set (MIS) requires exactly $\Theta(\log \log n)$ passes. This "pass complexity" represents the cost of global coordination; each pass allows information to travel slightly further across the graph's topology.
For the Single-Source Shortest Path (SSSP) problem, Sepehr Assadi, Gary Hoppenworth, and Janani Sundaresan recently showed in Better Bounds for Semi-Streaming Single-Source Shortest Paths that a $(1+\epsilon)$-approximation can be achieved in $O(\log^2 n)$ passes using Multiplicative Weight Updates (MWU). This framework allows the algorithm to "learn" the shortest paths by iteratively penalizing edges that don't contribute to the optimal route.
Breaking Barriers in Coloring and Matching
Two of the most studied problems in this area are Vertex Coloring and Maximum Matching.
- Coloring: Standard algorithms require knowing the colors of all neighbors. In a stream, you might see an edge between $u$ and $v$ long after you've colored $u$. Sepehr Assadi and Sanjeev Khanna introduced the Palette-Sparsification Theorem in Sublinear Algorithms for (Δ+ 1) Vertex Coloring. They proved that if every vertex simply picks a small, random subset of colors (a "palette") at the start, a valid $(\Delta+1)$ coloring almost certainly exists within those restricted choices. This reduces a global coordination problem to a local sampling problem.
- Matching: Finding the largest set of non-adjacent edges is difficult because accepting one edge might prevent you from accepting two better ones later. Ariel Szarf in Maximum Matching Sans Maximal Matching and Mohammad Saneian in Streaming Edge Coloring with Asymptotically Optimal Colors have pushed the boundaries of how many edges we must "remember" to guarantee a near-optimal matching. Aaron Sidford and colleagues further optimized this by treating matching as a continuous optimization problem, achieving $(1-\epsilon)$-approximations in a near-optimal number of passes.
Why It Works: The Birthday Paradox and Heavy Hitters
Intuition for these algorithms often comes from probability. C. Seshadhri and Ali Pinar showed in A space efficient streaming algorithm for triangle counting using the birthday paradox that you don't need to store many edges to find triangles. Just as you only need 23 people to likely find a shared birthday, you only need to sample a tiny fraction of edges to "catch" the closing edge of a triangle.
By focusing on "heavy hitters"—the most significant eigenvalues or the densest subgraphs—researchers like Malay Bhattacharyya and David P. Woodruff have turned graph analysis from a problem of exhaustive search into one of statistical estimation. The result is a toolkit that allows us to reason about the structure of the entire internet using the memory of a single laptop.