期刊文献+

建立抽象语法树模型评测C++代码 被引量:6

Grade C + + code judge with constructing abstract syntax tree model
下载PDF
导出
摘要 目前绝大多数的C++程序评测是通过对程序运行结果和标准测试用例的比对,给出非对即错的2值评判。而在虚拟实验室和慕课中,需要结合程序源码给出更全面客观的评价。针对此问题,通过建立C++源代码的抽象语法树,改进了结果相似度和程序代码相似度的计算方法,使其能够反映程序语义之间的相似度,并在此基础上建立了C++代码综合评价模型。通过实际检验,和人工批改相比较平均批改准确率达到了92.11%,并以百分制的方式给出评价结果。结合程序语义的评价,不仅对学生而言给出了更公正的评分,也为后续的虚拟实验室智能在线指导提供了基础。 Most C++ judge systems give a wrong or right binary grade, by comparing the results of programs and the standard testing cases. However, a more objective judge with considering the source code is needed in virtual labs and moocs. The method of computing the code similarity and the consequence similarity was enhanced to reflect the syntax similarity between the programming codes, by constructing an abstract syntax tree of the C++ code. Then a synthetical judge model about the C++ code was constructed. The average accuracy of this system reached 92. 11% compared with manual grading. A percent grade system replaced binary grade system that commonly adopted. A fairer mark was given because the systems not only considered the program's consequence but also considered the construction and syntax of the code. The system also provides the foundation of online intelligent guidance in virtual lab.
出处 《计算机应用》 CSCD 北大核心 2015年第A01期183-185,191,共4页 journal of Computer Applications
关键词 在线评测 抽象语法树 代码相似度 慕课 程序设计 online judge abstract syntax tree code similarity Massive Open Online Course (MOOC) programming
  • 相关文献

参考文献12

  • 1LIYANAGUNAWARDENA T R. MOOC experience: a participant' s re- flection[J]. ACM SIGCAS Computers and Society, 2014, 44(3) :9 - 14. 被引量:1
  • 2MIKE J, NATHAN G, RUSSELL B. The BOSS online submission and assessment system[ J]. ACM Journal on Educational Resources in Computing, 2005, 5(3) : 1 -28. 被引量:1
  • 3COLIN H, PAVLOS S, ATHANASIOS T. The marking system for CourseMaster[ J]. ACM SIGCSE Bulletin, 2002, 34(3) : 46 - 50. 被引量:1
  • 4JONES E L. Grading student programs - a software testing approach[ J]. Journal of Circuits. Systems. and Comouters. 2001, 16(2):185-192. 被引量:1
  • 5邓爱萍.程序代码相似度度量算法研究[J].计算机工程与设计,2008,29(17):4636-4638. 被引量:23
  • 6GOREL HEDIN. Extensible intraprocedural flow analysis at the ab- stract syntax tree level [ J]. Science of computer programming, 2013, 78(10) : 1809 - 1816. 被引量:1
  • 7YAMAGUCHI F, LOTTMANN M. Generalized vulnerability extrapolation using abstract syntax trees[ C]// Proceedings of the 28th Annual Computer Security Applications Conference. New York: ACM, 2012:359-368. 被引量:1
  • 8YE J. Multicriteria decision-making method using the Dice similarity measure between expected intervals of trapezoidal fuzzy numbers[ J]. Joumal of Decision Systems, 2012, 21(4):307 -317. 被引量:1
  • 9JI J, LI J, YAN S, et al. Min-max hash for Jaccard similarity[ C]// Proceedings of the IEEE 13th International Conference on Data Min- ing. Piscataway: IEEE, 2013:301-309. 被引量:1
  • 10NAUD6 K A, GREYLING J H, VOGTS D. Marking student pro- grams using graph similarity[ J]. Computers & Education, 2010, 54(2) : 545 -561. 被引量:1

二级参考文献12

共引文献22

同被引文献48

引证文献6

二级引证文献10

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部