Skip to main content

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,

$$A' = A \cdot S \cdot$$
(3.1)

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

eBook
USD 16.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 16.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

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.).

    Google Scholar 

  • Horowitz, E. and Sahni, S. (1984). Fundamentals of Data Structures in PASCAL (Computer Science Press, Rockville, Md.).

    Google Scholar 

  • Knuth, D.E. (1973). Sorting and Searching: Vol. 3 of The Art of Computer Programming (Addison-Wesley, Reading, Mass.).

    Google Scholar 

  • Pooch, U.W. and Nieder, A. (1973). A Survey of Indexing Techniques for Sparse Matrices, ACM Computing Surveys, 5, No. 2, p. 109.

    Article  MATH  Google Scholar 

  • 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

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints 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

Publish with us

Policies and ethics