- Traditional matrix multiplication has a complexity of n^3
- Strannen algorithm has a complexity of n^2.8074
- In strassen algorithm, matrices are broken down into smaller 2x2 matrices.
- Reduces the number of multiplication operation from 8 in the case above to 7.
- It defines the following intermediate values:
- Then uses these values to get the final matrix
- only beneficial for large scale matrices. matrix of size 512 sees an improvement of 20%
-
- This reduces the number of addition and subtraction operations in the strassen algorithm from 18 to 15.