Suppose that two n x n matrices A and B are stored on a 2D mesh
of n2 pro-
cessors such that Pi;j holds A[i; j] and B[j; i]. Write
pseudocode for an asynchronous
algorithm that computes the product of A and B in
O(n).
here we have two nxn matrices are A and B are sorted on a 2D of n2 processors
psuedocode : it is defined as the outline of the programming language.
input: writing psudocode for the asynchronus algorithm that computes the product of A and B in O(n).
output: user enter the A and B matrices
matrices should contain 2D like two rows and two colomns
here P=AxB
while P marice solve within O(n)
its ok
otherwise reset the A and B matrice values
and perform product operations to get the O(n).
Get Answers For Free
Most questions answered within 1 hours.