Abstract
A matrix is sparse if a high percentage of its elements are zero. “High”, of course, is a relative term, but if about 50% or more of the elements are zero the matrix may be considered sparse. With this percentage of null elements, use of data structures other than the standard two-dimensional array may result in a substantial saving of space or execution time, space because the storage of the zero elements is suppressed and time because we do no operations with them. Consider scahng the columns of an n x n matrix A. Mathematically, we do this by postmultiplying A by a diagonal matrix S of scale factors,
But no sane programmer would store S as an n x n matrix. He would store it as a vector, thus using only n memory locations. Likewise, he would not use a matrix multiplication routine for the product A· S. He would multiply all of the elements in the first column of A by the first scale factor, the second column by the second scale factor, and so forth. In this way only n2 arithmetic operations, rather than n3 as with matrix multiphcation, would be needed.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
References
George, A. and Liu, J.W. (1981). Computer Solution of Large Sparse Positive Definite Systems (Prentice-Hall, Englewood Cliffs, NJ.).
Horowitz, E. and Sahni, S. (1984). Fundamentals of Data Structures in PASCAL (Computer Science Press, Rockville, Md.).
Knuth, D.E. (1973). Sorting and Searching: Vol. 3 of The Art of Computer Programming (Addison-Wesley, Reading, Mass.).
Pooch, U.W. and Nieder, A. (1973). A Survey of Indexing Techniques for Sparse Matrices, ACM Computing Surveys, 5, No. 2, p. 109.
Wirth, N. (1976). Algorithms + Data Structures = Programs (Prentice-Hall, Englewood Cliffs, N.J.). In 1985 a version of this book with programming examples in Modulo-2 instead of PASCAL appeared
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 1990 Springer-Verlag New York Inc.
About this chapter
Cite this chapter
Branham, R.L. (1990). Sparse Matrices. In: Scientific Data Analysis. Springer, New York, NY. https://doi.org/10.1007/978-1-4612-3362-6_3
Download citation
DOI: https://doi.org/10.1007/978-1-4612-3362-6_3
Publisher Name: Springer, New York, NY
Print ISBN: 978-1-4612-7981-5
Online ISBN: 978-1-4612-3362-6
eBook Packages: Springer Book Archive