Consider the definition-based algorithm for adding two n-by-n matrices. What is its basic operation? How many times is it performed as a function of the matrix order n? As a function of the total number of elements in the input matrices?

Respuesta :

Answer:

1. Addition

2.n^2 no of elements

3. total number of  elements in two given matrices is N = 2(n^2)

Step-by-step explanation:

1. Addition of two numbers is the basic operation which will result in another n by n matrix.

2.

Consider two matrices of order n.

i.e. each matrix contains n^2 no of elements

3.Since the total number of  elements in two given matrices is N = 2(n^2), the total number of additions

can also be expressed as n^2 = N/2.

Answer:Check the attached

Step-by-step explanation:

Ver imagen lukman4real