Gaussian Elimination
Gaussian Elimination
In this homework, we will formalize the famous algorithm called Gaussian elimination.
The method we use is attributed to Gauss, and some books classify the method
as the Transform and Conquer method. In this paradigm, one either simplifies the
instance to a more amenable one or represents the instance differently, which enables
employing efficient algorithms for it. The latter is an example application of reduction,
an algorithm design paradigm, that we will discuss in great detail when we study
complexity theory.
Transform and Conquer: That’s the secret to life... replace one worry with
another.
Charles M. Schulz
Problem 1. Given the above system of equation in upper triangular form, use the
substitution method to solve the system. [3 marks]
Solution.
1
3 Transforming System of Equation into an upper
triangular matrix
Transform a system of linear equations into an upper triangular matrix using Gaussian
elimination.
[5 marks]
Solution.
Problem 3. Transform the following system into upper triangular form using Gaus-
sian elimination:
[5 marks]
Solution.
4 Back Substitution
Back substitution is used to solve an upper triangular system.
Solution.
2
Problem 5. Transform
the
following matrix into upper triangular form using Gaus-
1 2 3
sian elimination: 4 5
6 [5 marks]
7 8 9
Solution.
Problem 6. Given the upper triangular matrix from the previous problem, perform
back substitution to find the solution vector. [5 marks]
Solution.
3
5.2 Pseudocode for Backward Substitution
4
7.1 Total Runtime
Solution.
Problem 8. Explain why Gaussian elimination is not suitable for solving very large
systems of equations in practice. [5 marks]
Solution.