CameraIcon
CameraIcon
SearchIcon
MyQuestionIcon
MyQuestionIcon
1
You visited us 1 times! Enjoying our articles? Unlock Full Access!
Question

Consider a n×n lower triangular matrix, which is stored in row major order where each element occupies s bytes of memory space, then the address of an element A[i][j] can be given as

A
A[i][j]=(ij)+[(ij)n(j1)(j2)2]×S
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
A[i][j]=(j1)+i(i1)2×n
No worries! We‘ve got your back. Try BYJU‘S free classes today!
C
A[i][j]=b+[(i1)+i(j1)2]×S
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
D
A[i][j]=b+[(ij)nj(j1)2]×S
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution

The correct option is C A[i][j]=b+[(i1)+i(j1)2]×S
The matrix where the entries below the main diagonal are zero is called the upper triangular matrix.
Where as if all the entries above the main diagonal in the matrix are zero it is called as a lower triangular matrix.
The address of an element A[i][j]. can be given as :
A[i][j]=b+[(i1)+i(j1)2]×S

flag
Suggest Corrections
thumbs-up
0
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Sparse Matrices
OTHER
Watch in App
Join BYJU'S Learning Program
CrossIcon