Skip to content
Free planNo credit card requiredStart writing

article · KTH Publication Database DiVA (KTH Royal Institute of Technology) · 2012

Abstract Syntax Tree Analysis for Plagiarism Detection

Erik G. Nilsson

Cited by 5Open access

Abstract

Today, universities rely heavily on systems for detecting plagiarism in students’essays and reports. Code submissions however require specific tools. A numberof approaches to finding plagiarisms in code have already been tried, includingtechniques based on comparing textual transformations of code, token strings,parse trees and graph representations. In this master’s thesis, a new system, cojac,is presented which combines textual, tree and graph techniques to detect a broadspectrum of plagiarism attempts. The system finds plagiarisms in C, C++ and Adasource files. This thesis discusses the method used for obtaining parse trees fromthe source code and the abstract syntax tree analysis. For comparison of syntaxtrees, we generate sets of fingerprints, digest forms of trees, which makes thecomparison algorithm more scalable. To evaluate the method, a set of benchmarkfiles have been constructed containing plagiarism scenarios which was analyzedboth by our system and Moss, another available system for plagiarism detection incode. The results show that our abstract syntax tree analysis can effectively detectplagiarisms such as changing the format of the code and renaming of identifiersand is at least as effective as Moss for detecting plagiarisms of these kinds

Cite this paper

APA 7

Nilsson, E. G. (2012). Abstract Syntax Tree Analysis for Plagiarism Detection. KTH Publication Database DiVA (KTH Royal Institute of Technology).

MLA 9

Nilsson, Erik G. “Abstract Syntax Tree Analysis for Plagiarism Detection.” KTH Publication Database DiVA (KTH Royal Institute of Technology), 2012.

Chicago

Nilsson, Erik G. 2012. “Abstract Syntax Tree Analysis for Plagiarism Detection.” KTH Publication Database DiVA (KTH Royal Institute of Technology).

Harvard

Nilsson, E.G. (2012) ‘Abstract Syntax Tree Analysis for Plagiarism Detection’, KTH Publication Database DiVA (KTH Royal Institute of Technology).

BibTeX
@article{nilsson2012abstract,
  title = {{Abstract Syntax Tree Analysis for Plagiarism Detection}},
  author = {Nilsson, Erik G.},
  journal = {KTH Publication Database DiVA (KTH Royal Institute of Technology)},
  year = {2012}
}

Made from the index record. Check names, capitalisation and page numbers against the paper. Need another style? AI for Research has over 10,000.