Skip to main content
QUICK REVIEW

[Paper Review] An Adaptive Parallel Algorithm for Computing Connectivity.

Chirag Jain, Patrick Flick|arXiv (Cornell University)|Jul 21, 2016
Graph Theory and AlgorithmsComputer Science2 references1 citations
TL;DR

This paper presents an adaptive, hybrid parallel algorithm for computing connected components in large-scale undirected graphs using a dynamic routing strategy between Shiloach-Vishkin and parallel BFS based on graph topology. By analyzing degree distribution to predict optimal method, it achieves 24x speedup over prior work and runs in 215 seconds on 32K cores for a 50+ billion-edge metagenomic graph.

ABSTRACT

We present an efficient distributed memory parallel algorithm for computing connected components in undirected graphs based on Shiloach-Vishkin's PRAM approach. We discuss multiple optimization techniques that reduce communication volume as well as balance the load to improve the performance of the algorithm in practice. We also note that the efficiency of parallel graph connectivity algorithm depends on the underlying graph topology. Particularly for short diameter graph components, we observe that parallel breadth first search method offers better performance. However, running parallel BFS is not efficient for computing large diameter components or large number of small components. To address this challenge, we employ a heuristic that allows the algorithm to quickly predict the type of the network by computing the degree distribution and follow the optimal hybrid route. Using large graphs with diverse topologies from domains including metagenomics, web crawl, social graph and road networks, we show that our hybrid implementation is efficient and scalable for each of the graph types. Our approach achieves a runtime of 215 seconds using 32K cores of Cray XC30 for a metagenomic graph with over 50 billion edges. When compared against the previous state-of-the-art method, we see performance improvements up to 24x.

Motivation & Objective

  • Address the performance bottleneck in parallel graph connectivity algorithms caused by suboptimal choice of algorithm for varying graph topologies.
  • Reduce communication volume and improve load balancing in distributed memory systems to enhance scalability.
  • Develop a heuristic to predict whether a graph component is better suited for Shiloach-Vishkin or parallel BFS based on degree distribution.
  • Achieve high performance and scalability across diverse real-world graph workloads including metagenomics, web crawls, social networks, and road networks.

Proposed method

  • Adopt the Shiloach-Vishkin PRAM algorithm as the baseline for parallel connectivity computation in distributed memory.
  • Introduce a topology-aware heuristic that computes degree distribution to classify graph components and select the optimal connectivity algorithm.
  • Dynamically switch between Shiloach-Vishkin and parallel BFS at the component level based on predicted performance characteristics.
  • Optimize communication volume and load balancing through algorithmic refinements and data distribution strategies.
  • Implement hybrid execution where short-diameter components use parallel BFS and long-diameter or small-component clusters use Shiloach-Vishkin.
  • Leverage large-scale distributed systems (e.g., Cray XC30) to evaluate performance on graphs with over 50 billion edges.

Experimental results

Research questions

  • RQ1How can we dynamically select between Shiloach-Vishkin and parallel BFS for graph connectivity based on graph topology?
  • RQ2What heuristics enable accurate prediction of the optimal connectivity algorithm for different graph components?
  • RQ3To what extent does communication volume and load imbalance affect the performance of parallel connectivity algorithms?
  • RQ4Can a hybrid approach outperform both Shiloach-Vishkin and parallel BFS individually across diverse real-world graph types?

Key findings

  • The hybrid algorithm achieves a runtime of 215 seconds on 32,000 cores of a Cray XC30 system for a metagenomic graph with over 50 billion edges.
  • The algorithm improves performance by up to 24x compared to the previous state-of-the-art method.
  • For short-diameter components, parallel BFS outperforms Shiloach-Vishkin, while for long-diameter or small components, Shiloach-Vishkin is more efficient.
  • The degree distribution-based heuristic enables accurate prediction of the optimal algorithm, reducing runtime overhead from suboptimal choices.
  • The hybrid approach scales efficiently across diverse graph topologies, including metagenomics, web crawls, social networks, and road networks.
  • Communication volume and load imbalance are significantly reduced through algorithmic optimizations, enhancing overall performance.

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.