The former is suitable for dense matrices the latter is


Suppose we wish to store an n × n boolean matrix (0 and 1 elements only). We could represent it by the bits themselves, or we could represent the matrix by listing the positions of the 1's as pairs of integers, each integer requiring ⌈log2 n⌉ bits. The former is suitable for dense matrices; the latter is suitable for sparse matrices. How sparse must the matrix be (i.e., what fraction of the elements should be 1's) for the sparse representation to save space?

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: The former is suitable for dense matrices the latter is
Reference No:- TGS01598707

Expected delivery within 24 Hours