In justifying our matrix multiplication algorithm (Section 2.5), we claimed the following block wise property: if X and Y are n×nn matrices, and

X=[ABCD],Y=[EFGH],

where A,B,C,D,E,F,G, and H are n/2×n/2 sub-matrices, then the product XY can be expressed in terms of these blocks:

XY=[ABCD][EFGH]=[AE+BGAF+BHCE+DGCF+DH]

Prove this property.

Short Answer

Expert verified

Justification of matrix multiplication

Step by step solution

01

Prove:

Environment multiplication

Allowing the following matrices:

X=ABCD and Y=EFGH

X and Y vectors are split into 4 size blocks. n2×n2. This combination between X or Y matrix (z) has the following i , j the elements because X and Y were n×nmatrices:

Zij=k=1XikYkj where 1i,jn

With each region of both the process of making the product, the specified property may be demonstrated (Z) .

For the sector in which i,jn2:

Zij=X,Yij=K=1nXikYkj=k=1nXikYkj+K=1nXikYkj=K=1n/2AikEkj+K=1n/2BikGkj=AE+BGij

For the sector in which in2and n2jn:

Zij=(XY)ij =K=1nXikYkj=K=1nXikYkj+nk=-+12nXikYkj=K=1n/2AikFkj+K=1n/2BikHkj=AF+BHij

For the sector in which n2inand jn2:

Zij=X,Yij=K=1nXikYkj=k=1nXikYkj+K=1nXikYkj=K=1n/2CikEkj+K=1n/2DikGkj=CE+DGij

For the sector in which n2i,jn :

Zij=X,Yij=K=1nXikYkj=k=1nXikYkj+K=1nXikYkj=K=1n/2CikFkj+K=1n/2DikHkj=CF+DHij

The product of X and Y can be expressed as follows:

Z=Zijwherei,jn2Zijwherein2andn2<jnZijwheren2<inandjn2Zijwheren2<i,jn

Z=AE+BGAF+BHCE+DGCF+DH

Therefore, the given property is proved.

Unlock Step-by-Step Solutions & Ace Your Exams!

  • Full Textbook Solutions

    Get detailed explanations and key concepts

  • Unlimited Al creation

    Al flashcards, explanations, exams and more...

  • Ads-free access

    To over 500 millions flashcards

  • Money-back guarantee

    We refund you if you fail your exam.

Over 30 million students worldwide already upgrade their learning with Vaia!

One App. One Place for Learning.

All the tools & learning materials you need for study success - in one app.

Get started for free

Most popular questions from this chapter

See all solutions

Recommended explanations on Computer Science Textbooks

View all explanations

What do you think about this solution?

We value your feedback to improve our textbook solutions.

Study anywhere. Anytime. Across all devices.

Sign-up for free