What are sparse matrices? How can they be stored in memory?
Answers
Answered by
11
Answer:
Representing a sparse matrix by a 2D array leads to wastage of lots of memory as zeroes in the matrix are of no use in most of the cases. So, instead of storing zeroes with non-zero elements, we only store non-zero elements. This means storing non-zero elements with triples- (Row, Column, value).
❤#⃣✌❤#⃣❤
Answered by
0
Answer:
Explanation: the sparse matrix is a two dimensional array where the majority of the elements have the value null.it is used to avoid the wastage in memory space.
Similar questions