title: Rabin-Karp string search algorithm
body: <p>My <a href="https://stackoverflow.com/questions/8008477/best-string-search-algorithm-around">previous question</a> pertained to the general string search algorithm.
  I am researching the Rabin-Karp algorithm and I have a function template like:</p>
  
  <pre><code>RabinKarpMatch(char *Text, char *Search_phrase,int radix,int prime)
  </code></pre>
  
  <p>I wanted to know how  the values of the radix and prime will change according to the search_phrase and text? Or should I just give them arbitrary values for all the cases?</p>