Concept Flow - Rabin Karp String Matching
Start
Calculate pattern hash
Calculate initial window hash in text
For each window in text
Compare hashes
Check exact chars
Match found
End
The algorithm calculates a hash for the pattern and for each window of text, compares hashes, and if equal, checks characters to confirm match.
