The advantages of using LU decomposition are that it can be reused to compute multiple solutions.
For example, if you want to solve the equation
Ax = b
for constant A and many different b , then you only need to calculate the decomposition of LU A once, and it can be reused for each b . However, with the elimination of the Gauss-Jordan, you will have to redo all the work for each b
The reason this happens faster is because the Gaussian-Jordanian exception scales as O (n ^ 3), but the substitution step of the LU decomposition method only scales as O (n ^ 2). Therefore, for the LU case, you only need to perform one step O (n ^ 3) for each b .
A reasonable set of notes on this subject can be found here.
source share