18.04.2013 Views

The.Algorithm.Design.Manual.Springer-Verlag.1998

The.Algorithm.Design.Manual.Springer-Verlag.1998

The.Algorithm.Design.Manual.Springer-Verlag.1998

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Matrix Multiplication<br />

Next: Determinants and Permanents Up: Numerical Problems Previous: Bandwidth Reduction<br />

Matrix Multiplication<br />

Input description: An matrix A and a matrix B.<br />

Problem description: <strong>The</strong> matrix .<br />

Discussion: Although matrix multiplication is an important problem in linear algebra, its main<br />

significance for combinatorial algorithms is its equivalence to a variety of other problems, such as<br />

transitive closure and reduction, solving linear systems, and matrix inversion. Thus a faster algorithm for<br />

matrix multiplication implies faster algorithms for all of these problems. Matrix multiplication arises in<br />

its own right in computing the results of such coordinate transformations as scaling, rotation, and<br />

translation for robotics and computer graphics.<br />

<strong>The</strong> straightforward algorithm to compute the product of matrix A and matrix B runs in O(x y<br />

z) time and is tough to beat in practice:<br />

for i=1 to x do<br />

file:///E|/BOOK/BOOK3/NODE138.HTM (1 of 4) [19/1/2003 1:30:18]

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!