the character preceding the occurrence of t in pattern P is different than the mismatching character in P , we stop skipping the occurrences and shift the pattern from i to j
if ( shift [ j ] == 0 ) shift [ j ] = j - i ;