English, asked by prajaktapopatlagad19, 2 months ago

the complexity of adding two matrices of order m*n is​

Answers

Answered by mahakincsem
0

The complexity of adding two matrices of order m*n is​ mn

The complexity of two matrices for addition

  • For the addition of two matrices of order mxn, where "m" is the number of rows and "n" is the number of columns. It is necessary that the order of both the matrices to be added is the same.
  • Such as the number of rows and columns of the first matrix should be equal to the number of rows and columns of the second matrix.
  • Therefore, the complexity of the addition of two matrices is "mxn" because if the order of both matrices is not the same, we can not add them.

Complete question is

The complexity of adding two matrices of order m*n is

a. m + n

b. mn

c. max(m, n)

d. min(m, n)

Read more on

https://compsciedu.com/Data-Structures-and-Algorithms/Algorithm-Complexity/discussion/14255

Similar questions