KMP Algorithm || LPS Array Intuition || Pattern Searching

Sdílet
Vložit
  • čas přidán 15. 04. 2022
  • Here I cover the LPS array working and intuition in KMP algorithm.

Komentáře • 16

  • @chuckmcgill6673
    @chuckmcgill6673 Před rokem +9

    Finally after 4 hours I am able to understand lps[len-1], thank you.

  • @Timolate
    @Timolate Před rokem +5

    3:50 is exactly what I am looking for, and not explained so clearly in other videos. Thank you for the clear explanation.

  • @pro3757
    @pro3757 Před rokem +2

    Spent hours looking up resources on this topic because of that single line.
    Even the nptel guys did not bother explaining the "why". Good job bro. Thank you! ❤

  • @ujjvalsharma5055
    @ujjvalsharma5055 Před 11 měsíci +2

    Great explanation. You deserve more views.

  • @aryamansingh1879
    @aryamansingh1879 Před 2 lety +5

    watched 2-3 videos on kmp, but all of them were missing this "why" of doing something. great explanation.

  • @virajkapurkar2463
    @virajkapurkar2463 Před rokem +2

    Great!!! Keep up the good work

  • @RAHULYADAV-zr5fq
    @RAHULYADAV-zr5fq Před rokem +2

    Great!!

  • @ThanujaDil
    @ThanujaDil Před rokem +1

    Finally understood that line. Thanks.

  • @LucaS-ri3zq
    @LucaS-ri3zq Před rokem +3

    u are a fucking legend

  • @piyushaggarwal9484
    @piyushaggarwal9484 Před rokem +1

    Good explaination

  • @douglas5260
    @douglas5260 Před 11 měsíci +1

    Thanks!!!

  • @wtfun5465
    @wtfun5465 Před rokem +1

    very good and short explanation

  • @nitilpoddar
    @nitilpoddar Před rokem +2

    yahi toh chahiye tha

  • @ThisisCuriousclue
    @ThisisCuriousclue Před rokem +1

    hey!! nice>>>
    btw whats the time complexity of it?

  • @deepakjadli_47
    @deepakjadli_47 Před měsícem

    1 ques kya hum else wale part me lps[ ] array me ye bhi to kr skte hai
    else{
    len = lps[ 0 ];
    lps[ i ] = 0;
    i++;
    }
    please ans anyone