Brute-force search
Finds every place a pattern stands in a text by trying them all. The pattern starts under the text's first letter and its letters are compared from the left until one differs; then it moves on one place and starts again.
the text, with the pattern under it
letters matched at each place the pattern can stand
- letters compared
- 0
step 1 of 1
Examples