Concept Flow - String Pattern Matching Naive
Start at text index i=0
Check if pattern matches at i
Record match
Move i to i+1
→Check i < text length - pattern length + 1?
Yes
Repeat
No
End
The algorithm checks each position in the text to see if the pattern matches starting there, moving one step forward each time until the text end is reached.
