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×n real matrices using only O(n2) 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(n2logn). The class of probability distributions under which our algorithm works include many important and commonly used distributions, such as uniform distributions, exponential distributions, folded normal distributions, etc.
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 . The experimental results demonstrate that our algorithm achieves significant performance improvement over the previous algorithms.
Bibliographical noteThis work was fully supported by a grant from the Research Grants Council, University Grants Committee, Hong Kong Special Administrative Region,
China [Project No. CityU 122512].
- Matrix multiplication
- Min-plus product
- Min-sum product