15.11.2014 Views

MATLAB Mathematics - SERC - Index of

MATLAB Mathematics - SERC - Index of

MATLAB Mathematics - SERC - Index of

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.

6 Sparse Matrices<br />

0<br />

10<br />

20<br />

30<br />

40<br />

50<br />

60<br />

0 20 40 60<br />

nz = 420<br />

0<br />

10<br />

20<br />

30<br />

40<br />

50<br />

60<br />

0 20 40 60<br />

nz = 780<br />

0<br />

10<br />

20<br />

30<br />

40<br />

50<br />

60<br />

0 20 40 60<br />

nz = 1380<br />

0<br />

10<br />

20<br />

30<br />

40<br />

50<br />

60<br />

0 20 40 60<br />

nz = 3540<br />

Fill-in is generated by operations like matrix multiplication. The product <strong>of</strong><br />

two or more matrices usually has more nonzero entries than the individual<br />

terms, and so requires more storage. As p increases, B^p fills in and spy(B^p)<br />

gets more dense.<br />

The distance between two nodes in a graph is the number <strong>of</strong> steps on the graph<br />

necessary to get from one node to the other. The spy plot <strong>of</strong> the p-th power <strong>of</strong> B<br />

shows the nodes that are a distance p apart. As p increases, it is possible to get<br />

to more and more nodes in p steps. For the Bucky ball, B^8 is almost completely<br />

full. Only the antidiagonal is zero, indicating that it is possible to get from any<br />

node to any other node, except the one directly opposite it on the sphere, in<br />

eight steps.<br />

6-22

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

Saved successfully!

Ooh no, something went wrong!