Skip to main content
QUICK REVIEW

[Paper Review] Greedy Sequential Maximal Independent Set and Matching are Parallel on Average

Guy E. Blelloch, Jeremy T. Fineman|arXiv (Cornell University)|Feb 15, 2012
Complexity and Algorithms in GraphsComputer Science15 citations
TL;DR

This paper shows that the greedy sequential algorithms for maximal independent set (MIS) and maximal matching (MM) achieve polylogarithmic depth when vertex/edge orderings are randomized, enabling efficient parallelization. By processing prefixes of the ordering in parallel, the method achieves linear work and high speedup (14–24x on 32 cores) while deterministically reproducing the lexicographically first MIS/MM solution.

ABSTRACT

The greedy sequential algorithm for maximal independent set (MIS) loops over the vertices in arbitrary order adding a vertex to the resulting set if and only if no previous neighboring vertex has been added. In this loop, as in many sequential loops, each iterate will only depend directly on a subset of the previous iterates (i.e. knowing that any one of a vertices neighbors is in the MIS or knowing that it has no previous neighbors is sufficient to decide its fate). This leads to a dependence structure among the iterates. If this structure is shallow then running the iterates in parallel while respecting the dependencies can lead to an efficient parallel implementation mimicking the sequential algorithm. In this paper, we show that for any graph, and for a random ordering of the vertices, the dependence depth of the sequential greedy MIS algorithm is polylogarithmic (O(log^2 n) with high probability). Our results extend previous results that show polylogarithmic bounds only for random graphs. We show similar results for a greedy maximal matching (MM). For both problems we describe simple linear work parallel algorithms based on the approach. The algorithms allow for a smooth tradeoff between more parallelism and reduced work, but always return the same result as the sequential greedy algorithms. We present experimental results that demonstrate efficiency and the tradeoff between work and parallelism.

Motivation & Objective

  • To address the inefficiency of traditional parallel MIS and MM algorithms, which often outperform sequential ones only on large-scale systems.
  • To demonstrate that the simple greedy sequential algorithm for MIS and MM can be efficiently parallelized when vertex/edge orderings are randomized.
  • To provide a deterministic parallel implementation that matches the sequential greedy result (lexicographically first MIS/MM) while achieving high parallelism and low work.
  • To establish a smooth tradeoff between work and parallelism through prefix-based scheduling, enabling practical performance gains on modest processor counts.

Proposed method

  • Process vertices (for MIS) or edges (for MM) in a random order, and for each prefix of the ordering, execute the greedy algorithm in parallel.
  • For each prefix, only consider vertices/edges whose earlier neighbors (in the ordering) are not already in the solution, ensuring correctness and data independence.
  • Use a grain size (e.g., 256) to manage parallelism granularity, transitioning from sequential to parallel execution at a threshold.
  • Analyze the dependence length of the greedy algorithm using probabilistic methods to show that, with high probability, it is O(log²n) for any graph under random ordering.
  • Modify the MIS algorithm to handle line graphs implicitly for MM, avoiding explicit construction of the line graph to maintain linear work.
  • Implement a prefix-based parallel framework that allows tuning of prefix size to balance work and depth, with theoretical guarantees on linear work for optimal prefix sizes.

Experimental results

Research questions

  • RQ1Can the greedy sequential MIS algorithm be parallelized efficiently for any graph, not just random graphs?
  • RQ2What is the dependence length of the greedy MIS algorithm under random vertex ordering, and does it scale polylogarithmically?
  • RQ3Can a parallel implementation of the greedy MIS and MM algorithms achieve linear work while maintaining the same result as the sequential algorithm?
  • RQ4How does the choice of prefix size affect the tradeoff between total work, parallelism, and running time in practice?
  • RQ5Can the proposed method outperform both sequential implementations and existing parallel algorithms like Luby’s on modest processor counts?

Key findings

  • For any graph and random vertex ordering, the greedy MIS algorithm has a dependence length of O(log²n) with high probability, enabling polylogarithmic parallel depth.
  • The proposed prefix-based parallel algorithm achieves 14–17x speedup on 32 processors for MIS and 21–24x for MM, outperforming the sequential version with only 4–32 cores.
  • The prefix-based MIS implementation is 4–8 times faster than Luby’s algorithm on 32 cores, due to reduced redundant work and no need for priority reassignment between rounds.
  • The algorithm guarantees deterministic results regardless of execution schedule, as long as dependencies are respected, ensuring consistency across sequential and parallel runs.
  • The optimal prefix size for minimizing work and running time is empirically determined to be between 10⁻⁶ and 10⁻⁴ of the input size, where the performance bump occurs due to loop transition from sequential to parallel.
  • The method generalizes to other greedy sequential algorithms, suggesting potential for broader applicability in parallel algorithm design.

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.