Journal of Electrical and Electronic Engineering
Volume 6, Issue 2, April 2018, Pages: 53-58
Received: Jun. 19, 2018;
Published: Jun. 20, 2018
Views 711 Downloads 93
Dongmei Yan, Department of Information Science and Technology, Tianjin University of Finance Economics, Tianjin, China
Xiangyuan Qi, Department of Information Science and Technology, Tianjin University of Finance Economics, Tianjin, China
Wenyue Yang, Department of Information Science and Technology, Tianjin University of Finance Economics, Tianjin, China
In the student programming examination, the program must be automatically evaluated. It can be not give a reasonable score to the wrong program by comparing the output results of the dynamic evaluation method. Only by using the static analysis of the program can it give more accurate results. In this paper, the ratio of the length of the program feature vector and the Token sequence are introduced in two static analysis algorithms of attribute count and the longest common subsequence, and the optimum weight of various algorithms is determined by experiments. The experimental results show that the score given by the algorithm is very close to the teacher's score, which proves that the algorithm is an effective automatic scoring method.
Research of Automatic Scoring of Student Programs Based on Static Analysis, Journal of Electrical and Electronic Engineering.
Vol. 6, No. 2,
2018, pp. 53-58.
Basit H A, Puglisi S J, Smyth W F, “Efficient token based clone detection with flexible tokenization,” Proceedings of the the 6th joint meeting of the European software engineering conference and the ACM SIGSOFT symposium on The foundations of software engineering, 2007[C]. Dubrovnik: ACM, 2007, pp. 513-516.
YU Hai-ying, “Research and Implementation of Program Code Similarity Measurement”, Computer Engineering, 2010, 36(4), pp. 45.
GU Ping, ZHANG Feng, ZHOU Hai-tao, “Method of Program Source Code Similarity Measurement, Computer Engineering, 2012, 38(6), pp. 37.
CUI Shuning, WU Ning, YE Dan, “Grade C++ code judge with constructing abstract syntax tree model,” Journal of Computer Application, 2015, 35(S1), pp. 183.
Wang Tiantian, “Research on Program Recognition Approach Based on Structural Semantic Similarity,” unpublished.
ZHANG Li-ping, LIU Dong-sheng, LI Yan-chen, “AST- based code plagiarism detection method,” Application Research of Computer, 2011, 28(12), pp. 4616.
Kim J, Choi H, Yun H, “Measuring Source Code Similarity by Finding Similar Subgraph with an Incremental Genetic Algorithm,” Proceedings of the Genetic and Evolutionary Computation Conference 2016, Denver: ACM, 2016, pp. 925-932.
LIU Yun-long, “Token-based structured code matching homology detection technology,” Application Research of Computers, 2014, 31(6), pp. 1841.
LIU Yun-long, “A Homology Detection Technology Based on Improved Edit Distance and LCS,” Journal of Beijing Institute of Technology, 2017, 37(2), pp. 168.
ZHANG Peng, “Research and Realization of Recognition Method on C Program Similar code,” unpublished.
Jones E L, “Metrics based plagiarism monitoring,” Proceedings of the sixth annual CCSC northeastern conference on the journal of computing in small colleges, 2001[C]. Middlebury: Consortium for Computing Sciences in Colleges, 2001, pp. 253-261.
ZHANG Jiujie, WANG Chunhui, ZHANG Liping, “Clone code detection based on Levenshtein distance of token,” Journal of Computer Application, 2015, 35(12), pp. 3536.