[Solved] What is the relation between Sparsity and Density of a matrix?

What is the relation between Sparsity and Density of a matrix?

a) Sparsity = 1 – Density
b) Sparsity = 1 + Density
c) Sparsity = Density*Total number of elements
d) Sparsity = Density/Total number of elements

Answer: a
Explanation: The sparsity of a matrix is equal to 1 minus the Density of the matrix. The Sparsity of matrix is defined as the total number of Zero Valued elements divided total number of elements.

Comments