Rabin-Karp Algorithm is a string searching algorithm created by Richard M. Karp and Michael O. Rabin that uses hashing to find any one of a set of pattern strings in a text.
A substring of a string is another string that occurs in. For example, ver is a substring of stackoverflow. Not to be confuse...