会议专题

Research and Implementation of Program Code Similarity Measurement

Aiming at the problem of program code similarity measurement,a combined method of attribute counting and structure metrics is proposed.Attribute counting produces Halstead length,Halstead vocabulary and Halstead volume which constitute feature vector by counting the operator and operand of program source code,and attribute similarity can be calculated by using the cosine of vector included angle.The longest common subsequence algorithm is used to obtain structure similarity .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 studentshomework.

attribute counting structure metrics program code similarity

Sha Jin Zhao Yongbin Zhu Zhenxin

Department of Information Science and Technology Shijiazhuang Tiedao University Shijiazhuang, Hebei Department of Computer Hebei Vocational College of Politics and Law Shijiazhuang, Heibei Province, C

国际会议

2010 Second Asia-Pacific Conference on Information Processing(2010年第二届亚太地区信息处理国际会议 APCIP 2010)

南昌

英文

319-322

2010-09-17(万方平台首次上网日期,不代表论文的发表时间)