Rabin krap algorithm by using rolling hash function in c #
how to create rabin function to compare two .cs file by using rabin algorithm in c #???????????????? any guideline please.......................
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.

VulpesRank #55 · 29.2K reputationPosted Dec 10, 2011, 11:55 AM EST
http://haishibai.blogspot.com/2011/03/karp-rabin-string-matching-algorithm-c.html
emmi rdx3 reputationPosted Dec 11, 2011, 6:56 AM EST
VulpesRank #55 · 29.2K reputationPosted Dec 11, 2011, 8:12 AM EST
If you're trying to detect plagiarism - the usual purpose of this algorithm - then clearly you need to compare phrases consisting of several words, as four or five word phrases could easily be duplicated by coincidence.
One way to proceed would be to compare each six word phrase in one file with the whole of the other file and see whether there's any duplication.