Explain the divide and conquer apprach of multiplying two matrices of large size. Also, explain the Strassen’s matric multiplication algorithm. Find the time complexity of both these approaches.
### Divide and Conquer Approach for Matrix Multiplication
Matrix multiplication of large matrices can be efficiently tackled using the divide and conquer approach. The essence of this method is to break down a complex problem into smaller, more manageable subproblems, solve each subproblem independently, and then combine their solutions to obtain the final result.
#### Basic Divide and Conquer Matrix Multiplication
Given two matrices \( A \) and \( B \), each of size \( n \times n \), we want to compute their product \( C = A \times B \). In the divide and conquer approach, we divide both matrices into four smaller \( \frac{n}{2} \times \frac{n}{2} \) submatrices:
\[ A = \begin{bmatrix}
A_{11} & A_{12} \\
A_{21} & A_{22}
\end{bmatrix} \]
\[ B = \begin{bmatrix}
B_{11} & B_{12} \\
B_{21} & B_{22}
\end{bmatrix} \]
We then compute the product matrices for each of the four combinations:
\[ C_{11} = A_{11} \times B_{11} + A_{12} \times B_{21} \]
\[ C_{12} = A_{11} \times B_{12} + A_{12} \times B_{22} \]
\[ C_{21} = A_{21} \times B_{11}
__________ __________ ________ _____ ____ _________ __________ ______.
________ ___ ___ ______ ________ ______ _______ ________.
_______ __________ ______ __________ ________ ____ ______.
__________ ______ __________ ___ _________ ___ ________ _________ _______ ______ ________ _____.
____ _____ ____ _________ _________.
____ _______ ___ __________ ______ ________ _________ _________ __________.
__________ ________ _____ _________ ______ __________ ____ _________ ________ _____ ________.
___ _________ _____ ______ _________ __________ _________ ________ ______.
______ __________ ______ ____ ____ _____ ___ _______ _______.
______ _____ ____ _________ ___ ____ ______.
___ ____ __________ ________ ____ ___ __________.
______ ______ ____ ___ __________.
_____ _____ ___ _______ _______ __________ _____ _________ _________ _____ __________ ___.
____ ___ _________ ____ __________ _____ ____ ___ _______ ___ ______ _______.
___ _________ _______ __________ ________ _____ ___ _______ _______.
__________ _____ ______ ____ _____ ______ __________.
___ __________ __________ ___ ______ _________ _____.
_________ ______ _______ _____ _______ ____ _____ _________.
_______ ____ ___ __________ _________ ___ _____ ____.
___ ___ ________ __________ ___ _________ _________.
__________ __________ ____ _________ ______ _______ _______ ___ _________ ________ ____ ___.
___ _______ ___ __________ ____ ________ ______ ___ ____.
_____ ______ ____ _______ _________ ________ _____ ____.
____ ____ ______ _______ _____ _____.
___ __________ ___ ____ ________.
____ ___ _________ _________ ________ ________ _______ ____ _______ ___.
_________ ____ ________ ___ ________.
_______ __________ __________ __________ _________ _____ ________ ________.
________ ________ ____ __________ ________ ___ _____ _________ _______ ___.
_____ __________ _______ ___ _________ __________ _________ ___ ___ _________ _____ ___.
_____ _______ _____ _______ ____ ____ ___ ________.
_______ ____ __________ ___ ______ ___ ___ ______ _________ __________ _____ _________.
__________ _____ ______ ______ _________ _______.
___ ________ _________ ______ ________.
_________ _________ __________ __________ ________.
__________ _____ _______ ____ _________ ____ ________.
____ _______ _________ _________ ________ _________ _______ _________ _______ ________ ____ _____.
________ _________ _____ ____ _____ ___ ___ _______ __________ ________.
_____ _________ ___ ______ ______ ___.
- Solved Assignments
- Study Notes
- Guess Papers
- Question Papers
✓ Unlock up to 60% of the answer
✓ No payment required