Concept Flow - Rabin Karp String Matching
Start
Calculate pattern hash
Calculate initial window hash in text
For each window in text
Compare hashes
Slide window, update hash
Check characters one by one
Report match
Slide window, update hash
End
The algorithm calculates a hash for the pattern and for each window in the text, compares hashes, and if equal, checks characters to find matches.
