Skip to main content

2 docs tagged with "pattern-matching"

View all tags

KMP & the Z-Algorithm

The naive substring scan tries the pattern at every text position and, on a mismatch, throws away