Computer Science students will always be thankful to this legend ❤
@SarbojitGanguly5 жыл бұрын
yes, true that. He is simply amazing.
@ManishKumar-vg9yz4 жыл бұрын
chat.whatsapp.com/GSKHF9PdnJkKbjbW0MDgqt
@khizratariq96294 жыл бұрын
Yess
@prashantrandive61324 жыл бұрын
Not only computer science student ,All engineering student be thankful to this man❤️❤️
@satyamkumar28203 жыл бұрын
not only CS students, Whole community who are interested in Algorithms
@priyabrata84676 жыл бұрын
At 11:33 on pattern P3 aab should be 123 instead of 120
@arsalanhashemi44696 жыл бұрын
yes true
@catlord695 жыл бұрын
was wondering the same, thanks for confirming
@myeverymusic5 жыл бұрын
@@abdul_bari You made the most clear explanation on where the KMP algorithm comes from, instead of just showing us how to compute the KMP array using the pattern string. The way you teach allows students to understand the background, thus we can always recall the algorithm even if we forget. This is the same idea on learning math. You are a great teacher! :)
@sharpnova25 жыл бұрын
@@abdul_bari that is not helpful. what would be helpful would be for you to insert an annotation at that point in the video.
@arindamchakraborty73625 жыл бұрын
C is also matched in P3 so it will be 1234
@makeitswift98398 ай бұрын
Thanks for explaining KMP in simple terms
@ankityadav-ci6gy Жыл бұрын
the pursuit of understanding this algorithm always scares the hell out of me ..... u came as a savior...thanks a lot, Sir.
@gugy65412 жыл бұрын
correction: 11:27 last `b` should be 3. thanks Abdul, I find your explanations more than helpful! keep up the good work!
@harshdeepanshu277 Жыл бұрын
yup you are right.
@111rhishishranjan2 Жыл бұрын
yes man,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, shai bola bhai {for indian guys}
@TragicGFuel Жыл бұрын
non indians nhi dekhte baitheenge @@111rhishishranjan2
@yousufahmed985 Жыл бұрын
yesss
@ayyan6061 Жыл бұрын
Serious guy.
@richardszegh64434 жыл бұрын
this guy achieves to teach things in 20 minutes that university teachers fail to teach in hours
@muscleinjury33313 жыл бұрын
*fail to teach in semesters
@ManishPandey-ub1hj3 жыл бұрын
@@muscleinjury3331 You need to go to a better university
@ketanraghunathraut76153 жыл бұрын
@@ManishPandey-ub1hj no he is right,same for me
@extraFart3 жыл бұрын
I watch his videos on 2x
@rheumaticharm95513 жыл бұрын
@@ManishPandey-ub1hj lol then go to ur University dnt come here.
@mamtachahal12775 жыл бұрын
You might have heard it many times, but still I prefer mentioning it that all these efforts you made to make such valuable contents free of cost is amazing, This is going to serve many programmers for the next coming years as well. Be it your way of explanation, your intuition every thing is just perfect. And we the programming community is thankful to you sir. I do hope that you will be making more videos in the coming years. That is the only negative thing that I hear about this otherwise wonderful channel it that the advanced data structures and algorithms are not being covered. This is just a feedback from someone who has been following your videos for quiet a long time. Again thank you sir
@mrreese23422 ай бұрын
I was so happy when i typed the algorithm's name clicked search and this LEGEND shows up!! all CS students love you sir.
@lukemorrice86925 жыл бұрын
The best KMP algorithm explanation on KZbin.
@R0hirrim4 жыл бұрын
Additionally, the only
@taivinh19863 жыл бұрын
@@R0hirrim actually no
@bhanup33762 жыл бұрын
Tell the truth BRO
@adityalahiri45293 ай бұрын
agreed
@soupoverflow4 жыл бұрын
This man has singlehandedly helped me through so much of my undergrad degree. All for free. I can’t thank you enough Mr. Bari!
@lifeofbalaji4 жыл бұрын
This algorithm is mostly used in research field. Interviewers won't expect you to formulate KMP in a span of an hour. Rabin-Karp with rolling hash function is some want less complex and less efficient algo(Better than naive though) which can be used in an interview. That being said, I'm only here for this legend's explanation, I'm a big fan from Chennai, sir.
@shritishaw75102 жыл бұрын
though they don't expect us to use kmp algorithm in interviews. Knowing the concept and the implementation can turn tables for you in the interview.
@azizvohra31422 жыл бұрын
@@shritishaw7510 But do they expect us to. know this algo?
@gladyouseen81602 жыл бұрын
Question was asked in Microsoft
@thenishantgiri2 жыл бұрын
@@gladyouseen8160 was the implementation asked??
@vivekverma4012 Жыл бұрын
@@thenishantgiri yes complete implementation
@dilukshanbimsara3572 жыл бұрын
7:45 Start KMP (0:00 to 7:45 Naive String Matching Algo)
@sushiANDpizzaa2 жыл бұрын
thank you sir
@udaypatell495616 күн бұрын
Thankyou
@shritishaw75102 жыл бұрын
Before playing this video, I watched the explanation by some other expressive KZbinrs, But honestly, no one is nearer to the way you explained the thought process of the KMP algorithm. Thank you for your lucid explanation.
@jimmy16810003 жыл бұрын
You teach me how to appreciate the beauty of algorithms. Thank you so much.
@susheelnomula2 ай бұрын
sir small correction to be made at 11:30 for the pattern 3 lps array will be lps[] = [0, 1, 0, 0, 1, 0, 1, 2, 3, 0]
@HemantBatra5678Ай бұрын
Exactly
@thakursatyamsingh2026Ай бұрын
yes you are right
@stenoking23713 күн бұрын
Yes exactly
@travellingsLenses6 жыл бұрын
Literally one of the best explainations of KMP on internet :) Keep it up sir.
@shafiquemohammad28763 жыл бұрын
Its 2021 and its still the best KMP explanation available on KZbin.
@alexandersafi5693 жыл бұрын
Thank you enormously from the Netherlands !
@sgr26833 жыл бұрын
Teachers are God and you are one of them...THANKYOU SO SO SO MUCH SIR. Today, our teacher taught the algo but in a complex way, and said that it will take 2-3 hrs honestly to understand but you saved my time.
@sonitushar934 жыл бұрын
After searching on internet not found anything better than this video, really appreciate!! Thanks for such simple explanation of this algo.
@Pankajkumar-dy9ef6 жыл бұрын
HUGE RESPECT TO THIS LIVING Legend!!!
@NoName-qp7hq2 жыл бұрын
Students are benifiting from your videos years after years... Dill se Bohot bada Thank you aapko Bari sir.. Absolute legend 🙏🏻
@natesh16 жыл бұрын
I have seen some videos trying hard to understand kmp, but none of them have given such clarity like u did. Thank you so much 😊. It's a wonder how just a change of few words can make a huge difference in understanding.
@PetBuddies2 жыл бұрын
hello Sir, I know I might be mistaken but at 11:25 aren't we supposed to put 3 under be at aab since it matches the prefix sequence aab. Please let me know. Thank you for your concern. And overall I understood the whole thing. Your lectures are the best.
@HakaishinBlast2 жыл бұрын
Yes you right, that is a mistake.
@ShivamTiwari-zb7ty2 жыл бұрын
That's why sir stuck for a moment but then ....
@vyasvasudevan90402 жыл бұрын
See the description, he's mentioned it.
@Beak123452 жыл бұрын
Yes that's right
@nandanbanerji83093 жыл бұрын
No one can teach better than You sir. I convey my all respect to you. Desire to meet you personally and just want to bow before you to pay my respect.
@pg.n56943 жыл бұрын
As always my professor out here dropping gems on us humble students. Much love. We appreciate you
@mohamedel-hadidy48443 жыл бұрын
Thank you sir If I passed my exam tomorrow, you will be one of the reasons بارك الله فيك ربنا ييسر ان شاء الله
@skilfuldude73122 жыл бұрын
passed ?
@mohamedel-hadidy48442 жыл бұрын
@@skilfuldude7312 Yeah and now I'm in the last year Thanks to God الحمدلله Wish me luck :D
@priyavardhanpatel6155 Жыл бұрын
I can't say how much thankful I am. I have read this from book 4 times and still didn't understand a bit, but after watching your video only once fully understand KMP. Thank you so much Abdul sir.
@big-blade5 жыл бұрын
Unmatchable Explanation in KZbin. You're a legend Sir. Thank You.
@raajkiran59833 жыл бұрын
The best tutorial on KMP. some unpeople taking money for unteaching at unacademy. And this guy is teaching and taking unmoney.
@namanvijay35142 жыл бұрын
Used to watch your videos in my second year, watching again for revision in my final year preparing for placements! ( currently holding two offers from big tech companies)Thanks sir.
@mannanarora-w6fАй бұрын
hello bhaiyan , i am in 3rd year what to do for placements?
@doxuanhoang87673 жыл бұрын
From Vietnam with love :3 Computer Science students will always be thankful to you
@guifanweng4106 жыл бұрын
This is the best explanation I have ever seen. I have searched for several videos, most of them just focus on implementing without much reasoning. However, after watching this video, I fully understood the principle behind KMP and implemented the algorithm by myself. Thank you very much.
@rashmidhakad44366 жыл бұрын
You are awesome. None of the people in my university was able to simplify this algorithm for me.
@collingriffin79495 жыл бұрын
Better than my professor's explanation, keep it up!
@preetkamal74244 жыл бұрын
I am a beginner and it was beautifully explained. The only KMP video I understood. Thanks a lot sir!!!
@jpakash19994 ай бұрын
Man , I used to watch ur videos during my college days . its been 5 years that i graduated still I learn from your videos. Where is he now , no new videos at all these days
@alone_man31983 жыл бұрын
We are very grateful to you that we got such a important person in our life....
@0rdsec4 жыл бұрын
Standing ovation. I'm a total noob when it comes to algorithms, and I can now say that I fully understand this absolute monster. Thank you.
@ShubhamSharma-oq4hr3 жыл бұрын
you just called him absolute monster
@saumyakhati56123 жыл бұрын
@@ShubhamSharma-oq4hr In case you are not being sarcastic, he was referring to the algorithm.
@ShubhamSharma-oq4hr3 жыл бұрын
@@saumyakhati5612 yep i did misunderstood him.. thanks
@bhavyanshjain550210 ай бұрын
🎯 Key Takeaways for quick navigation: 00:00 *🧐 KMP Algorithm Introduction* - Introduction to the Knuth-Morris-Pratt (KMP) algorithm for pattern matching. - Overview of the problem: finding a pattern within a given string. - Mention of basic algorithm and the need for more efficient solutions. 07:42 *📊 KMP Algorithm Terminology: Prefix and Suffix* - Explanation of terminology in KMP algorithm: Prefix and Suffix. - Definition of prefix: a subset of pattern characters starting from the beginning. - Definition of suffix: a subset of pattern characters starting from the right. 09:50 *📝 KMP Algorithm Pie Table Generation* - Demonstration of how to generate the Pie Table (or Longest Prefix Same as Suffix) for a given pattern. - Illustration using multiple examples to build the Pie Table. - Importance of the Pie Table in optimizing pattern matching comparisons. 12:21 *⚙️ KMP Algorithm Working Principle* - Step-by-step walkthrough of the KMP algorithm's working on a pattern and string. - Emphasis on avoiding backtracking in the main string (no i backtracking). - Handling mismatches by adjusting the indices, focusing on moving J while keeping I's position. 18:23 *🕰️ KMP Algorithm Time Complexity Analysis* - Time complexity analysis of the KMP algorithm. - Breakdown of time spent on parsing the string, preparing the Pie Table, and searching for the pattern. - The overall time complexity is linear, making it an efficient pattern matching solution. Made with HARPA AI
@jashanpreetsingh_Ай бұрын
It's December 2024 & Bro is still ----> THE GOAT 🐐
@JohilAngelo9 ай бұрын
Don't ignore this video because of 19 mins duration, You can set the speed to X1.25 and listen. Each and every input from this legend is just amazing Thank you sir. Happy learning😀
@AryanSingh2512.6 жыл бұрын
I must say that u are an amazing teacher. In most of the videos, people often suggest tricks, but you explain that trick technically which sounds much more professional. Your videos are great. Please upload illustration of Red-Black Tree.
@user-vo3uy6sv3j2 жыл бұрын
Dozens of videos trying to understand how the pattern works, found your video and understood in 2 minutes, tysm
@ahmedifhaam26692 жыл бұрын
Funny how my lecturer took 5 hours to teach this topic, and I actually understood during first 30 mins, then he confused me after an hour, I understood again, then he confused me again and pattern repeated, after 5 hours I questioned everything I learnt lol. And this guy did it. the right way
@satioOeinas4 ай бұрын
atleast he took 5 hours trying, ours just mentioned it, and then added some tasks about it on our assignment
@LV-ei1ce6 жыл бұрын
Very professional explanation. No matter what, professors are professors. They know how to explain clearly :) Thank you for your time. Appreciate it.
@catboymazov63096 жыл бұрын
KMP starts at 7:40. You're welcome.
@AJ-te4jn6 жыл бұрын
Of course sir, but when just one hour is left for the exam, we need your algorithm faster!! :)
@saurabhshrigadi6 жыл бұрын
AJ you are right bro , jo pura saal nahi kiya wo end me youtube se sikhte he aapn log
@ninewinskull9346 жыл бұрын
Aditya Ravichandran I
@mohammedyakub77876 жыл бұрын
thanks bro
@tariqchhadia10355 жыл бұрын
Before 7:40.... There is Naive string match algorithm...
@ocoocososococosooooosoococoso6 ай бұрын
this guy is legend... i now understand how KMP works. Thank you so much.
@mkmkmk8453 жыл бұрын
wish all these great tutorials were available when I was doing my graduation.
@vaibhavbhardwaj8895 Жыл бұрын
Thank you soo much sir for the help i was stuck on this algo for the entire day trying to watch different videos to get a proper explaination and then your video poped up and changed everything :)
@TridibSamanta6 жыл бұрын
Great ! You are a great Teacher. Thanks for saving my Design and analysis of Algorithm Paper. God in disguise. #Respect
@sahilanand302 жыл бұрын
I've been roaming around tons of yt channels but I found the easiest and most understandable explanation here.
@TavsanCavus2 жыл бұрын
hello king you dropped this 👑
@wokpokie4 жыл бұрын
Mr Bari, you're truly a gem. None of the videos online could explain these concepts as clearly as you. Really appreciate what you are doing!
@cutiex73573 жыл бұрын
I've been watching your video since the dawn of my CS study!!! Thank you!!!!
@Cloud-5773 жыл бұрын
I watched too many videos on Knuth Algo and your explanation is by far the best I have seen. Thank you very much! you a life savior.
@debugagrawal3 жыл бұрын
You keep students interest in topic through out the video, thanks for your efforts🚀✔🤘
@jitendrateli78242 ай бұрын
Its an really Nice Explanation. its so much better than reading at geeks for geeks. Sir is making so much worth to learn at KZbin. 🙏
@aditikhatri79796 жыл бұрын
Thank you so much sir! The book I am using has an explanation that I cannot grasp so easily but your explanation is crystal clear.
@janakmakwana46276 жыл бұрын
TRUE :)
@zalgothedestroyer94323 жыл бұрын
Dude I love the video so much. When you found that last match it gave me a big smile. This algorithm is cool! You do such a great job explaining the concept. Thank you for the video.
@267praveen3 жыл бұрын
11:29 - the moment you realise you made a mistake but still decide to ignore thinking " chal yaar chod ... Kya fark paindaa hai"
@replicatoria3 жыл бұрын
last b should get 3 ,right?
@pratimasingh12583 жыл бұрын
@@replicatoria yes
@jeremiahthomas75943 жыл бұрын
@@replicatoria yep
@Gurpr33t.S1ngh3 жыл бұрын
@@pratimasingh1258 yes i was also thinking the same thanks for helping
@SanjibAhmad3 жыл бұрын
@@replicatoria, you're right: a a b c a d a a b e = 0 1 0 0 1 0 1 2 3 0
@sawanpatodia50955 жыл бұрын
Really appreciate how you explain with examples. Makes it really easy to understand even difficult algorithms. Thanks.
@malihanan5415 жыл бұрын
I was so confused, turns out it is pretty easy! Thank you!!
@akshaykumarr75415 жыл бұрын
huge respect to u sir.......every department will have one professor like this.....unfortunately i landed up here for having the worst ada teacher
@priyavutukuri12234 жыл бұрын
Sir, you should definitely create a bootcamp course for technical interviews, you ll save so many lives. Thank you for all your efforts sir !
@AbdulRahman-rg5dq Жыл бұрын
Sir you are legend your teaching method is amazing alot of love from peshawar
@itzcs18615 жыл бұрын
A very lucid explanation to a complex algorithm. Thank you very much sir.
@prestoX Жыл бұрын
You are the epitome of awesomeness, when it comes to lucid explanations !
@jaikumargupta1368Ай бұрын
9:36lecture start
@arunachalamm33992 жыл бұрын
OP explanation.. now i understand why my whole college watches you sir
@adhikari669 Жыл бұрын
Sir at 11:55 at p3 I think there's a mistake rest is great ❤️
@jcwng99554 жыл бұрын
Was still lost after a blog and 2 other videos, only your video explained this so clearly! Thank you!!
@SS-qf3pl3 жыл бұрын
in P3 for a a b repeating for 2nd time it should have 1 2 3 but you gave 1 2 0 sir..please verify it!! awesome content ❤️❤️
@cutiex73573 жыл бұрын
I have the same doubt!
@shahjahansheikh91894 жыл бұрын
I use to bunk classes bcz I believe in this man,every complex concept is easy here
@shumzmut96396 жыл бұрын
Fabulous! Excellent explanation. Thank you sir!
@us-wolf2 жыл бұрын
OMG this is the best explanation in KZbin, thank you so much عبد الباري
@lradhakrishnarao9023 жыл бұрын
Hi, great video. I have a doubt. For pattern P3, why aab is not 1,2,3 because it's getting repeated?
@kartikkhandelwal35182 жыл бұрын
same confusion
@pabloosorio6647 Жыл бұрын
THat seems to me as a mistake
@krishnachaitanya80882 жыл бұрын
for some time i thought i was in classroom, Thank you so much sir.....
@harikagajam12383 жыл бұрын
those who have exams in coming hours start at 7.40
@CodewithRazan4 күн бұрын
The best explanation from the best teacher ❤
@ronishtailor5 жыл бұрын
Kmp starts at 7:39 ... Thank me later 😁
@mystyleforedu8 ай бұрын
sir, is legend no doubt but our university faculty taking tym due to making all of us understandable, respect to all faculty.,
@yulong55283 жыл бұрын
KMP starts at 7:42
@goldenboy01212 жыл бұрын
Damn this the clearest explanation i’ve seen so far, not even chatGPT can explain it this clearly
@palashrathore62773 жыл бұрын
7:40 for those who want to go straight to KMP explanation without that naive one
@ShaneHughes-q1x9 ай бұрын
Again - Abdul - thank you for another great video. You make things so easy to understand without fluff.
@ramakrishnakondibhaneni40305 жыл бұрын
11:37 in p3:last b should be 3 why 0?
@nikil_youtube5 жыл бұрын
Yes
@gaurav666667 ай бұрын
HAIN??? KYA BAAT KAR RA HAI??
@wilbertcoandadiputra2487 Жыл бұрын
bro is my saviour when it comes to mid or final exam. thank you mr bari
@shazzedhossainshajal68898 ай бұрын
p3 last b should be 3
@afsarabc6 жыл бұрын
~ 3 hours of struggling with different textual posts and videos , It seems this last 20 minutes video has transitioned me from naive to KMP string search implementer. Thanks Sir
@surabhisharma66085 жыл бұрын
sir we absolutely love your videos, if you could pls include the algorithms for all these concepts too!
@IrfanAhmed-vf7nb10 ай бұрын
The only video I found helpful on kmp for super clear understanding thank you sir
@apporvaarya5 жыл бұрын
i really wish if you were a professor in my NIT college. :)
@nannubedi77734 жыл бұрын
bro u lucky to be in NIT, how are the prof there? Here its too bad, even though ours is a Govt univ :(
@mehulsonavane35493 жыл бұрын
He was just kidding
@aminurrahmanashik27863 жыл бұрын
Abdul Bari is a boss! Always remember you for your perfect explanation Sir. Thanks a lot!
@adilmahmood90986 жыл бұрын
IN P3 aab and aab are same so, the next aab must be 123, time 11:55
@shreybhargava54425 жыл бұрын
Yes..same doubt ..it must be 123..🤔
@anikacharjee39326 жыл бұрын
wow!!!!!!!!!!!! I didn't clearly understand in other tutorials.. But u make it full clear,,.... tnx sir...(Bangladesh)
@sharondenys82116 жыл бұрын
You are awesome! Can you do video of Amortized analysis and loop invariant next time? I feel like these 2 topics are hard to understand
@aniruddhsingh52802 жыл бұрын
Your explanations are very clear and easy to understand
@ritik846295 жыл бұрын
Abdul sir aap Google kyu nhi try karte? Oh Sorry Google aap Abdul sir kyu nhi try karte?
@techwithwhiteboard34835 жыл бұрын
fuck off
@NerdistRay4 жыл бұрын
@@techwithwhiteboard3483 Dude, what the hell? Chill out. He was making a joke here.
@adamhermes3904 ай бұрын
Amazing and you nail it perfectly , CS students love you