What algo i will use for comparision between two files in python .. ? | SoloLearn: Learn to code for FREE!

0

What algo i will use for comparision between two files in python .. ?

I want to make plagiarism checker desktop app .. i am using windows and python 3.4.4 . any web link for guidence ??

4/6/2017 5:17:17 AM

Afnan Marwat

2 Answers

New Answer

+10

I would recommend looking it up further, even if it leads to non-python math stuff. But the way I would do it is make a list of both text files and check to see if each character matches. Each time there's a match, add a point. If the points are a certian amount of the total len of one of them, then its safe to say its plagiarized. This is not a perfect way to do it, but it's a start.

+3

To make a really good checker it is harder than it sounds. You have to check for every quasi-sentence from the file being checked in a file to compare with. Unless you only want to check for exact fragments' occurrence - that's really simple to write (but might be exhausting to execute if the files are really large).