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 ??

6th Apr 2017, 5:17 AM
Afnan Marwat
Afnan Marwat - avatar
2 Antworten
+ 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.
6th Apr 2017, 5:23 AM
Ahri Fox
Ahri Fox - avatar
+ 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).
6th Apr 2017, 6:40 AM
Kuba Siekierzyński
Kuba Siekierzyński - avatar