Sublinear Streaming via Random Order Arrivals

29 concepts21 papers1 proposal

In traditional data stream processing, algorithms must assume an adversarial input order. To guard against worst-case sequences designed to exploit memory bottlenecks, streaming models are often forced to maintain large, complex data structures. However, in many real-world scenarios, data arrives in a non-adversarial, stochastic sequence.

By modeling the input stream as a uniformly random permutation of elements, a powerful paradigm emerges: the arrival sequence itself becomes a computational resource. Instead of treating the stream as a firehose to be defended against, a random arrival order allows single-pass algorithms to achieve the space and time complexities of offline or multi-pass algorithms. As demonstrated by Sudipto Guha et al. in Space-Efficient Sampling, trading a slight increase in sample size for a massive reduction in storage space becomes possible when data arrives in a random order rather than an adversarial one.

The Prefix as a Representative Sketch

Why does a random order fundamentally change memory requirements? The first core intuition is that the past predicts the future. In a random permutation, any initial prefix of the stream is a statistically unbiased, representative sample of the entire dataset.

This property allows an algorithm to use the beginning of a single pass to establish global baselines, which are then used to filter or process the remaining data:

Simulating Multi-Pass Iterations Across Time

Many classic algorithms—such as gradient descent, power iteration, or greedy submodular maximization—are inherently iterative, requiring multiple passes over a dataset. In an adversarial stream, multi-pass processing requires either storing the data or physically re-reading the stream. In a random-order stream, however, time can substitute for space.

Because information is distributed evenly across a random permutation, sequential blocks of a single pass can be treated as independent, representative sketches of the full dataset. This allows single-pass algorithms to simulate multi-round offline procedures:

Passive Streams as Active Oracles

In graph streaming, computing structural properties (like matchings, triangles, or page rank) typically requires random access to the graph's adjacency list—an operation that normally demands linear space relative to the number of vertices or edges. Random-order streaming transforms the passive observation of edges into an implicit random neighbor oracle.

Instead of actively querying a vertex's neighbors, an algorithm can simply wait for the next relevant edge to appear in the stream, confident that the uniform arrival order provides an unbiased sample:

The Dual Perspective: Virtual Random Ordering

The relationship between random arrival order and sublinear computation is so profound that it can be applied in reverse. When dealing with static datasets where local queries are required, algorithms can impose a virtual random order to simplify computation.

As explored by Aviad Rubinstein et al. in Converting online algorithms to local computation algorithms, assigning a random rank between 0 and 1 to every input element creates a virtual sequential arrival order. This allows local computation algorithms to simulate the execution of an online algorithm as if the data were streaming in a randomized sequence, providing a unified bridge between online processing and sublinear local exploration.

Logarithmic Growth and Pruning

Finally, random permutations guarantee that the frequency of structural updates slows down dramatically over time. In geometric problems like computing an approximate convex hull, Vladimir Braverman et al. show in Approximate Convex Hull of Data Streams that an add-and-prune strategy benefits from a logarithmic growth pattern in updates.

Because later points are highly likely to fall inside the boundaries established by earlier points, the algorithm can safely discard the vast majority of incoming data with minimal verification, keeping the memory footprint strictly bounded.

Key Foundational Work

Space-Efficient Sampling (2007) — contributed 1 concept elements to this direction.
The DBO database system (2008) — contributed 1 concept elements to this direction.
History & citationVersion 1 · 2026-10-04

Current · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_random_order_stream_processing_23c24769,
  title = {random-order stream processing},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/random-order-stream-processing/rdr_23c24769610347efaae65260024c6a70},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-25},
}

This exact version (version 1, frozen text):

@misc{lacuna_random_order_stream_processing_23c24769_v1,
  title = {random-order stream processing},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/random-order-stream-processing/rdr_23c24769610347efaae65260024c6a70/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-11-25},
}
About

These directions overlap with this one through shared papers.

See something wrong? Report a mistake