title: Constructing a Good Suffix Table - Understanding an example
body: <p>I'm really trying to understand an example on how to construct a <strong>good suffix table</strong> for a given pattern. The problem is, I'm unable to wrap my head around it. I've looked at numerous examples, but do not know where the numbers come from. </p>
  
  <p>So here goes: 
  The following example is a demonstration of how to construct a <strong>Good Suffix Table</strong> given the pattern <strong>ANPANMAN</strong>:</p>
  
  <pre><code>Index | Mismatch | Shift | goodCharShift
  -----------------------------------------------
    0   |         N|   1   | goodCharShift[0]==1
    1   |        AN|   8   | goodCharShift[1]==8
    2   |       MAN|   3   | goodCharShift[2]==3
    3   |      NMAN|   6   | goodCharShift[3]==6
    4   |     ANMAN|   6   | goodCharShift[4]==6
    5   |    PANMAN|   6   | goodCharShift[5]==6
    0   |   NPANMAN|   6   | goodCharShift[6]==6
    0   |  ANPANMAN|   6   | goodCharShift[7]==6
  </code></pre>
  
  <p>Any help on this matter is highly appreciated. I simply don't know how to get to these numbers. Thanks! </p>