arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2403.05538cs.CYcs.HCcs.SE
收藏

入门编程课程中的代码示例讲解:大语言模型(LLM)与人类的对比

Explaining Code Examples in Introductory Programming Courses: LLM vs Humans

Arun-Balajiee Lekshmi-Narayanan, Priti Oli, Jeevan Chapagain, Mohammad Hassany, Rabin Banjade, Peter Brusilovsky, Vasile Rus

AI总结:

针对编程课教师难以为大量例题提供讲解的问题,本文评估了用LLM为编程例题探索系统生成代码讲解的可行性,并对比了chatGPT与专家、学生生成的讲解效果。

摘要:

样例例题(即呈现用于解决典型编程问题的带讲解代码的内容)是编程课中最受欢迎的学习内容类型之一。大多数向学生展示这类例题的方法和工具都基于对示例代码的逐行讲解。然而,教师通常没有时间为编程课中会用到的大量例题提供讲解。本文评估了利用大语言模型(LLM)为被动式和主动式例题探索系统生成代码讲解的可行性。为实现这一目标,我们将chatGPT生成的代码讲解与专家及学生生成的讲解进行了对比。

英文摘要:

Worked examples, which present an explained code for solving typical programming problems are among the most popular types of learning content in programming classes. Most approaches and tools for presenting these examples to students are based on line-by-line explanations of the example code. However, instructors rarely have time to provide explanations for many examples typically used in a programming class. In this paper, we assess the feasibility of using LLMs to generate code explanations for passive and active example exploration systems. To achieve this goal, we compare the code explanations generated by chatGPT with the explanations generated by both experts and students.

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

↑