Duplicate and Plagiarism Search in Program Code Using Suffix Trees over Compiled Code
I. A. Andrianov, S. U. Rzheutskaya, Alexey Sukonschikov, Dmitry Kochkin, А.Н. Швецов, A. N. Sorokin · 2020
The search for duplicate source code allow both to improve the quality of the software being developed and to detect plagiarism. In this paper, it is proposed to use a set of features of modern optimizing compilers to simplify and reduce this task to a search by similarity of text fragments. In this case, many types of cosmetic changes in code do not affect the search result. In order to effectively search by similarity, we use sparse suffix trees built on binary encoded data. Algorithms for constructing such a tree and performing a search are presented. The application of the results to detect cheating in a distance programming workshop is described.