Engineering Questions with Answers - Multiple Choice Questions

Home » MCQs » Aeronautical Engineering » Sparse Matrix Multiple Choice MCQ

# Sparse Matrix Multiple Choice MCQ

Which matrix has most of the elements (not all) as Zero?

a) Identity Matrix

b) Unit Matrix

c) Sparse Matrix

d) Zero Matrix

**
View Answer**

Answer: c

Explanation: Sparse Matrix is a matrix in which most of the elements are Zero. Identity Matrix is a matrix in which all principle diagonal elements are 1 and rest of the elements are Zero. Unit Matrix is also called Identity Matrix. Zero Matrix is a matrix in which all the elements are Zero.

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

**
View Answer**

Answer: a

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

Who coined the term Sparse Matrix?

a) Harry Markowitz

b) James Sylvester

c) Chris Messina

d) Arthur Cayley

**
View Answer**

Answer: a

Explanation: Harry Markowitz coined the term Sparse Matrix. James Sylvester coined the term Matrix. Chris Messina coined the term Hashtag and Arthur Cayley developed the algebraic aspects of a matrix.

Is O(n) the Worst case Time Complexity for addition of two Sparse Matrix?

a) True

b) False

**
View Answer**

Answer: a

Explanation: In Addition, the matrix is traversed linearly, hence it has the time complexity of O(n) where n is the number of non-zero elements in the largest matrix amongst two.

The matrix contains m rows and n columns. The matrix is called Sparse Matrix if ________

a) Total number of Zero elements > (m*n)/2

b) Total number of Zero elements = m + n

c) Total number of Zero elements = m/n

d) Total number of Zero elements = m-n

**
View Answer**

Answer: a

Explanation: For matrix to be Sparse Matrix, it should contain Zero elements more than the non-zero elements. Total elements of the given matrix is m*n. So if Total number of Zero elements > (m*n)/2, then the matrix is called Sparse Matrix.

Which of the following is not the method to represent Sparse Matrix?

a) Dictionary of Keys

b) Linked List

c) Array

d) Heap

**
View Answer**

Answer: d

Explanation: Heap is not used to represent Sparse Matrix while in Dictionary, rows and column numbers are used as Keys and values as Matrix entries, Linked List is used with each node of Four fields (Row, Column, Value, Next Node) (2D array is used to represent the Sparse Matrix with three fields (Row, Column, Value).

Is Sparse Matrix also known as Dense Matrix?

a) True

b) False

**
View Answer**

Answer: b

Explanation: Sparse Matrix is a matrix with most of the elements as Zero elements while Dense Matrix is a matrix with most of the elements as Non-Zero element.

Which one of the following is a Special Sparse Matrix?

a) Band Matrix

b) Skew Matrix

c) Null matrix

d) Unit matrix

**
View Answer**

Answer: a

Explanation: A band matrix is a sparse matrix whose non zero elements are bounded to a diagonal band, comprising the main diagonal and zero or more diagonals on either side.

In what way the Symmetry Sparse Matrix can be stored efficiently?

a) Heap

b) Binary tree

c) Hash table

d) Adjacency List

**
View Answer**

Answer: b

Explanation: Since Symmetry Sparse Matrix arises as the adjacency matrix of the undirected graph. Hence it can be stored efficiently as an adjacency list.