Concept Flow - String matching basics
Start with Text and Pattern
Set index i=0 in Text
Compare Pattern with Text substring at i
Pattern found
Check if i <= Text length - Pattern length
Yes/No
End
The process slides the pattern over the text, comparing characters at each position until a match is found or the text ends.