Vidyalelo
Data Structure · Q345

Miscellaneous on Data Structures

Programming · Data Structure · question 345

Q345

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]
Answer
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

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board