Question 23Asked in Bihar STET Paper 2 Computer Science (Class 11-12), 12 Sep 2023, Shift 2 + 1 more paper

Which representation is best suited for matrices with a small number of non-zero elements in each row and column?

  1. ATriplet representation
  2. BCompressed sparse row (CSR) format
  3. CCompressed sparse column (CSC) format
  4. DArray representation
Show answerHide answer

Correct answer: (C) Compressed sparse column (CSC) format

Explanation

Compressed sparse formats store only non-zero values with their indices; CSC compresses the data column by column, so it suits sparse matrices and column-wise access. CSR is the row-wise counterpart.

From Bihar STET Paper 2 Computer Science (Class 11-12) PYQ, 12 Sep 2023, Shift 2

This is question 23 of Bihar STET Paper 2 Computer Science (Class 11-12) PYQ, 12 Sep 2023, Shift 2. See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.

Asked in 2 papers