Direct approach of LU factorisation
Let $\v l_k$ be the columns of $L$ and $\v u_k^T$ be the rows of $U$. By matrix multiplication, $$ \begin{align*} A = \sum_{k=1}^{n} \v l_k \v u_k^T. \end{align*} $$
Let $A^{(0)} = A$.
-
Take $\v u_1^T=$ first row of $A^{(0)}$ and $\v l_1 = \frac{1}{A_{11}^{(0)}}\times$ first column of $A^{(0)}$. Then $$ \begin{align*} A^{(1)} := A^{(0)} - \v l_1 \v u_1^T = \pmat{0 & 0 & \ldots & 0 \\ 0 & * & \ldots & * \\ \vdots & \vdots & \ddots & \vdots \\ 0 & * & \ldots & * }. \end{align*} $$
-
Take $\v u_2^T=$ second row of $A^{(1)}$ and $\v l_2 = \frac{1}{A_{22}^{(1)}}\times$ second column of $A^{(1)}$. Then $$ \begin{align*} A^{(2)} := A^{(1)} - \v l_2 \v u_2^T = \pmat{0 & 0 & 0 & \ldots & 0 \\ 0 & 0 & 0 & \ldots & 0 \\ 0 & 0 & * & \ldots & * \\ \vdots & \vdots & \vdots & \ddots & \vdots \\ 0 & 0 & * & \ldots & * }. \end{align*} $$
And so on.
This takes $O(n^3)$ computations. With a better algorithm, we can get $O(n^{\log_2 7}) \approx O(n^{2.8})$.
Example (direct approach of LU factorisation)