Abstract
We consider the problem of multiplying two U×U matrices A and C of elements from a field F. We present a new randomized algorithm that can use the known fast square matrix multiplication algorithms to perform fewer arithmetic operations than the current state of the art for output matrices that are sparse. In particular, let ω be the best known constant such that two dense U × U matrices can be multiplied with O(Uω) arithmetic operations. Further denote by N the number of nonzero entries in the input matrices while Z is the number of nonzero entries of matrix product AC. We present a new Monte Carlo algorithm that uses (Formula presented) arithmetic operations and outputs the nonzero entries of AC with high probability. For dense input, i.e., N = U2, if Z is asymptotically larger than U, this improves over state of the art methods, and it is always at most O(Uω). For general input density we improve upon state of the art when N is asymptotically larger than U4−ωZω−5/2. The algorithm is based on dividing the input into “balanced” subproblems which are then compressed and computed. The new subroutine that computes a matrix product with balanced rows and columns in its output uses time Õ (UZ(ω−1)/2 + N) which is better than the current state of the art for balanced matrices when N is asymptotically larger than UZω/2−1, which always holds when N = U2. In the I/O model — where M is the memory size and B is the block size — our algorithm is the first nontrivial result that exploits cancellations and sparsity of the output. The I/O complexity of our algorithm is Õ (U2(Z/U)ω−2/(Mω/2−1B) + Z/B + N/B), which is asymptotically faster than the state of the art unless M is large.
Original language | English |
---|---|
Title of host publication | Algorithms - ESA 2015 : 23rd Annual European Symposium, Patras, Greece, September 14-16, 2015, Proceedings |
Editors | Nikhil Bansal, Irene Finocchi |
Number of pages | 13 |
Publisher | Springer |
Publication date | 2015 |
Pages | 766-778 |
Chapter | 64 |
ISBN (Print) | 978-3-662-48350-3 |
ISBN (Electronic) | 978-3-662-48350-3 |
DOIs | |
Publication status | Published - 2015 |
Event | Annual European Symposium 2015 - Patras, Greece Duration: 14 Sept 2015 → 16 Sept 2015 Conference number: 23 |
Conference
Conference | Annual European Symposium 2015 |
---|---|
Number | 23 |
Country/Territory | Greece |
City | Patras |
Period | 14/09/2015 → 16/09/2015 |
Series | Lecture notes in computer science |
---|---|
Volume | 9294 |
ISSN | 0302-9743 |