首页 | 本学科首页   官方微博 | 高级检索  
     

程序代码相似度检测方法的设计与实现
引用本文:全上克,杨新锋. 程序代码相似度检测方法的设计与实现[J]. 微型电脑应用, 2013, 0(10): 38-41
作者姓名:全上克  杨新锋
作者单位:南阳理工学院,南阳473004
摘    要:程序代码的相似度是剽窃检测的关键技术。通过对现有程序代码相似度度量技术进行研究后,基于属性技术法、结构度量法提出了一种属性计数和结构度量相结合的方法。通过统计程序源代码的操作符和操作数个数以及程序逻辑结构从而产生出一个特征向量,利用向量夹角的余弦计算属性相似度。实验结果表明,该方法能够有效检测出作业中相似的程序代码。

关 键 词:属性计数  结构度量  程序代码相似度

Design and Implementation of Program Code Similarity Measure Algorithm
Quan Shangke,Yang Xinfeng. Design and Implementation of Program Code Similarity Measure Algorithm[J]. Microcomputer Applications, 2013, 0(10): 38-41
Authors:Quan Shangke  Yang Xinfeng
Affiliation:( School of Computer and Information Engineering, Nanyang Institute of Technology, Nanyang 473004,China)
Abstract:The code similarity measurement is the key technology in the plagiarizing detection. The similarity measurement of program code is studied first, a combined method of attribute counting and structure metrics is proposed. Through statistical number of operators and operands program source code, the program logic structure so as to generate a feature vector, and attribute similarity can be calculated by using the cosine of vector included angle. The similar degree between two programs can be measured with the two similarities. Experimental results show the method can effectively detect similar programs of the homework.
Keywords:Security Operations Center  Security Event  Correlation Analysis
本文献已被 维普 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号