In justifying our matrix multiplication algorithm (Section 2.5), we claimed the | StudySoup

Textbook Solutions for Algorithms

Chapter 2 Problem 2.11

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}\) 

Subscribe to view the
full solution

Title Algorithms  1 
Author Sanjoy Dasgupta Algorithms, Christos H. Papadimitriou Algorithms, Umesh Vazirani Algorithms
ISBN 9780073523408

In justifying our matrix multiplication algorithm (Section 2.5), we claimed the

Chapter 2 textbook questions

×

Login

Organize all study tools for free

Or continue with
×

Register

Sign up for access to all content on our site!

Or continue with

Or login if you already have an account

×

Reset password

If you have an active account we’ll send you an e-mail for password recovery

Or login if you have your password back