Matrix Chain Multiplication

  Explanation Video

To multiply 2 matrix, the number of columns in 1st matrix and number of rows in 2nd matrix must be equals.

The result matrix will be number of row in 1st matrix X number of columns in 2nd matrix

When you have to multiply many matrix then first find out which one to multiply first to reduce number of multiplications. Matrix Chain Multiplication algorithm help to parenthesise different matrix so we can multiply them with optimal effort. 










Comments

Popular posts from this blog

SQL basic interview question

gsutil Vs Storage Transfer Service Vs Transfer Appliance