News for hackers. Stuff that matters.
Re:Matrix multiplication inches closer to mythic goal by zests on Tuesday March 23, 2021 @06:51PM (#26561358)
This is what I choose to believe. Even if it is not true I will still believe it because it is so satisfying.
Re:Matrix multiplication inches closer to mythic goal by jessriedel on Tuesday March 23, 2021 @07:28PM (#26561680)
Yea. I've always wondered whether it was motivated purely by intuition about elegance, or whether there is another computational task that has been shown to have this feature. (The finite-length proof that an infinite tower of algorithms exist without them actually being specifiable in finite length would I guess require some Gödelian jiu jitsu?)
Re:Matrix multiplication inches closer to mythic goal by woopwoop on Tuesday March 23, 2021 @08:52PM (#26562244)
Hmm, I guess I don't get it. I feel like if you have such a sequence of algorithms A_i, you can "string them together" to get a single algorithm A which has the property that it has complexity O(n^{1 + epsilon}) for any epsilon > 0. Specifically, suppose we know that A_i requires time at most C_i + D_i n^{1 + 1/i}. Then there exists N_i such that, for any n >= N, C_i + D_i n^{1 + 1/i} >= C_{i+1} + n^{1 + 1/(i+1)}, and so can't we specify A by saying "if the input has size n where N_i <= n < N_{i+1}, perform A_i"?
Re:Matrix multiplication inches closer to mythic goal by jessriedel on Tuesday March 23, 2021 @10:39PM (#26562938)
An algorithm has finite length, but an infinite sequence of algorithms need not. For algorithm A to actually carry out "if the input has size n where N_i <= n < N_{i+1}, perform A_i", it needs to be able to generate the code for each of the infinite number of A_i's.
Re:Matrix multiplication inches closer to mythic goal by woopwoop on Tuesday March 23, 2021 @10:49PM (#26563019)
I see, thanks. Yeah that kind of thing is definitely above my pay grade.
Re:Matrix multiplication inches closer to mythic goal by kripke on Wednesday March 24, 2021 @09:47AM (#26567108)
The choice of A_i now depends on n. The complexity of your construction is O(n^{2 + 1/argmax_i { N_i <= n}), not O(n^2).
Re:Matrix multiplication inches closer to mythic goal by woopwoop on Wednesday March 24, 2021 @01:43PM (#26570540)
Oh I wasn't claiming it's O(n), just O(n^{1+epsilon}) for any epsilon > 0. Indeed, the function inside your O is dominated by n^{2 + epsilon} for any epsilon > 0.
Re:Matrix multiplication inches closer to mythic goal by zests on Tuesday March 23, 2021 @09:32PM (#26562504)
The problem is that each algorithm likely has a constant factor much larger than the previous. This does not matter for the runtime complexity of any individual algorithm but when you string them together the time complexity explodes.
Re:Matrix multiplication inches closer to mythic goal by woopwoop on Tuesday March 23, 2021 @10:22PM (#26562840)
I'm pretty confident the construction above does not depend on any bound on the growth rate of C_i (or D_i).