|
Let's go back to the derivation of the cost for Gaussian Elimination (Section 5.1). This time, we will pay attention to the location of the elements involved in the calculations. Table 5.1 and Table 5.2 report the operation counts that we have already computed for Gaussian Elimination, but they separate the operations required to modify the coefficient matrix from those required to modify the right-hand side.
Table 5.1 Review of costs for forward elimination
phase of Gaussian Elimination
Table 5.2 Review of costs for back substitution phase of Gaussian Elimination In Table 5.3 and Table 5.4, the operation counts have been modified for a problem with k right-hand sides.
Table 5.3 Costs for for forward elimination phase of Gaussian
Elimination -- multiple right-hand sides
Table 5.4 Costs for back substitution phase of Gaussian Elimination -- multiple right-hand sides We can write the total number of multiplications as follows:
Applying (5.1) and (5.2), we find that the total number of multiplications required to solve a problem with k right-hand sides using Gaussian Elimination is
Now let's compute the number of additions. The total is
Combining these terms and simplifying, we obtain |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Send comments on material to Cynthia Lanius
These pages are maintained by Hilena
Vargas (hvargas@rice.edu)
Updated: March 13, 2001
Copyright © 2001 Richard Tapia and Cynthia Lanius