Chapter 9: Problem 24
For \(2 \times 2\) matrices, the complexity of matrix multiplication can be determined using the algorithm described below where the number of arithmetic operations (additions, subtractions, and multiplications) are one measure of complexity. Let \(A=\) \(\left(\begin{array}{ll}a_{11} & a_{12} \\ a_{21} & a_{22}\end{array}\right)\) and \(B=\left(\begin{array}{ll}b_{11} & b_{12} \\\ b_{21} & b_{22}\end{array}\right) .\) Calculate $$\begin{array}{l} m_{1}=\left(a_{11}+a_{22}\right)\left(b_{11}+b_{22}\right) \\ m_{5}=\left(a_{21}+a_{22}\right) b_{11} \\ m_{2}=\left(a_{11}-a_{22}\right)\left(b_{21}+b_{22}\right) \\ m_{6}=a_{11}\left(b_{12}-b_{22}\right) \\ m_{3}=\left(a_{11}-a_{21}\right)\left(b_{11}+b_{12}\right) \\ m_{7}=a_{22}\left(b_{21}-b_{11}\right) \\ m_{4}=\left(a_{11}+a_{12}\right) b_{11} \end{array}$$ $$\text { Now, let } C=\left(\begin{array}{ll}c_{11} & c_{12} \\\c_{21} & c_{22}\end{array}\right) \text { where }$$ $$\begin{aligned}c_{11} &=m_{1}+m_{2}-m_{4}+m_{7} \\\c_{12} &=m_{4}+m_{6} \\\c_{21} &=m_{5}+m_{7} \\\c_{22} &=m_{1}-m_{3}-m_{5}+m_{6}\end{aligned}$$ $$\text { (a) Use the algorithm described to find the matrix product for }$$ $$ \left(\begin{array}{ll} 3 & 5 \\ 4 & 8\end{array}\right) \quad\left(\begin{array}{ll}2 & 7 \\\5 & 9\end{array}\right)$$ (b) For matrices of size \(2^{r} \times 2^{r}\), partition them into \(2^{r-1} \times 2^{r-1}\) submatrices, and use the procedure shown for \(2 \times 2\) matrices to compute the product. Carry out this process for the following matrices: $$\left(\begin{array}{llll}3 & 5 & 2 & 5 \\\4 & 8 & 7 & 3 \\\4 & 6 & 9 & 9 \\\3 & 6 & 9 & 7\end{array}\right) \quad\left(\begin{array}{llll}2 & 7 & 3 & 5 \\\5 & 9 & 4 & 6 \\\3 & 5 & 9 & 8 \\\5 & 3 & 2 & 1\end{array}\right)$$ (c) Show that matrix multiplication using this algorithm satisfies the recurrence relation $$f_{r}=7 f_{r-1}+18 \cdot 2^{r-2} \text { for } r \geq 1$$ Solve this recurrence. How does this result compare with the classical method of multiplying matrices?
Short Answer
Step by step solution
Key Concepts
These are the key concepts you need to understand to accurately answer the question.