The number of additions and multiplications involved in performing Gaussian elimination on any n × n upper triangular matrix is of the order
O(n)
O(n2)
O(n3)
O(n4)
What is an Upper Triangular Matrix?
An upper triangular matrix has all elements below the diagonal equal to zero. For example, in a 3x3 case:
This means no elimination is needed below the diagonal (since those entries are already 0). So, most of the work is already done!
Gaussian Elimination: General Case
In general, Gaussian elimination on an n × n dense matrix requires about operations (additions + multiplications).
For Upper Triangular Matrices:
You only need to perform back substitution because the matrix is already in row echelon form.
Back Substitution Cost:
For the last variable , 0 operations (just division).
For , 1 multiplication + 1 subtraction.
For , 2 multiplications + 2 subtractions.
...
For , multiplications + subtractions.
So, total operations:
The number of additions and multiplications involved is of the order O(n2)