Problem 55295. Chain multiplication - 01
Say, you are given two matrices - A (shape= 3*4) and B(shape = 4*5).
If you multiply these two matrices, the resultant matrix will be of shape - 3*5.
To obtain the resultant matrix, you will need to perform in total 60 multiplications internally between the elements of the matrices (can easily be checked from matrix multiplication rule).
The first question is - if you are given just two matrices, what will be the total number of multiplications needed to obtain the resultant matrix.
Solution Stats
Problem Comments
Solution Comments
Show commentsProblem Recent Solvers26
Suggested Problems
-
Omit columns averages from a matrix
595 Solvers
-
Project Euler: Problem 2, Sum of even Fibonacci
2510 Solvers
-
Find out missing number from a vector of 9 elements
302 Solvers
-
Replace multiples of 5 with NaN
449 Solvers
-
1047 Solvers
More from this Author165
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!