Тёмный

Karp-Rabin String Matching Algorithm | Substring Search Pattern 

Kunal Kushwaha
Подписаться 677 тыс.
Просмотров 35 тыс.
50% 1

Discover the inner workings of search engines like Google! In this video, we'll explore the Karp-Rabin algorithm, a powerful technique for efficient string searching using hashing.
Take part in the learning in public initiative! Share your learnings on LinkedIn and Twitter with #DSAwithKunal & don't forget to tag us!
👉 Resources
- Join Replit: join.replit.com...
- Lecture code: replit.com/@Ku...
- Complete Java DSA playlist: • Java + DSA + Interview...
- Code, Assignments, & Notes: github.com/kun...
➡️ Connect with me: kunalkushwaha.com
👨‍💻 Join WeMakeDevs: wemakedevs.org
#dsa #placement

Опубликовано:

 

27 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 49   
@KunalKushwaha
@KunalKushwaha 2 месяца назад
DSA + interview preparation playlist: ru-vid.com/group/PL9gnSGHSqcnr_DxHsP7AW9ftq0AtAyYqJ
@poorpanda9033
@poorpanda9033 11 месяцев назад
If anyone is new to this bootcamp! Let me tell you it's amazing I've completed almost every single videos so far. By the end of the playlist you'll have so much confidence to tackle DSA questions by your own. Just make sure you're following the notes + assignments & Tips that kunal gives !! Some tips that I always remember when i approach a problem (kunal has mentioned it) - Don't memorize, understand the problem / logic - Hard Question is easy for those who have studied, Easy Question is hard for those who haven't - The function will return from where it was called !! ( Recursion )
@_Dream_Dive_
@_Dream_Dive_ 3 месяца назад
That last thing is the most important
@adolfocarrillo248
@adolfocarrillo248 8 месяцев назад
Kunal that updateHash method is kind of clever ha!! nice technique!!! Thanks for sharing your knowledge!!!!
@believe_it2380
@believe_it2380 10 месяцев назад
These videos are so great, i am also done with each and every video, and just looking forward for notification of new Videos, .... It would be very grateful of Mr. Kunal if he could be more frequent in uploading videos, ❤❤ i don't have much patience for your videos
@tusharkumar2290
@tusharkumar2290 11 месяцев назад
String has a function called contains( " "). It has Log n complexity :) , Rabin karp can be said as more algorithmic approach whereas contains can be classified as general apporach
@New_Movie_Watch
@New_Movie_Watch Месяц назад
Ya your right ✅ I'm also thinking we can use contain function to why so use this
@01_cseaiml_aaravraj96
@01_cseaiml_aaravraj96 22 дня назад
Yes but it will give Boolean answer but we need the index
@theseriousguy2136
@theseriousguy2136 8 месяцев назад
I guess the CalculateHash function will get to the limit of mathematical computations. suppose str.length() is around 1000 It would need to calcu;ate 101^1000 and that is out of bounds of long storage, and I guess pow() too couldn't cacluate it.
@sheikhmkrifat7749
@sheikhmkrifat7749 11 месяцев назад
Love from Jashore University of science and technology ,Bangladesh Sir❤. I am from non cs, following you to be a selftaught programmer.
@vaibhavimishra763
@vaibhavimishra763 11 месяцев назад
Best course i suggested many friends ❤❤❤❤
@simalinaaz5640
@simalinaaz5640 11 месяцев назад
Second video on same day❤
@shadowmonarch1432
@shadowmonarch1432 11 месяцев назад
At 2:20 the example ur explaining is sliding window technique with a TC of O(26*N)(for this problem) = O(N) By the way Big Fan bruh❤️
@shyam4034
@shyam4034 11 месяцев назад
Ninnu ekkado chusa bhayya
@bahultyagi
@bahultyagi 10 месяцев назад
Yes he said its O(n*n) which is wrong
@sagarsunar6501
@sagarsunar6501 Месяц назад
Thanks, sir!!
@elco7956
@elco7956 10 месяцев назад
I don't really understand the updateHash function
@ShivamKendre-fc3su
@ShivamKendre-fc3su 3 месяца назад
Great video
@apjdumer9233
@apjdumer9233 11 месяцев назад
Inspirational ❤❤❤
@ayushprasad8207
@ayushprasad8207 11 месяцев назад
Wah ek sath
@lakshitjain6923
@lakshitjain6923 11 месяцев назад
Sigma uploaded 2 videos at 3 am
@atharvameher5880
@atharvameher5880 9 месяцев назад
Would this work using something non-prime?
@sathishloal_vlogs
@sathishloal_vlogs 8 месяцев назад
Bro actually it takes n-pattern length times iterated and in each iteration it takes two iterations of length of pattern for generating hashcodes and also checking for same characters or not, if hash is matched Finally it also take O(nxm ) time ❤ Tell me if im wrong☺️ But krunal playlist is awesome🧡🧡🧡
@LowkeyCoder
@LowkeyCoder 11 месяцев назад
❤❤❤
@rishu_singh_
@rishu_singh_ 9 месяцев назад
what if we need to count that how many times b string contains a
@sufiserious798
@sufiserious798 4 месяца назад
Just use a counter variable, and in the condition where all characters match, increase counter by 1. At the end when the loop ends either return or print the value of counter.
@piyushgupta8763
@piyushgupta8763 11 месяцев назад
Cant we just use b.contains(a)?
@shyam4034
@shyam4034 11 месяцев назад
That also uses an algorithm similar to this one .
@RishiRajxtrim
@RishiRajxtrim 11 месяцев назад
🙏👍
@Bavasharan
@Bavasharan 9 месяцев назад
Can anyone pls explain why we divide by prime in order to get new hash
@aveshsingh491
@aveshsingh491 8 месяцев назад
since we were multiplying with prime in order to calculate the hash with that character and now since we want to remove that character from our window therefore we need to not just subtract that character but as well divide the new hash with the prime.
@Bavasharan
@Bavasharan 8 месяцев назад
@@aveshsingh491 tq so much
@NavneetKumar-lg3nv
@NavneetKumar-lg3nv 4 месяца назад
not able to understand line no 13
@NavneetKumar-lg3nv
@NavneetKumar-lg3nv 4 месяца назад
got it
@KunalKushwaha
@KunalKushwaha 11 месяцев назад
👉 Resources - Join Replit: join.replit.com/kunal-kushwaha - Lecture code: replit.com/@KunalsReplit/KarpRabin-Hashmaps
@Liku108
@Liku108 11 месяцев назад
Hey kunal can you give a refferal to me
@KunalKushwaha
@KunalKushwaha 11 месяцев назад
no
@Liku108
@Liku108 11 месяцев назад
@@KunalKushwaha ok but please make a video for how to apply for Google
@KaizokuOuNaruto
@KaizokuOuNaruto 11 месяцев назад
​@@KunalKushwaha40lpa fraud will refer? LOL made fools out of lakhs of people and that devops course has gone extinct just uploads promotion videos of tools these days.. free free ke chakkar me big scam of trust... fraudster kunal
@KaizokuOuNaruto
@KaizokuOuNaruto 11 месяцев назад
​@@KunalKushwahaYou wont reply to or atleast complete your bootcamp but youll show arrogance for someone asking you a referral politely.. karma hits back fraudster... played games with trust,viral controversies,hype.. and the end result is zero..
@gojosatoru988
@gojosatoru988 11 месяцев назад
​@@KaizokuOuNarutowhat karma bro, if you don't like him don't watch his videos. Previously these types of detailed courses were paid, a kind man started it for free while managing his own work, and you're calling him fraud!!!!! Cheap mentality 😞
@ALIHAMZAAKRAM-oe2su
@ALIHAMZAAKRAM-oe2su 11 месяцев назад
I like to say Rabin-karp is it okay
@KunalKushwaha
@KunalKushwaha 11 месяцев назад
yes
@padmanavabanerjee3365
@padmanavabanerjee3365 Месяц назад
of course he just wanted to be cool about that
@easterntoronto
@easterntoronto 11 месяцев назад
GOAT for a Reason....👍
@ArpitKhandelwal-w7r
@ArpitKhandelwal-w7r 6 месяцев назад
@jk-sm6qr
@jk-sm6qr 6 месяцев назад
Thanks Kunal!!
Далее
9.2 Rabin-Karp String Matching Algorithm
23:50
Просмотров 783 тыс.
Being Competent With Coding Is More Fun
11:13
Просмотров 78 тыс.
Count Sort Algorithm - Theory + Code
20:44
Просмотров 21 тыс.
CS Session 1 | 23 Batch
2:28:02
Просмотров 726
9.1 Knuth-Morris-Pratt KMP String Matching Algorithm
18:56
Binary Search in 2D Arrays
58:57
Просмотров 309 тыс.
8 patterns to solve 80% Leetcode problems
7:30
Просмотров 372 тыс.
Rolling hash | Rabin karp algorithm | Pattern searching
13:09
Generics in C (Pool Allocator #2)
1:28:47
Просмотров 976
Top 7 Algorithms for Coding Interviews Explained SIMPLY
21:22