- 2077 Chaitra · 3+2 marks
CG algorithm and its limitations
Short answer
CG algorithm: start with x0, r0=b−Ax0, d0=r0; iterate αk=(r_k·r_k)/(d_k·Ad_k), x_{k+1}=x_k+αk d_k, r_{k+1}=r_k−αk A d_k, if small stop; βk=(r_{k+1}·r_{k+1})/(r_k·r_k), d_{k+1}=r_{k+1}+βk d_k. Limitations: only for symmetric positive-definite A; ill-conditioning slows convergence; round-off errors may degrade conjugacy; ineffective for many right-hand sides.
Write down the algorithm for solving a set of linear equations by the conjugate gradient method and its limitations.
Algorithm
- Choose a starting vector (usually ). Compute the residual and set the first search direction .
- For repeat:
- Step length:
- Update the solution:
- Update the residual:
- Check convergence: stop if tolerance.
- Direction factor:
- New direction:
- The last is the solution.
Limitations
- Applies only to symmetric, positive definite matrices (not to general or indefinite systems without modification).
- Convergence slows for ill-conditioned matrices (large ratio of largest to smallest eigenvalue), so preconditioning is often needed.
- Round-off errors destroy the conjugacy of the directions, so more than iterations may be required in practice.
- Gives one right-hand side at a time; a direct (factored) solver is more efficient for many load cases.
- Needs a good stopping criterion; residual may fall while the error is still large.
✓ Answer checked by Claude Opus 5.5 (high effort)
Related questions
- Conjugate gradient method and algorithm · Computational Techniques in Civil Engineering, chapter 2 · asked 2×
- Linear solution techniques; CG algorithm · Computational Techniques in Civil Engineering, chapter 2
- Linear solution techniques; CG two iterations · Computational Techniques in Civil Engineering, chapter 2
- CG algorithm; Gauss-Seidel numerical · Computational Techniques in Civil Engineering, chapter 2
- Conjugate gradient three iterations (10,-6,0) · Computational Techniques in Civil Engineering, chapter 2
- Conjugate gradient numerical (2,-1 system) · Computational Techniques in Civil Engineering, chapter 2 · asked 2×
- Tractive effort up and down a gradient · Utilization of Electrical Energy, chapter 4
- Quadrilateral speed-time curve on down gradient · Utilization of Electrical Energy, chapter 4
- Conditions for solving problems recursively · Data Structure and Algorithm, chapter 5
- Methods for solving recurrences · Data Structure and Algorithm, chapter 9
All Computational Techniques in Civil Engineering chapter 2 questions →