Fast and simple approximation of the diameter and radius of a graph

  • Authors:
  • Krists Boitmanis;Kārlis Freivalds;Pēteris Lediņš;Rūdolfs Opmanis

  • Affiliations:
  • Institute of Mathematics and ComputerScience, University of Latvia, Riga, Latvia;Institute of Mathematics and ComputerScience, University of Latvia, Riga, Latvia;Institute of Mathematics and ComputerScience, University of Latvia, Riga, Latvia;Institute of Mathematics and ComputerScience, University of Latvia, Riga, Latvia

  • Venue:
  • WEA'06 Proceedings of the 5th international conference on Experimental Algorithms
  • Year:
  • 2006

Quantified Score

Hi-index 0.00

Visualization

Abstract

The increasing amount of data to be processed by computers has led to the need for highly efficient algorithms for various computational problems. Moreover, the algorithms should be as simple as possible to be practically applicable. In this paper we propose a very simple approximation algorithm for finding the diameter and the radius of an undirected graph. The algorithm runs in $O(m\sqrt{n})$ time and gives an additive error of $O(\sqrt{n})$ for a graph with n vertices and m edges. Practical experiments show that the results of our algorithm are close to the optimum and compare favorably to the 2/3-approximation algorithm for the diameter problem by Aingworth et al [1].