基于抽象语法树和模糊Petri网的新型代码抄袭检测

IF 0.7 4区 工程技术 Q4 EDUCATION, SCIENTIFIC DISCIPLINES
V. Shen
{"title":"基于抽象语法树和模糊Petri网的新型代码抄袭检测","authors":"V. Shen","doi":"10.14710/IJEE.1.1.46-56","DOIUrl":null,"url":null,"abstract":"Those students who major in computer science and/or engineering are required to design program codes in a variety of programming languages. However, many students submit their source codes they get from the Internet or friends with no or few modifications. Detecting the code plagiarisms done by students is very time-consuming and leads to the problems of unfair learning performance evaluation. This paper proposes a novel method to detect the source code plagiarisms by using a high-level fuzzy Petri net (HLFPN) based on abstract syntax tree (AST). First, the AST of each source code is generated after the lexical and syntactic analyses have been done. Second, token sequence is generated based on the AST. Using the AST can effectively detect the code plagiarism by changing the identifier or program statement order. Finally, the generated token sequences are compared with one another using an HLFPN to determine the code plagiarism. Furthermore, the experimental results have indicated that we can make better determination to detect the code plagiarism.","PeriodicalId":54960,"journal":{"name":"International Journal of Engineering Education","volume":" ","pages":""},"PeriodicalIF":0.7000,"publicationDate":"2019-06-15","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"8","resultStr":"{\"title\":\"Novel Code Plagiarism Detection Based on Abstract Syntax Tree and Fuzzy Petri Nets\",\"authors\":\"V. Shen\",\"doi\":\"10.14710/IJEE.1.1.46-56\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"Those students who major in computer science and/or engineering are required to design program codes in a variety of programming languages. However, many students submit their source codes they get from the Internet or friends with no or few modifications. Detecting the code plagiarisms done by students is very time-consuming and leads to the problems of unfair learning performance evaluation. This paper proposes a novel method to detect the source code plagiarisms by using a high-level fuzzy Petri net (HLFPN) based on abstract syntax tree (AST). First, the AST of each source code is generated after the lexical and syntactic analyses have been done. Second, token sequence is generated based on the AST. Using the AST can effectively detect the code plagiarism by changing the identifier or program statement order. Finally, the generated token sequences are compared with one another using an HLFPN to determine the code plagiarism. Furthermore, the experimental results have indicated that we can make better determination to detect the code plagiarism.\",\"PeriodicalId\":54960,\"journal\":{\"name\":\"International Journal of Engineering Education\",\"volume\":\" \",\"pages\":\"\"},\"PeriodicalIF\":0.7000,\"publicationDate\":\"2019-06-15\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"8\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"International Journal of Engineering Education\",\"FirstCategoryId\":\"5\",\"ListUrlMain\":\"https://doi.org/10.14710/IJEE.1.1.46-56\",\"RegionNum\":4,\"RegionCategory\":\"工程技术\",\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"Q4\",\"JCRName\":\"EDUCATION, SCIENTIFIC DISCIPLINES\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"International Journal of Engineering Education","FirstCategoryId":"5","ListUrlMain":"https://doi.org/10.14710/IJEE.1.1.46-56","RegionNum":4,"RegionCategory":"工程技术","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q4","JCRName":"EDUCATION, SCIENTIFIC DISCIPLINES","Score":null,"Total":0}
引用次数: 8

摘要

那些主修计算机科学和/或工程的学生被要求用各种编程语言设计程序代码。然而,许多学生提交他们从互联网或朋友那里得到的源代码,没有或很少修改。检测学生的代码抄袭是非常耗时的,并且会导致不公平的学习绩效评估问题。本文提出了一种基于抽象语法树(AST)的高级模糊Petri网(HLFPN)检测源代码抄袭的新方法。首先,在词法和语法分析完成后生成每个源代码的AST。其次,基于AST生成token序列,使用AST可以通过改变标识符或程序语句顺序来有效检测代码抄袭。最后,使用HLFPN对生成的令牌序列进行比较,以确定代码抄袭。此外,实验结果表明,该方法可以更好地检测代码抄袭。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
Novel Code Plagiarism Detection Based on Abstract Syntax Tree and Fuzzy Petri Nets
Those students who major in computer science and/or engineering are required to design program codes in a variety of programming languages. However, many students submit their source codes they get from the Internet or friends with no or few modifications. Detecting the code plagiarisms done by students is very time-consuming and leads to the problems of unfair learning performance evaluation. This paper proposes a novel method to detect the source code plagiarisms by using a high-level fuzzy Petri net (HLFPN) based on abstract syntax tree (AST). First, the AST of each source code is generated after the lexical and syntactic analyses have been done. Second, token sequence is generated based on the AST. Using the AST can effectively detect the code plagiarism by changing the identifier or program statement order. Finally, the generated token sequences are compared with one another using an HLFPN to determine the code plagiarism. Furthermore, the experimental results have indicated that we can make better determination to detect the code plagiarism.
求助全文
通过发布文献求助,成功后即可免费获取论文全文。 去求助
来源期刊
International Journal of Engineering Education
International Journal of Engineering Education EDUCATION, SCIENTIFIC DISCIPLINES-ENGINEERING, MULTIDISCIPLINARY
CiteScore
2.40
自引率
30.00%
发文量
0
审稿时长
4-8 weeks
期刊介绍: The International Journal of Engineering Education (IJEE) is an independent, peer-reviewed journal. It has been serving as an international archival forum of scholarly research related to engineering education for over thirty years. The Journal publishes six issues per year. These include, from time to time, special issues on specific engineering education topics. Only manuscripts that have a focus on engineering education will be considered for publication.
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信