retagged by
2,458 views
1 votes
1 votes

Total Number of multiplication operations to get the product of two matrices of order 4 *4 using Strassen’s matrix multiplication method is

  1. 50
  2. 60
  3. 64
  4. 56
retagged by

2 Answers

1 votes
1 votes

If you recall strassen's algorithm, here a matrix is divided into half of the order and then multiply. 

for example if a matrix is of order 4 then it will be divided into 7 2*2 matrix and then multiplication performed on these 7 matrix will be suffice, no extra multiplication required.

T(n) = 7T(n/2) + n^2  // Strassen's Algo reccurence relation

Now in 2*2 matrix you need to perform 8 multiplication.

so for 7 2*2 matrix you need to perform 7*8 multiplication.

Therefore ans will be 56.

P.S. : O(n^2.81) is the time complexity of strassen's algo, it does not give no. of multiplications.

0 votes
0 votes

Strassen’s Algorithm allows us to multiply two n by n matrices A and B, with a number of multiplications (and additions) which is a small multiple of $n^{log_27}$ , when n is of the form $2^k$.

The number of multiplication required for any matrix of order $2^k$ is $7^k$

Here, order = 4 => k=2.

The number of multiplication required should be $7^2$ i.e. 49 and not anything between 49 and 50. That additional thing that might be coming is because $O(n^{log_27})$ is the time complexity and not the number of multiplications. Hence, none of the options is correct.

Refer this: http://www-math.mit.edu/~djk/18.310/18.310F04/Matrix_%20Multiplication.html

edited by

Related questions

0 votes
0 votes
1 answer
1
vijju532 asked Jul 7, 2018
466 views
i could not remember the strassen matrix multiplication equation is it necessary to remember the equationwhich is given by https://www.geeksforgeeks.org/easy-way-remember...
2 votes
2 votes
1 answer
4