Skip to main content

Average-Case Complexity of the Min-Sum Matrix Product Problem

  • Conference paper
  • First Online:
Algorithms and Computation (ISAAC 2014)

Part of the book series: Lecture Notes in Computer Science ((LNTCS,volume 8889))

Included in the following conference series:

  • 1494 Accesses

Abstract

We study the average-case complexity of min-sum product of matrices, which is a fundamental operation that has many applications in computer science. We focus on optimizing the number of “algebraic” operations (i.e., operations involving real numbers) used in the computation, since such operations are usually expensive in various environments. We present an algorithm that can compute the min-sum product of two \(n \times n\) real matrices using only \(O(n^2)\) algebraic operations, given that the matrix elements are drawn independently and identically from some fixed probability distribution satisfying several constraints. This improves the previously best known upper-bound of \(O(n^2\log n)\). The class of probability distributions under which our algorithm works include many important and commonly used distributions, such as uniform distributions, exponential distributions, and folded normal distributions.

In order to evaluate the performance of the proposed algorithm, we performed experiments to compare the running time of the proposed algorithm with algorithms in [7]. The experimental results demonstrate that our algorithm achieves significant performance improvement over the previous algorithms.

This work was fully supported by a grant from the Research Grants Council of the Hong Kong Special Administrative Region, China [Project No. CityU 122512].

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 84.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 109.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. Aho, A.V., Hopcroft, J.E., Ullman, J.D.: The Design and Analysis of Computer Algorithms. Addison-Wesley (1974)

    Google Scholar 

  2. Bloniarz, P.A.: A shortest-path algorithm with expected time \({O}(n^2 \log n\log ^*n)\). SIAM Journal on Computing 12(3), 588–600 (1983). http://link.aip.org/link/?SMJ/12/588/1

  3. Blum, M., Floyd, R.W., Pratt, V., Rivest, R.L., Tarjan, R.E.: Time bounds for selection. Journal of Computer and System Sciences 7(4), 448–461 (1973). http://www.sciencedirect.com/science/article/pii/S0022000073800339

  4. Chan, T.M.: More algorithms for all-pairs shortest paths in weighted graphs. SIAM Journal on Computing 39(5), 2075–2089 (2010)

    Article  MATH  MathSciNet  Google Scholar 

  5. Coppersmith, D., Winograd, S.: Matrix multiplication via arithmetic progressions. Journal of Symbolic Computation 9(3), 251–280 (1990). http://www.sciencedirect.com/science/article/pii/S0747717108800132

    Article  MATH  MathSciNet  Google Scholar 

  6. David, H.A., Nagaraja, H.N.: Order Statistics. Wiley, Hoboken (2003)

    Book  MATH  Google Scholar 

  7. Felzenszwalb, P.F., McAuley, J.J.: Fast inference with min-sum matrix product. IEEE Transactions on Pattern Analysis and Machine Intelligence 33(12), 2549–2554 (2011)

    Article  Google Scholar 

  8. Fredman, M.L.: On the decision tree complexity of the shortest path problems. In: Proc. 16th FOCS, pp. 98–99 (1975)

    Google Scholar 

  9. Fredman, M.L.: New bounds on the complexity of the shortest path problems. SIAM Journal on Computing 5(1), 83–89 (1976)

    Article  MATH  MathSciNet  Google Scholar 

  10. Han, Y.: An \({O}(n^3(\log \log {n}/ \log {n})^{5/4})\) time algorithm for all pairs shortest paths. Algorithmica 51(4), 428–434 (2008)

    Article  MATH  MathSciNet  Google Scholar 

  11. Han, Y., Takaoka, T.: An \({O}(n^3 \log {} \log {n} / \log ^2 {n})\) time algorithm for all pairs shortest paths. In: Proc. 13th SWAT (2012)

    Google Scholar 

  12. Karger, D., Koller, D., Phillips, S.: Finding the hidden path: time bounds for all-pairs shortest paths. SIAM Journal on Computing 22(6), 1199–1217 (1993)

    Article  MATH  MathSciNet  Google Scholar 

  13. McAuley, J.J., Caetano, T.S.: Exploiting within-clique factorizations in junction-tree algorithms. Journal of Machine Learning Research - Proceedings Track 9, 525–532 (2010)

    Google Scholar 

  14. McGeoch, C.: All-pairs shortest paths and the essential subgraph. Algorithmica 13(5), 426–441 (1995)

    Article  MATH  MathSciNet  Google Scholar 

  15. Mehlhorn, K., Priebe, V.: On the all-pairs shortest-path algorithm of Moffat and Takaoka. Random Structures and Algorithms 10(1–2), 205–220 (1997)

    Article  MATH  MathSciNet  Google Scholar 

  16. Moffat, A., Takaoka, T.: An all pairs shortest path algorithm with expected time \({O}(n^2 \log {n})\). SIAM Journal on Computing 16(6), 1023–1031 (1987)

    Article  MATH  MathSciNet  Google Scholar 

  17. Peres, Y., Sotnikov, D., Sudakov, B., Zwick, U.: All-pairs shortest paths in \({O}(n^{2})\) time with high probability. In: Proc. 51th FOCS, pp. 663–672 (2010)

    Google Scholar 

  18. Spira, P.M.: A new algorithm for finding all shortest paths in a graph of positive arcs in average time \({O(n^{2} {\rm {log}}^{2} n)}\). SIAM Journal on Computing 2(1), 28–32 (1973). http://link.aip.org/link/?SMJ/2/28/1

  19. Strassen, V.: Gaussian elimination is not optimal. Numerische Mathematik 13(4), 354–356 (1969). http://dx.doi.org/10.1007/BF02165411

  20. Takaoka, T.: Efficient algorithms for the maximum subarray problem by distance matrix multiplication. Electronic Notes in Theoretical Computer Science 61, 191–200 (2002).http://www.sciencedirect.com/science/article/pii/S1571066104003135

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Ken Fong .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2014 Springer International Publishing Switzerland

About this paper

Cite this paper

Fong, K., Li, M., Liang, H., Yang, L., Yuan, H. (2014). Average-Case Complexity of the Min-Sum Matrix Product Problem. In: Ahn, HK., Shin, CS. (eds) Algorithms and Computation. ISAAC 2014. Lecture Notes in Computer Science(), vol 8889. Springer, Cham. https://doi.org/10.1007/978-3-319-13075-0_4

Download citation

  • DOI: https://doi.org/10.1007/978-3-319-13075-0_4

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-319-13074-3

  • Online ISBN: 978-3-319-13075-0

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics