Fast output-sensitive matrix multiplication

Riko Jacob, Morten Stöckel

6 Citationer (Scopus)

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.

OriginalsprogEngelsk
TitelAlgorithms - ESA 2015 : 23rd Annual European Symposium, Patras, Greece, September 14-16, 2015, Proceedings
RedaktørerNikhil Bansal, Irene Finocchi
Antal sider13
ForlagSpringer
Publikationsdato2015
Sider766-778
Kapitel64
ISBN (Trykt)978-3-662-48350-3
ISBN (Elektronisk)978-3-662-48350-3
DOI
StatusUdgivet - 2015
BegivenhedAnnual European Symposium 2015 - Patras, Grækenland
Varighed: 14 sep. 201516 sep. 2015
Konferencens nummer: 23

Konference

KonferenceAnnual European Symposium 2015
Nummer23
Land/OmrådeGrækenland
ByPatras
Periode14/09/201516/09/2015
NavnLecture notes in computer science
Vol/bind9294
ISSN0302-9743

Fingeraftryk

Dyk ned i forskningsemnerne om 'Fast output-sensitive matrix multiplication'. Sammen danner de et unikt fingeraftryk.

Citationsformater