Strassen’s Matrix Multiplication
Another example of divide and conquer method is Strassen’s Matrix that help us to multiply two matrices of size n × n. Let A and B are the two n × n matrices, then its product C= AB is also n × n matrix. These n × n matrix product can be formed by taking the element in the i th row of A and j th column of B and multiplying them to get To compute C(i,j), we need to have n multiplication. Divide and conquer method suggest another way to compute C(i,j) i.e the product matrix of n × n. imagine that A and B are two n × n matrices divided into two square matrices of size n/2 n/2. then the product matrix AB can be computed by using the above formula as