Hi all,
I have to check and give grades to some projects written in C.

Do you know a free program which detects source code plagiarism ?

I found CodeSuite but it asks me for key.
Thanks in advance

5 Years
Discussion Span
Last Post by L7Sqr

If you know any linux scripting, you might be able to write a simple batch script utilizing the diff utility which outputs the difference between two files. The diff utility can ignore white spaces and non-typeable characters making it quite ideal for the job. You may write the script to accept a threshold value which lets you control the level of differences between the student's projects that are detectable. Your script can be written as a main and nested loop that iterates through all the student's files and runs the diff utility, printing out the file names that have the highest level of detectable similarities. You can then open those files and check them by hand.

I don't know if there is anything like that in Windows, but you could do this in Windows by using cygwin or some other Windows-compatible linux facility.


Would it need to run across multiple files in a project?
Would it need to ignore library calls?

In windows, the fc command can compare two files, but it's not very robust.
Would compiling two programs and comparing the executables be of any benefit?
- That would at least let you know if just variable names were changed but the functioning code is the same.

Edited by thines01: n/a

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.