SlideShare a Scribd company logo
Numerical Computation and
Optimization
Solution of Linear Algebraic Equations
Gaussian Elimination
NAIVE GAUSS ELIMINATION
By
Assist Prof. Dr. Ahmed Jabbar
The basic idea behind methods for solving a system of linear equations is to reduce them to
linear equations involving a single unknown, because such equations are trivial to solve.
Such a reduction is achieved by manipulating the equations in the system in such a way that
the solution does not change, but unknowns are eliminated from selected equations until,
finally, we obtain an equation involving only a single unknown. These manipulations are
called elementary row operations, and they are defined as follows:
• Multiplying both sides of an equation by a scalar
• Reordering the equations by interchanging both sides of the ith and jth equation in the
system
• Replacing equation i by the sum of equation i and a multiple of both sides of equation j
• The third operation is by far the most useful. We will now demonstrate how it can be used
to reduce a system of equations to a form in which it can easily be solved.
Gaussian Elimination and Back Substitution
budget optimization using gaussian elimination ppt
Note that the number of steps of forward elimination is (n-1)
• In case of three equations
# steps =(n-1)=(3-1)= 2 steps
budget optimization using gaussian elimination ppt
x1
PITFALLS OF ELIMINATION METHODS
•Division by Zero
•Round-Off Errors
•Ill-Conditioned Systems
Divide by Zero 
Round-Off Errors 
Ill-Conditioned Systems
ill-conditioned system is one with a
determinant close to zero
Techniques For Improving
Solutions
budget optimization using gaussian elimination ppt
budget optimization using gaussian elimination ppt
budget optimization using gaussian elimination ppt
Use of More Significant Figures
• The simplest remedy for ill-conditioning is to use more
significant figures in the computation.
• If your application can be extended to handle larger word
size, such a feature will greatly reduce the problem.
However, a price must be paid in the form of the
computational and memory overhead connected with using
extended precision.
Pivoting
The Problem
obvious problems occur when a pivot element is zero because the
normalization step leads to division by zero. Problems may also arise
when the pivot element is close to, rather than exactly equal to, zero
because if the magnitude of the pivot element is small compared to the
other elements, then round-off errors can be introduced.
Pivoting
Possible solution
Therefore, before each row is normalized, it is advantageous to
determine the largest available coefficient in the column below the pivot
element. The rows can then be switched so that the largest element is the
pivot element. This is called partial pivoting.
If columns as well as rows are searched for the largest element and then
switched, the procedure is called complete pivoting. Complete pivoting
is rarely used because switching columns changes the order of the x’s
and, consequently, adds significant and usually unjustified complexity
to the computer program.
budget optimization using gaussian elimination ppt
Forward
Elimination
budget optimization using gaussian elimination ppt
budget optimization using gaussian elimination ppt
budget optimization using gaussian elimination ppt
budget optimization using gaussian elimination ppt
budget optimization using gaussian elimination ppt
budget optimization using gaussian elimination ppt
Back substitution
budget optimization using gaussian elimination ppt
budget optimization using gaussian elimination ppt
budget optimization using gaussian elimination ppt
budget optimization using gaussian elimination ppt
HW: Solve the following with Gaussian elimination.
Note: Do as required!!!

More Related Content

PPTX
Gauss Elimination and Gauss Jordan.pptx
PPTX
Dimensionality Reduction.pptx
PPTX
A brief study on linear programming solving methods
PPTX
Direct Methods For The Solution Of Systems Of
PPTX
Unit 2.pptx
PPTX
Simplex Algorithm
PPT
dimension reduction.ppt
PDF
Scaling and Normalization
Gauss Elimination and Gauss Jordan.pptx
Dimensionality Reduction.pptx
A brief study on linear programming solving methods
Direct Methods For The Solution Of Systems Of
Unit 2.pptx
Simplex Algorithm
dimension reduction.ppt
Scaling and Normalization

Similar to budget optimization using gaussian elimination ppt (20)

PPTX
Regression Analysis.pptx
PPTX
Regression Analysis Techniques.pptx
PDF
Lecture 7 - Bias, Variance and Regularization, a lecture in subject module St...
PPTX
Varaiational formulation fem
PDF
Linear programming class 12 investigatory project
PPTX
numerical method chapter 5.pptxggggvvgggbg
PDF
3.1. Linear Regression and Gradient Desent.pdf
PPTX
Linear Programing.pptx
PPT
15303589.ppt
PDF
Chapter 3.Simplex Method hand out last.pdf
PDF
Linear regression
PPTX
Regression ppt
PPTX
Matrix OLS dshksdfbksjdbfkdjsfbdskfbdkj.pptx
PPTX
Transformation of variables
PPTX
regression analysis presentation slides.
PDF
01 algebra
PDF
Engineering Numerical Analysis-Introduction.pdf
PPTX
Ai saturdays presentation
PPTX
Multiple sagement trapezoidal rule
PPTX
Loss function in machine learning .pptx
Regression Analysis.pptx
Regression Analysis Techniques.pptx
Lecture 7 - Bias, Variance and Regularization, a lecture in subject module St...
Varaiational formulation fem
Linear programming class 12 investigatory project
numerical method chapter 5.pptxggggvvgggbg
3.1. Linear Regression and Gradient Desent.pdf
Linear Programing.pptx
15303589.ppt
Chapter 3.Simplex Method hand out last.pdf
Linear regression
Regression ppt
Matrix OLS dshksdfbksjdbfkdjsfbdskfbdkj.pptx
Transformation of variables
regression analysis presentation slides.
01 algebra
Engineering Numerical Analysis-Introduction.pdf
Ai saturdays presentation
Multiple sagement trapezoidal rule
Loss function in machine learning .pptx
Ad

Recently uploaded (20)

PDF
How to Get Funding for Your Trucking Business
PDF
MSPs in 10 Words - Created by US MSP Network
DOCX
Business Management - unit 1 and 2
PDF
Power and position in leadershipDOC-20250808-WA0011..pdf
PPTX
HR Introduction Slide (1).pptx on hr intro
PDF
How to Get Business Funding for Small Business Fast
PDF
kom-180-proposal-for-a-directive-amending-directive-2014-45-eu-and-directive-...
DOCX
unit 2 cost accounting- Tender and Quotation & Reconciliation Statement
PDF
Katrina Stoneking: Shaking Up the Alcohol Beverage Industry
PPT
340036916-American-Literature-Literary-Period-Overview.ppt
PPTX
Principles of Marketing, Industrial, Consumers,
PDF
Nidhal Samdaie CV - International Business Consultant
PPTX
job Avenue by vinith.pptxvnbvnvnvbnvbnbmnbmbh
PPTX
CkgxkgxydkydyldylydlydyldlyddolydyoyyU2.pptx
PDF
A Brief Introduction About Julia Allison
PPTX
Belch_12e_PPT_Ch18_Accessible_university.pptx
PDF
Chapter 5_Foreign Exchange Market in .pdf
PDF
Reconciliation AND MEMORANDUM RECONCILATION
PPTX
Amazon (Business Studies) management studies
PDF
IFRS Notes in your pocket for study all the time
How to Get Funding for Your Trucking Business
MSPs in 10 Words - Created by US MSP Network
Business Management - unit 1 and 2
Power and position in leadershipDOC-20250808-WA0011..pdf
HR Introduction Slide (1).pptx on hr intro
How to Get Business Funding for Small Business Fast
kom-180-proposal-for-a-directive-amending-directive-2014-45-eu-and-directive-...
unit 2 cost accounting- Tender and Quotation & Reconciliation Statement
Katrina Stoneking: Shaking Up the Alcohol Beverage Industry
340036916-American-Literature-Literary-Period-Overview.ppt
Principles of Marketing, Industrial, Consumers,
Nidhal Samdaie CV - International Business Consultant
job Avenue by vinith.pptxvnbvnvnvbnvbnbmnbmbh
CkgxkgxydkydyldylydlydyldlyddolydyoyyU2.pptx
A Brief Introduction About Julia Allison
Belch_12e_PPT_Ch18_Accessible_university.pptx
Chapter 5_Foreign Exchange Market in .pdf
Reconciliation AND MEMORANDUM RECONCILATION
Amazon (Business Studies) management studies
IFRS Notes in your pocket for study all the time
Ad

budget optimization using gaussian elimination ppt

  • 1. Numerical Computation and Optimization Solution of Linear Algebraic Equations Gaussian Elimination NAIVE GAUSS ELIMINATION By Assist Prof. Dr. Ahmed Jabbar
  • 2. The basic idea behind methods for solving a system of linear equations is to reduce them to linear equations involving a single unknown, because such equations are trivial to solve. Such a reduction is achieved by manipulating the equations in the system in such a way that the solution does not change, but unknowns are eliminated from selected equations until, finally, we obtain an equation involving only a single unknown. These manipulations are called elementary row operations, and they are defined as follows: • Multiplying both sides of an equation by a scalar • Reordering the equations by interchanging both sides of the ith and jth equation in the system • Replacing equation i by the sum of equation i and a multiple of both sides of equation j • The third operation is by far the most useful. We will now demonstrate how it can be used to reduce a system of equations to a form in which it can easily be solved. Gaussian Elimination and Back Substitution
  • 4. Note that the number of steps of forward elimination is (n-1) • In case of three equations # steps =(n-1)=(3-1)= 2 steps
  • 6. x1
  • 7. PITFALLS OF ELIMINATION METHODS •Division by Zero •Round-Off Errors •Ill-Conditioned Systems
  • 10. Ill-Conditioned Systems ill-conditioned system is one with a determinant close to zero
  • 15. Use of More Significant Figures • The simplest remedy for ill-conditioning is to use more significant figures in the computation. • If your application can be extended to handle larger word size, such a feature will greatly reduce the problem. However, a price must be paid in the form of the computational and memory overhead connected with using extended precision.
  • 16. Pivoting The Problem obvious problems occur when a pivot element is zero because the normalization step leads to division by zero. Problems may also arise when the pivot element is close to, rather than exactly equal to, zero because if the magnitude of the pivot element is small compared to the other elements, then round-off errors can be introduced.
  • 17. Pivoting Possible solution Therefore, before each row is normalized, it is advantageous to determine the largest available coefficient in the column below the pivot element. The rows can then be switched so that the largest element is the pivot element. This is called partial pivoting. If columns as well as rows are searched for the largest element and then switched, the procedure is called complete pivoting. Complete pivoting is rarely used because switching columns changes the order of the x’s and, consequently, adds significant and usually unjustified complexity to the computer program.
  • 31. HW: Solve the following with Gaussian elimination. Note: Do as required!!!