Concept Flow - String Pattern Matching Naive
Start at text index i=0
Check if pattern matches at i
Record match
Is i <= text length - pattern length?
Yes
Repeat
No
End
Start checking from each position in the text if the pattern matches fully. If yes, record match. Always move to next position. Repeat until no more positions to check.
