基于规则的错误分类方法用于分析频繁错误的差异
Rule-Based Error Classification for Analyzing Differences in Frequent Errors
AI总结:
本文提出一种基于规则的错误分类工具,对95,631个代码对中的错误进行分类,并分析新手与专家程序员频繁错误的差异,发现新手错误源于编程知识缺乏,专家错误源于粗心或非常规解题挑战。
摘要:
发现并修复错误是一项耗时的任务,不仅对新手程序员如此,对专家程序员亦然。先前的工作已经识别出不同水平程序员中的频繁错误模式。然而,新手与专家之间的倾向性差异尚未被揭示。通过了解每个水平程序员的频繁错误知识,教师将能够为每个水平的学习者提供有用的建议。在本文中,我们提出了一种基于规则的错误分类工具,用于对由错误程序和正确程序组成的代码对中的错误进行分类。我们对95,631个代码对进行了错误分类,并平均识别出3.47个错误,这些代码对由不同水平的程序员在一个在线评测系统上提交。分类后的错误被用于分析新手与专家程序员之间频繁错误的差异。分析结果表明,对于相同的入门问题,新手所犯的错误是由于缺乏编程知识,这些错误被认为是学习过程中必不可少的一部分。另一方面,专家所犯的错误是由于阅读问题时的粗心大意或尝试以不同于常规的方式解决问题所带来的挑战而导致的误解。所提出的工具可用于创建带错误标签的数据集,并用于进一步的代码相关教育研究。
英文摘要:
Finding and fixing errors is a time-consuming task not only for novice programmers but also for expert programmers. Prior work has identified frequent error patterns among various levels of programmers. However, the differences in the tendencies between novices and experts have yet to be revealed. From the knowledge of the frequent errors in each level of programmers, instructors will be able to provide helpful advice for each level of learners. In this paper, we propose a rule-based error classification tool to classify errors in code pairs consisting of wrong and correct programs. We classify errors for 95,631 code pairs and identify 3.47 errors on average, which are submitted by various levels of programmers on an online judge system. The classified errors are used to analyze the differences in frequent errors between novice and expert programmers. The analyzed results show that, as for the same introductory problems, errors made by novices are due to the lack of knowledge in programming, and the mistakes are considered an essential part of the learning process. On the other hand, errors made by experts are due to misunderstandings caused by the carelessness of reading problems or the challenges of solving problems differently than usual. The proposed tool can be used to create error-labeled datasets and for further code-related educational research.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。