Concept Flow - Rabin Karp String Matching
Start
Compute pattern hash
Compute initial text window hash
For each text window
Compare hashes
Check exact chars
Slide window by 1
Repeat until end of text
End
The algorithm computes a hash for the pattern and for each window of text. It compares hashes first, then characters if hashes match, sliding the window until the end.