This theory is part of Premium
The full write-up (worked counting examples, the trap list and the interview playbook) unlocks with a Premium plan, along with every Pro visualizer.
See pricingRun the naive scan, a rolling hash and the pattern's border table over one text, then compare what each one spent.
What this asks
Compare three pattern-matching strategies on the same text, and see what each one costs.
One scan per strategy, with the same answer: letter checks for the naive scan, a rolling fingerprint, and the pattern's own border table.
The full write-up (worked counting examples, the trap list and the interview playbook) unlocks with a Premium plan, along with every Pro visualizer.
See pricing