[prev] 25 [next]

Exercise #3: Boyer-Moore algorithm

For the alphabet Σ = {a,b,c,d}

  1. compute last-occurrence function L for pattern P = abacab
  2. trace Boyer-More on P and text T = abacaabadcabacabaabb
    • how many comparisons are needed?