Concept Flow - Rabin Karp String Matching
Start
Compute pattern hash
Compute initial text window hash
For each window in text
Compare hashes
Check exact chars
Report match
Slide window by 1
→Update hash
End
The algorithm slides a window over the text, compares hash values of the pattern and current window, and confirms matches by character comparison if hashes match.
