When the matrix size of Strassen matrix multiplication is not the form of 2^k, is the time complexity better than the naïve algorithm?

Source: Internet
Author: User

Tag: greater than the use of str greater than or equal to log good other complexity time

It turns out to be N, to find a number m greater than or equal to N and 2^k form.
The matrix of the n*n is the matrix of the M*m, the original matrix is placed at the top left, and the value of the other positions is 0.
Naïve method: N^3
Now: m^2.8
That is, m/n needs to be less than e^ (3/2.8) =2.919 to be good, and n<=m<2*n, that is, using this method is better.

When the matrix size of Strassen matrix multiplication is not the form of 2^k, is the time complexity better than the naïve algorithm?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.