Concept Flow - Rabin Karp String Matching
Start
Calculate pattern hash
Calculate initial text window hash
For each window in text
Compare pattern hash and window hash
Yes No
Check chars
Match?
Report
End
The algorithm calculates hash of the pattern and text windows, compares hashes, and if equal, checks characters to find matches.
