Menu

(Solved) : 1 Matlab Code 1 J 1 N K 1 J 1 Ali J Ali J Ali K Aj K End End K 1 J 1 J J J J J K J K J J E Q31893443 . . .

1) For the MATLAB code, for -1: for i-j+1:n for k = 1: j-1 ali,j) ali,j)+ali,k)* aj,k) end end for k-1:j-1 a(j, j) = a(j, j)-a(j,k)* a(j,k) / a(j, j) end end a) Compute the exact number of flops (arithmetic operations) in the entire algorithm in terms of n. You do not need to multiply out the polynomials. b) Compute only the highest-power term for the number of flops in the algorithm using integration.1) For the MATLAB code, for -1: for i-j+1:n for k = 1: j-1 ali,j) ali,j)+ali,k)* aj,k) end end for k-1:j-1 a(j, j) = a(j, j)-a(j,k)* a(j,k) / a(j, j) end end a) Compute the exact number of flops (arithmetic operations) in the entire algorithm in terms of n. You do not need to multiply out the polynomials. b) Compute only the highest-power term for the number of flops in the algorithm using integration. Show transcribed image text

Expert Answer


Answer to 1 Matlab Code 1 J 1 N K 1 J 1 Ali J Ali J Ali K Aj K End End K 1 J 1 J J J J J K J K J J E Q31893443 . . .

OR