Explain an efficient and effective way of storing two symmetric matrices of the same order in the memory.
A n-square matrix array will be symmetric if a[j][k]=a[k][j] for all j and k.
For a symmetric matrix, we need to store elements which are lying on and below the diagonal of the matrix or those on and above the diagonal. Two symmetric matrix of A and B of the same dimension can be stored in an n*(n+1) array C where c[j][k]=a[j][k] when j≥k but c[j][k-1]=b[j][k-1] when j