[prev] 32 [next]

Exercise #4: KMP-Algorithm

  1. compute failure function F for pattern P = abacab
  2. trace Knuth-Morris-Pratt on P and text T = abacaabaccabacabaabb
    • how many comparisons are needed?