title: Trying to get prefix table for the pattern in KMP algorithm
body: <p>I'm trying to implement KMP algorithm for string matching, basically i have my pattern <code>tenen</code> which needs to be searched in a specific string lets assume that string to be <code>this is ten in tenen</code>.</p>
  <p>I'm trying to write pseudo code for creating prefix table of my pattern. I want to understand what would be the prefix table for the pattern <code>tenen</code> and also if i can get the explanation of how we came to the result, that would be great.</p>