Lurker News
See also Holy shit holy shit holy shit holy shit: the magnitude of what’s now happening - https://news.ycombinator.com/item?id=50646108

Comments (607) 61 threads

Show all comments

Showing thread 27 of 61

brcmthrowaway2 replies#
Can someone explain the significance of this?

I multiply two square matrices in numpy. Will my performance improve?

traes1 reply#
Nope. In fact, this is the exact opposite kind of result: no matter what advances we make, matrix multiplication will never get faster than the best currently known algorithm (in the usual asymptotic sense.)
zeroonetwothree2 replies#
Practical algorithms that ar being used are worse than n^2.25. So this is wrong, we may get practical algorithmic improvements in the future.
zahlman2 replies#
What's the current state of the art like on real hardware? Like, how big of a matrix would you need before even the original improvement to n^(log2(7)) is relevant?

Continue this thread — 2 replies

traes#
(in the usual asymptotic since) (i.e. for large enough matrices)
turzmo#
One of the issues with translating results like these to the real world is this: we know that the cost (in time) for multiplying matrices is C N^2.25, where C is some constant. Theoretical computer scientists are interested in driving down that exponent as low as possible, independent of what C is.

In this case, and in many others, optimal algorithms have extremely large C's. In fact so large that there is no practical reason to ever use them. My understanding is that all matrices are multiplied in practice naively (O(n^3)) or with Strassen's algorithm (O(n^2.8something)) but that none of the newer (20th century and beyond) algorithms are practical.