Skip to main content
QUICK REVIEW

[Paper Review] Faster Streaming algorithms for graph spanners

Surender Baswana|ArXiv.org|Nov 6, 2006
Complexity and Algorithms in GraphsComputer Science25 references6 citations
TL;DR

This paper presents a single-pass streaming algorithm for computing a (2k−1)-spanner in unweighted graphs with O(m) total processing time and optimal size-stretch trade-offs, and extends it to weighted graphs using the StreamSort model with O(log n) memory and O(k) passes. The key contribution is a near-optimal, efficient streaming algorithm for spanner construction with constant-time processing per edge.

ABSTRACT

Given an undirected graph $G=(V,E)$ on $n$ vertices, $m$ edges, and an integer $t\ge 1$, a subgraph $(V,E_S)$, $E_S\subseteq E$ is called a $t$-spanner if for any pair of vertices $u,v \in V$, the distance between them in the subgraph is at most $t$ times the actual distance. We present streaming algorithms for computing a $t$-spanner of essentially optimal size-stretch trade offs for any undirected graph. Our first algorithm is for the classical streaming model and works for unweighted graphs only. The algorithm performs a single pass on the stream of edges and requires $O(m)$ time to process the entire stream of edges. This drastically improves the previous best single pass streaming algorithm for computing a $t$-spanner which requires $θ(mn^{\frac{2}{t}})$ time to process the stream and computes spanner with size slightly larger than the optimal. Our second algorithm is for {\em StreamSort} model introduced by Aggarwal et al. [FOCS 2004], which is the streaming model augmented with a sorting primitive. The {\em StreamSort} model has been shown to be a more powerful and still very realistic model than the streaming model for massive data sets applications. Our algorithm, which works of weighted graphs as well, performs $O(t)$ passes using $O(\log n)$ bits of working memory only. Our both the algorithms require elementary data structures.

Motivation & Objective

  • To design a streaming algorithm that computes a (2k−1)-spanner with near-optimal size-stretch trade-offs for unweighted graphs.
  • To extend the algorithm to handle weighted graphs in a more powerful streaming model, the StreamSort model.
  • To minimize the number of passes, working memory, and processing time per edge while maintaining near-optimal spanner size.
  • To achieve constant amortized processing time per edge in the classical streaming model.
  • To address the gap between the expected spanner size O(kn^{1+1/k}) and the conjectured optimal bound Ω(n^{1+1/k}).

Proposed method

  • Uses a clustering-based approach where vertices are grouped into clusters, and edges are processed based on their proximity to cluster centers.
  • In each iteration, vertices are sampled with probability n^{-1/k}, and edges incident to vertices in sampled clusters are considered for inclusion in the spanner.
  • For each vertex, only the lightest edge to each cluster with weight less than the distance to the nearest sampled cluster is marked as a spanner edge.
  • Employs a Stream pass to filter out non-spanner edges and a Sort pass to group both directions of undirected edges together for efficient deletion.
  • In the StreamSort model, multiple passes are used: one sort pass to group edges by vertex, followed by stream passes to assign cluster centers and update edge metadata.
  • The algorithm maintains lcenter and rcenter for each edge to track cluster membership and ensures consistent path approximation across passes.

Experimental results

Research questions

  • RQ1Can a (2k−1)-spanner be computed in a single pass over the edge stream with O(m) total processing time for unweighted graphs?
  • RQ2Can the streaming algorithm be extended to weighted graphs while maintaining low memory and pass complexity?
  • RQ3Is it possible to achieve O(log n) working memory and O(k) passes in the StreamSort model for computing a (2k−1)-spanner?
  • RQ4What is the trade-off between spanner size and algorithmic efficiency in streaming models?
  • RQ5Can the multiplicative factor k in the spanner size O(kn^{1+1/k}) be eliminated in streaming algorithms?

Key findings

  • The proposed single-pass streaming algorithm for unweighted graphs runs in O(m) total time, achieving constant amortized processing time per edge.
  • The algorithm computes a (2k−1)-spanner of expected size O(kn^{1+1/k}) with optimal size-stretch trade-offs.
  • In the StreamSort model, the algorithm computes a (2k−1)-spanner for weighted graphs using O(k) passes and O(log n) working memory.
  • The expected size of the spanner is O(min(m, kn^{1+1/k})), matching the conjectured lower bound up to a factor of k.
  • The algorithm maintains correctness through an inductive argument on clusterings, ensuring that any deleted edge has a (2k−1)-edge path in the spanner.
  • The method achieves near-optimality in all efficiency metrics: passes, memory, processing time, and spanner size.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.