Which of the following representations is most suitable for efficient row-wise traversal of a sparse matrix?
Show answerHide answer
Correct answer: (B) Compressed sparse row (CSR) format
Explanation
CSR stores the non-zeros row by row with a row-pointer array, so all elements of a row are contiguous and can be traversed efficiently.