Text Search Visualizer
Watch the Naive String Matching algorithm in action, step by step.
Inputs
Text (Haystack)
ababcababaabcababc
Pattern (Needle)
Animation Controls
Speed
Visualization
a
b
a
b
c
a
b
a
b
a
a
b
c
a
b
a
b
c
Checking Window
Character Match
Mismatch
Pattern Found
Matches Found at Index:
None yet...