Explore BrainMass
Share

Explore BrainMass

    Sparse Matrices, Two-Dimensional Matrices and Lists

    This content was COPIED from BrainMass.com - View the original, and get the already-completed solution here!

    One of the problems of storing data in a matrix (a two-dimensional Cartesian structure) is that if not all of the elements are used, there might be quite a waste of space. In order to handle this, we can use a construct called a "sparse matrix", where only the active elements appear. Each such element is accompanied by its two indexes (the row and the column). Discuss in what ways such a structure is similar to and/or different than a list.

    © BrainMass Inc. brainmass.com October 9, 2019, 9:04 pm ad1c9bdddf
    https://brainmass.com/computer-science/matlab/sparse-matrices-two-dimensional-matrices-and-lists-172359

    Solution Summary

    This solution describes the advantages of using sparse matrices over two-dimensional matrices, apart from exploring the differences between lists and sparse matrices.

    $2.19