Week 7 Programming Assignment - Question: Expected Learning Outcomes From This Assignment
Week 7 Programming Assignment - Question: Expected Learning Outcomes From This Assignment
2T1 ― T2 = 40
― T1 + 2T2 ― T3 = 25
― T2 + 2T3 ― T4 = 0
― T3 + 2T4 = 40
Algorithm:
1.) For a given N dimension matrix enter the value of Sub-diagonal, Main-diagonal and
super-diagonal matrices value. (Note: last element of super-diagonal matrix and first
element of a sub-diagonal element should be zero.)
2.) Forward elimination
For first row
P(1)=b(1)
Q(1)=d(1)/P(1)
For subsequent row
P(i)= b(i)-((a(i)*c(i-1))/P(i-1));
Q(i)= (d(i)-(a(i)*Q(i-1)))/P(i);
S. No Size of matrices Time taken using Time taken using Time Difference
Thomas Algorithm, t1 Matrix inversion, between both
t2 method (t1-t2)
1 10X10
2 100X100
3 500X500
4 1000X1000
Reference:
https://www.youtube.com/watch?v=nHt64KA_iDY
Week 7 Programming Assignment 3
Max. mark 5
1.) For a large set of equations, the computational cost required to solve Gauss Elimination
method is _______ Thomas algorithm. (1 Mark)
2.) For the following set of equation, solution using MATLAB Programming is (3 Marks)
2T1 ― T2 = 40
― T1 + 2T2 ― T3 = 25
― T2 + 2T3 ― T4 = 0
― T3 + 2T4 = 40
3.) To solve a large set of equations (consider the case of a 3D numerical simulation) the
computational power required is _______ for Thomas Algorithm as compared to direct
Matrix inversion method. (1 Mark)