GATE DA 2025 · Gaussian Elimination

MCQ · 1 mark · Problem EM-MTRX-0005

The number of additions and multiplications involved in performing Gaussian elimination on any \(n \times n\) upper triangular matrix is of the order
  1. A
    \(O(n)\)
  2. B
    \(O(n^2)\)
  3. C
    \(O(n^3)\)
  4. D
    \(O(n^4)\)

Solve it on GATE DA practice →More Systems of Linear Equations problems

Show the worked solutionAn upper triangular matrix needs no elimination steps; what remains is back substitution.\[\boxed{x_i=\frac{1}{u_{ii}}\Big(b_i-\sum_{j>i}u_{ij}x_j\Big)}\]Row \(i\) costs about \(n-i\) multiplications and additions, so the total is\[\sum_{i=1}^{n}(n-i)=\frac{n(n-1)}{2}=O(n^2).\]Answer: B

GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com