A Fast Algorithm to Calculate Powers of a Boolean Matrix for Diameter Computation of Random Graphs

  • Md. Abdur Razzaque
  • Choong Seon Hong
  • M. Abdullah-Al-Wadud
  • Oksam Chae
Conference paper

DOI: 10.1007/978-3-540-77891-2_6

Volume 4921 of the book series Lecture Notes in Computer Science (LNCS)
Cite this paper as:
Razzaque M.A., Hong C.S., Abdullah-Al-Wadud M., Chae O. (2008) A Fast Algorithm to Calculate Powers of a Boolean Matrix for Diameter Computation of Random Graphs. In: Nakano S., Rahman M.S. (eds) WALCOM: Algorithms and Computation. WALCOM 2008. Lecture Notes in Computer Science, vol 4921. Springer, Berlin, Heidelberg

Abstract

In this paper, a fast algorithm is proposed to calculate kth power of an n×n Boolean matrix that requires O(kn3p) addition operations, where p is the probability that an entry of the matrix is 1. The algorithm generates a single set of inference rules at the beginning. It then selects entries (specified by the same inference rule) from any matrix Ak − 1 and adds them up for calculating corresponding entries of Ak. No multiplication operation is required. A modification of the proposed algorithm can compute the diameter of any graph and for a massive random graph, it requires only O(n2(1-p)E[q]) operations, where q is the number of attempts required to find the first occurrence of 1 in a column in a linear search. The performance comparisons say that the proposed algorithms outperform the existing ones.

Keywords

Boolean Matrix Random Graphs Adjacency Matrix  Graph Diameter Computational Complexity 

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Copyright information

© Springer-Verlag Berlin Heidelberg 2008

Authors and Affiliations

  • Md. Abdur Razzaque
    • 1
  • Choong Seon Hong
    • 1
  • M. Abdullah-Al-Wadud
    • 1
  • Oksam Chae
    • 1
  1. 1.Department of Computer EngineeringKyung Hee UniversityYongin-siSouth Korea