A comparison of three algorithms for approximating the distance distribution in real-world graphs

  • Authors:
  • Pierluigi Crescenzi;Roberto Grossi;Leonardo Lanzi;Andrea Marino

  • Affiliations:
  • Dipartimento di Sistemi e Informatica, Università di Firenze;Dipartimento di Informatica, Università di Pisa;Dipartimento di Sistemi e Informatica, Università di Firenze;Dipartimento di Sistemi e Informatica, Università di Firenze

  • Venue:
  • TAPAS'11 Proceedings of the First international ICST conference on Theory and practice of algorithms in (computer) systems
  • Year:
  • 2011

Quantified Score

Hi-index 0.00

Visualization

Abstract

The distance for a pair of vertices in a graph G is the length of the shortest path between them. The distance distribution for G specifies how many vertex pairs are at distance h, for all feasible values h. We study three fast randomized algorithms to approximate the distance distribution in large graphs. The Eppstein-Wang (EW) algorithm exploits sampling through a limited (logarithmic) number of Breadth-First Searches (BFSes). The Size-Estimation Framework (SEF) by Cohen employs random ranking and least-element lists to provide several estimators. Finally, the Approximate Neighborhood Function (ANF) algorithm by Palmer, Gibbons, and Faloutsos makes use of the probabilistic counting technique introduced by Flajolet and Martin, in order to estimate the number of distinct elements in a large multiset. We investigate how good is the approximation of the distance distribution, when the three algorithms are run in similar settings. The analysis of ANF derives from the results on the probabilistic counting method, while the one of sef is given by Cohen. For what concerns EW (originally designed for another problem), we extend its simple analysis in order to bound its error with high probability and to show its convergence. We then perform an experimental study on 30 real-world graphs, showing that our implementation of ew combines the accuracy of sef with the performance of ANF.