1.1 Calculate the total number of steps required by the algorithm, and express it as a function of n (fln)). 1.2 Determine the Time complexity of the algorithm using Big-O notation. O(n) the highest...


I need answer to these question ASAP.



1.1 Calculate the total number of steps required by the algorithm, and express it as a<br>function of n (fln)).<br>1.2 Determine the Time complexity of the algorithm using Big-O notation.<br>O(n) the highest power of n<br>

Extracted text: 1.1 Calculate the total number of steps required by the algorithm, and express it as a function of n (fln)). 1.2 Determine the Time complexity of the algorithm using Big-O notation. O(n) the highest power of n
# 3x3 matrix<br>X = [[12, 7, 3],<br>[4, 5, 6],<br>[7, 8, 9]]<br># 3x4 matrix<br>Y = [[5, 8, 1, 2],<br>[6, 7, 3, 0],<br>[4, 5, 9, 1]]<br>%3D<br># empty matrix to store the result<br>Z = [[0, 0, 0, 0],<br>[0, о, о, е],<br>[0, е, в, е]]<br>%3D<br>def MatrixMultiplication(A,B,C):<br># iterating by row of A<br>for i in range(len(A)):<br># iterating by columns by B<br>for j in range(len(B[0])):<br># iterating by rows of B<br>for k in range(len(B)):<br>C[i][j] += A[i][k] * B[k][j]<br>for r in C:<br>print(r)<br># function call<br>MatrixMultiplication(X,Y,z)<br>

Extracted text: # 3x3 matrix X = [[12, 7, 3], [4, 5, 6], [7, 8, 9]] # 3x4 matrix Y = [[5, 8, 1, 2], [6, 7, 3, 0], [4, 5, 9, 1]] %3D # empty matrix to store the result Z = [[0, 0, 0, 0], [0, о, о, е], [0, е, в, е]] %3D def MatrixMultiplication(A,B,C): # iterating by row of A for i in range(len(A)): # iterating by columns by B for j in range(len(B[0])): # iterating by rows of B for k in range(len(B)): C[i][j] += A[i][k] * B[k][j] for r in C: print(r) # function call MatrixMultiplication(X,Y,z)

Jun 05, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here