9 Let the two-dimensional array A[1...m,1...n] be stored in the array B[1...m*n] by row-major order, then the subscript of the element A[i,j] in array B is( ).
A. (i-1)n+j-1
B. (i-1)n+j
C. i(j-1)
D. j*m+i-1
查看答案
10 There is a sparse matrix of 100 * 90, and there are 10 non-zero elements (int type). Assuming that the int type occupies 2 bytes, the number of bytes required to store the matrix with a triple sequence table is ( ).
A. 66
B. 60
C. 18000
D. 33
11 The purpose of compressed storage of sparse matrix is ( ).
A. to save storage space
B. facilitating matrix operations
C. easy input and output
D. reducing the time complexity of operations
12 The number of elements in array A[0...4,-1...-3,5...7] is ( ).
A. 45
B. 55
C. 36
D. 16
13 Each element of the array A[0...5,0...6] occupies 5 bytes, and it is stored in column-major order in memory whit a starting address of 1000, then the address of element A[5,5] is ( ).
A. 1175
B. 1180
C. 1205
D. 1210