PLU decomposition - An Example

แชร์
ฝัง
  • เผยแพร่เมื่อ 6 ม.ค. 2025

ความคิดเห็น • 46

  • @brightsideofmaths
    @brightsideofmaths  ปีที่แล้ว +1

    Don't forget to download the pdf version for free!
    tbsom.de/s/ov

  • @PunmasterSTP
    @PunmasterSTP 2 ปีที่แล้ว +7

    PLU? More like "Please and thank you!" These videos are solid gold.

  • @jaysonandre295
    @jaysonandre295 3 ปีที่แล้ว +5

    You’ve got kind heart... I suscribed.. from being a stubborn guy to a subscriber of bright side .. Thanks a lot

  • @marianoaponte2518
    @marianoaponte2518 3 ปีที่แล้ว +19

    If you use this algorithm in finite-precision environments (such as a computer) you should use the MAX pivot on the column, instead of an arbitrary non-zero one, in order to have a multiplier less than or equal 1, which is better because it will leave the algorithm stable and won't affect precision of results!

    • @brightsideofmaths
      @brightsideofmaths  3 ปีที่แล้ว +4

      Thanks for the comment. You are absolutely right. My algorithm is a pen-and-paper strategy and in general is not numerically stable.

    • @marianoaponte2518
      @marianoaponte2518 3 ปีที่แล้ว +1

      @@brightsideofmaths but you made it easy, keep going ❤️

    • @readbhagwatgeeta3810
      @readbhagwatgeeta3810 ปีที่แล้ว

      ​@@marianoaponte2518 can you please explain in detail your point ? I am not able to get it😢

    • @brightsideofmaths
      @brightsideofmaths  ปีที่แล้ว

      @@readbhagwatgeeta3810 Computers can divide perfectly because rounding errors occur. So you want to avoid too many rounding errors in your algorithm.

    • @darcash1738
      @darcash1738 ปีที่แล้ว

      Where would you pivot around for it to be the max? I don’t get the terminology here.

  • @PaulWintz
    @PaulWintz 11 หลายเดือนก่อน

    At 5:10, when multiplying the L matrix on both sides by a permuation matrix, it is important that the columns being swapped only have 1's on the diagonal. Imagine that you are switching two non-adjacent rows/columns, say 4 and 6. The column swap could moves the (5, 4) entry, below the diagonal, into the (5, 6) entry, above the diagonal. But, since we do this operation to columns that only have zeros except on the diagonal, the lower triangular structure is presereved.

    • @brightsideofmaths
      @brightsideofmaths  11 หลายเดือนก่อน

      Very good. Always remember that the PLU decomposition is just the Gaussian elimination in the correct order :)

  • @gonruz
    @gonruz ปีที่แล้ว

    I was so confused with how the row exchanges affect the L matrix, with just 10 seconds of the video i was finally capable to understand, thank you

  • @hiuwakwan7377
    @hiuwakwan7377 4 ปีที่แล้ว +6

    i am so confused about 5:06 (exchange the column of c3 and c4). would you explain deeply?

    • @brightsideofmaths
      @brightsideofmaths  4 ปีที่แล้ว +1

      Just apply the matrix P_34 from the right. Write the calculation down and you see it :)

    • @hiuwakwan7377
      @hiuwakwan7377 4 ปีที่แล้ว +1

      @@brightsideofmaths i donno why we need to change the column and row of lower triangular matrix.

    • @luiskao8438
      @luiskao8438 4 ปีที่แล้ว +4

      @@hiuwakwan7377 Matrix A has to be decomposed into the form PLU. So in the equation A = (P_12)L(P_34)U, we have to make (L(P_34)) into a new L. And because the result of (L(P_34)) will not be a lower triangular matrix, we have to switch the row 3 and 4 again.

    • @Sajad-d1q
      @Sajad-d1q หลายเดือนก่อน

      ​@@hiuwakwan7377you must do that since you wanna get rid of the p matrix stuck between L and U.

  • @blaise3004
    @blaise3004 3 ปีที่แล้ว +3

    Thanks for the nice explanation!

  • @lukas6610
    @lukas6610 ปีที่แล้ว

    Thanks saved me alot of time

  • @mandyu8621
    @mandyu8621 3 ปีที่แล้ว +8

    Thank you so much! It is really helpful!

  • @patrickleah4129
    @patrickleah4129 3 ปีที่แล้ว +2

    what if in the final step you did in order to put the permutation matrix in the right spot- the "L" matrix did not end up as a lower triangular matrix.

  • @yassinebesseghir2754
    @yassinebesseghir2754 3 ปีที่แล้ว +1

    that's awesome ! thanks!!!

  • @abcrm101
    @abcrm101 ปีที่แล้ว

    is A=PLU different from PA=LU? At my Uni we are supposed to use PA=LU, how do I convert one form to the other?

    • @brightsideofmaths
      @brightsideofmaths  ปีที่แล้ว

      Multiplying with P :) You can find that in my Linear Algebra course tbsom.de/s/la

  • @kelvinchandra2004
    @kelvinchandra2004 8 หลายเดือนก่อน

    Hi, I have a question about the final result.
    Based on my textbook, the format is written as "PA=LU"
    Your final result becomes "A=PLU"
    So does that mean it mean that the P is also the same either in PA = LU or A = PLU, or in PA = LU, the P shall be the inverse from A = PLU?
    I also figured out that if P x P = I-Matrix (1, 0, 0; 0, 1, 0; 0, 0, 1) [This is calculated that both Ps are same and not from your examples but from random thoughts.] Which means P in inverse is exact the same as P also.
    I am looking forward for your help. Thank you! 🙏

    • @brightsideofmaths
      @brightsideofmaths  8 หลายเดือนก่อน

      Multiply P^{-1} to both side from the left to get the other result.

    • @kelvinchandra2004
      @kelvinchandra2004 8 หลายเดือนก่อน

      @@brightsideofmaths Ok, thank you very much!

    • @brightsideofmaths
      @brightsideofmaths  8 หลายเดือนก่อน

      More details in my book, see link in the description.

  • @consumeentertainment9310
    @consumeentertainment9310 3 ปีที่แล้ว +2

    Nicely explained !!

  • @qihanlu2612
    @qihanlu2612 2 ปีที่แล้ว

    Hi, I have a question. When we are doing the normal LU decomposition, we do the reverse order, which means we start at the end. However, when we are doing PLU decomposition, why do we start at the front?

    • @brightsideofmaths
      @brightsideofmaths  2 ปีที่แล้ว

      What do you mean by starting at the end? You can check my video about the LU-decomposition to see the differences :)

  • @daisy6392
    @daisy6392 2 ปีที่แล้ว +1

    This is such a helpful video, thank you so much

  • @laayounidouae9824
    @laayounidouae9824 24 วันที่ผ่านมา

    PLEASE I don t undestand why we have just 4 column in the L matrix and in the U matrix we have 5

  • @ayang315
    @ayang315 ปีที่แล้ว

    I didn't really get why you were able to do those final row and column exchanges to the identity matrix without doing them to the matrix U

    • @brightsideofmaths
      @brightsideofmaths  ปีที่แล้ว +1

      I have a linear algebra course where I go into the theoretical detail of row exchanges: tbsom.de/s/la

  • @phanhuy5350
    @phanhuy5350 2 ปีที่แล้ว

    thank you so much

  • @the_eternal_student
    @the_eternal_student 4 หลายเดือนก่อน

    I did not understand aabout the squaring and column exchange.

    • @brightsideofmaths
      @brightsideofmaths  4 หลายเดือนก่อน

      I have a whole Linear Algebra course about it: tbsom.de/s/la

  • @bharathhkrishna
    @bharathhkrishna 8 หลายเดือนก่อน

    nice