Naive,KnuthMorris and Rabin Krap