title: Boyer and Moore algorithm, shift table calculation
body: <p>I failed the whole evening to calculate a simple shift table for the search term "anabanana" for use in the <a href="http://en.wikipedia.org/wiki/Boyer%E2%80%93Moore_string_search_algorithm" rel="nofollow noreferrer">Boyer and Moore pattern matching algorithm</a>.</p>
  
  <p>I found the following example without any explanations:
  <img src="https://i.stack.imgur.com/R3g5u.gif" alt="enter image description here"></p>
  
  <p>Can anybody help me understand and explain the image's method for finding the shift table?</p>