Examveda

Given the program of naive method.
for i=1 to n do
   for j=1 to n do
       Z[i][j]=0;
       for k=1 to n do 
            ___________________________
Fill in the blanks with appropriate formula

A. Z[i][j] = Z[i][j] + X[i][k]*Y[k][j]

B. Z[i][j] = Z[i][j] + X[i][k] + Y[k][j]

C. Z[i][j] = Z[i][j] * X[i][k]*Y[k][j]

D. Z[i][j] = Z[i][j] * X[i][k] + Y[k][j]

Answer: Option A


This Question Belongs to Data Structure >> Miscellaneous On Data Structures

Join The Discussion

Related Questions on Miscellaneous on Data Structures