PLU
-factorization
PLU
is
LU
with pivoting (although ``P'' stands for permutation).
Permutation matrices
:
Each row or each column has exactly one 1 and 0 for the rest.
Example:
Property:
What if
happens in
LU
-factorization?
Want to find a permutation matrix
P
, such that
A
=
PLU
.
Algorithm
If
n
= 1, return
.
Find a non-zero element
in the first row of
A
. (If not, then the system is not solvable.)
Define a permutation matrix
such that
,
for
,
All the other elements of
Q
are 0.
Let
B
=
QA
. Notice that
.
Write
B
as
Define
. Recursively compute
Return
Correctness of the algorithm (HW)
Operation count (HW)
Next:
Summary
Up:
SOLVING LINEAR SYSTEMS
Previous:
LU-factorization