What is a sparse matrix?

What is a sparse matrix ?

Hey @ishabehera, suppose there is a matrix of size say (n,m) and matrix contains lot of zeros in it. So sometimes its not helpful to allocate a space for n*m matrix, its better to use different strategies to represent the matrix.

One way is sparse matrix representation, where assume that there are three columns,
‘row number’, ‘column number’, ‘value’. We store all non zero values in this table. This way we will save a lot of space.

Hope this resolved your doubt.
Plz mark the doubt as resolved in my doubts section. :blush:

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.