Concept Flow - Substring Search Patterns
Start at index 0 in text
Compare substring with text segment
Match?
Yes→Record match position
No
Move to next index in text
Reached end of text - substring length?
Yes→Stop
No
Repeat comparison
The search moves through the text, comparing the substring at each position until it finds matches or reaches the end.
