• DocumentCode
    2386394
  • Title

    Answering distance queries in directed graphs using fast matrix multiplication

  • Author

    Yuster, Raphael ; Zwick, Uri

  • Author_Institution
    Haifa Univ., Israel
  • fYear
    2005
  • fDate
    23-25 Oct. 2005
  • Firstpage
    389
  • Lastpage
    396
  • Abstract
    Let G = (V, E, w) be a weighted directed graph, where w : E → {-M, ..., 0, ..., M}. We show that G can be preprocessed in O˜(Mnω) time, where ω < 2.376 is the exponent of fast matrix multiplication, such that subsequently, each distance δ(u, v) in the graph, where u, v ε V, can be computed exactly in O(n) time. We also present a tradeoff between the processing time and the query answering time. As a very special case, we obtain an O˜(Mnω) time algorithm for the single source shortest paths (SSSP) problem for directed graphs with integer weights of absolute value at most M. For sufficiently dense graphs, with small enough edge weights, this improves upon the O(m√n log M) time algorithm of Goldberg. We note that even the case M = 1, in which all the edge weights are in {-1, 0, +1}, is an interesting case for which no improvement over Goldberg´s O(m√n) algorithm was known. Our new O˜(Mnω) algorithm is faster whenever m > nω- 12 / ≃ n1.876.
  • Keywords
    computational complexity; directed graphs; matrix multiplication; O˜(Mnω) time algorithm; distance queries; fast matrix multiplication; query answering time; single source shortest paths; weighted directed graph; Data structures; Shortest path problem;
  • fLanguage
    English
  • Publisher
    ieee
  • Conference_Titel
    Foundations of Computer Science, 2005. FOCS 2005. 46th Annual IEEE Symposium on
  • Print_ISBN
    0-7695-2468-0
  • Type

    conf

  • DOI
    10.1109/SFCS.2005.20
  • Filename
    1530731