TY - JOUR
T1 - Fast Sparse Matrix Multiplication
AU - Yuster, Raphael
AU - Zwick, Uri
PY - 2005
Y1 - 2005
N2 - Let A and B two n × n matrices over a ring R (e.g., the reals or the integers) each containing at most m nonzero elements. We present a new algorithm that multiplies A and B using O(m0.7n1.2 + n2+o(1)) algebraic operations (i.e., multiplications, additions and subtractions) over R. The naïve matrix multiplication algorithm, on the other hand, may need to perform Ω(mn) operations to accomplish the same task. For m ≤n1.14, the new algorithm performs an almost optimal number of only n2+o(1) operations. For m ≤ n1.68, the new algorithm is also faster than the best known matrix multiplication algorithm for dense matrices which uses O(n2.38) algebraic operations. The new algorithm is obtained using a surprisingly straightforward combination of a simple combinatorial idea and existing fast rectangular matrix multiplication algorithms.We also obtain improved algorithms for the multiplication of more than two sparse matrices. As the known fast rectangular matrix multiplication algorithms are far from being practical, our result, at least for now, is only of theoretical value.
AB - Let A and B two n × n matrices over a ring R (e.g., the reals or the integers) each containing at most m nonzero elements. We present a new algorithm that multiplies A and B using O(m0.7n1.2 + n2+o(1)) algebraic operations (i.e., multiplications, additions and subtractions) over R. The naïve matrix multiplication algorithm, on the other hand, may need to perform Ω(mn) operations to accomplish the same task. For m ≤n1.14, the new algorithm performs an almost optimal number of only n2+o(1) operations. For m ≤ n1.68, the new algorithm is also faster than the best known matrix multiplication algorithm for dense matrices which uses O(n2.38) algebraic operations. The new algorithm is obtained using a surprisingly straightforward combination of a simple combinatorial idea and existing fast rectangular matrix multiplication algorithms.We also obtain improved algorithms for the multiplication of more than two sparse matrices. As the known fast rectangular matrix multiplication algorithms are far from being practical, our result, at least for now, is only of theoretical value.
KW - Algorithms
KW - Matrix multiplication
KW - Sparse matrices
KW - Theory
UR - http://www.scopus.com/inward/record.url?scp=34250883179&partnerID=8YFLogxK
U2 - 10.1145/1077464.1077466
DO - 10.1145/1077464.1077466
M3 - ???researchoutput.researchoutputtypes.contributiontojournal.article???
AN - SCOPUS:34250883179
SN - 1549-6325
VL - 1
SP - 2
EP - 13
JO - ACM Transactions on Algorithms
JF - ACM Transactions on Algorithms
IS - 1
ER -