Abstract
We present a practical algorithm for multiplication of two sparse matrices. In fact if A and B are two matrices of size n with m 1 and m 2 non-zero elements respectively, then our algorithm performs O(min{m1n, m2n, m1m2) multiplications and O(k) additions where k is the number of non-zero elements in the tiny matrices that are obtained by the columns times rows matrix multiplication method. Note that in the useful case, k ≤ m2n. However, in Proposition 3.3 and Proposition 3.4 we obtain tight upper bounds for the complexity of additions. We also study the complexity of multiplication in a practical case where non-zero elements of A (resp. B) are distributed independently with uniform distribution among columns (resp. rows) of them and show that the expected number of multiplications is O(m1m2/n). Finally a comparison of number of required multiplications in the naïve matrix multiplication, Strassen's method and our algorithm is given.
Author supplied keywords
Cite
CITATION STYLE
Borna, K., & Fard, S. (2014). A note on the multiplication of sparse matrices. Open Computer Science, 4(1), 1–11. https://doi.org/10.2478/s13537-014-0201-x
Register to see more suggestions
Mendeley helps you to discover research relevant for your work.