arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2307.07940cs.SEcs.CLcs.PL
收藏

对解题程序进行去重与排序以推荐参考解法

Deduplicating and Ranking Solution Programs for Suggesting Reference Solutions

University of Aizu(会津大学)

Atsushi Shirafuji, Yutaka Watanobe

AI总结:

本文针对在线评测系统中解题程序大量重复且缺乏有效排序的问题,提出基于重复次数对去重后的唯一程序进行排序的方法,实验表明可显著减少用户需参考的程序数量并覆盖较多解题方法。

摘要:

参考其他用户编写的解题程序对编程教育中的学习者很有帮助。然而,当前的在线评测系统只是列出用户提交的所有解题程序供参考,并且这些程序仅按提交日期和时间、执行时间或用户评分排序,忽略了这些程序在多大程度上具有参考价值。此外,由于存在大量重复和近似重复的程序,用户很难参考到多样化的解题方法。为了激励学习者参考不同的解法以学习更好的解题思路,本文提出了一种在每个编程问题中对常见解题程序进行去重和排序的方法。受以下现象启发:被大量重复提交的程序往往采用了更通用的方法,可以作为一般性参考,我们移除近似重复的解题程序,并根据重复次数对唯一程序进行排序。在提交到真实在线评测系统的解题程序上进行的实验表明,去重后程序数量减少了60.20%,而基线方法仅减少29.59%,这意味着用户平均只需参考39.80%的程序。此外,我们的分析显示,排名前10的程序平均覆盖了29.95%的程序,表明用户仅参考10个程序就能掌握29.95%的解题方法。所提出的方法显示出减轻学习者参考过多解法负担并激励他们学习多样化解题方法的潜力。

英文摘要:

Referring to solution programs written by other users is helpful for learners in programming education. However, current online judge systems just list all solution programs submitted by users for references, and the programs are sorted based on the submission date and time, execution time, or user rating, ignoring to what extent the programs can be helpful to be referenced. In addition, users struggle to refer to a variety of solution approaches since there are too many duplicated and near-duplicated programs. To motivate learners to refer to various solutions to learn better solution approaches, in this paper, we propose an approach to deduplicate and rank common solution programs in each programming problem. Inspired by the nature that the many-duplicated program adopts a more common approach and can be a general reference, we remove the near-duplicated solution programs and rank the unique programs based on the duplicate count. The experiments on the solution programs submitted to a real-world online judge system demonstrate that the number of programs is reduced by 60.20%, whereas the baseline only reduces by 29.59% after the deduplication, meaning that users only need to refer to 39.80% of programs on average. Furthermore, our analysis shows that top-10 ranked programs cover 29.95% of programs on average, indicating that users can grasp 29.95% of solution approaches by referring to only 10 programs. The proposed approach shows the potential of reducing the learners' burden of referring to too many solutions and motivating them to learn a variety of solution approaches.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑