Use the divide-and-conquer integer multiplication algorithm to multiply the two binary integers 10011011 and 10111010.
Read moreTextbook Solutions for Algorithms
Question
In justifying our matrix multiplication algorithm (Section 2.5), we claimed the following blockwise property: if X and Y are \(n \times n\) matrices, and
\(X=\left[\begin{array}{ll}A&B\\ C&D\end{array}\right],\quad\ Y=\left[\begin{array}{ll}E&F\\ G&H\end{array}\right],\)
where A, B, C, D, E, F, G, and H are \(n / 2 \times n / 2\) submatrices, then the product XY can be expressed in terms of these blocks:
\(X Y=\left[\begin{array}{ll} A & B \\ C & D \end{array}\right]\left[\begin{array}{ll} E & F \\ G & H \end{array}\right]=\left[\begin{array}{ll} A E+B G & A F+B H \\ C E+D G & C F+D H \end{array}\right]\)
Prove this property.
Solution
Step 1 of 2
Let X and Y be any arbitrary \(n \times n\) matrices. Then, their product is another \(n \times n\) matrix Z defined by
\(Z_{i j}=\sum_{k=1}^{n} X_{i k} Y_{k j}\) (i)
Now, let
\(\begin{array}{l} X=\left[\begin{array}{ll} A & B \\ C & D \end{array}\right] \\ Y=\left[\begin{array}{ll} E & F \\ G & H \end{array}\right] \end{array}\)
Here A, B, C, D, E, F, G and H are \(\frac{n}{2} \times \frac{n}{2}\) submatrices.
Suppose, \(Z=X Y\) . Then, by definition of matrix multiplication of matrix multiplication defined in equation (i),
\(Z_{i j}=\sum_{k=1}^{n} X_{i k} Y_{k j}\)
full solution