Unveiling the Role of GPT‐4 in Solving LeetCode Programming Problems

转化式学习 杠杆(统计) 计算机科学 背景(考古学) 人工智能 编码(集合论) 机器学习 程序设计语言 心理学 教育学 生物 古生物学 集合(抽象数据类型)
作者
Sarthak Vishnu,Sahil Neelam,Naman Garg
出处
期刊:Computer Applications in Engineering Education [Wiley]
卷期号:33 (1) 被引量:4
标识
DOI:10.1002/cae.22815
摘要

ABSTRACT The landscape of programming education is undergoing a transformative shift in the era of AI and machine learning. This research delves into the role of GPT‐4, a state‐of‐the‐art language model, in solving intermediate‐level programming problems, focusing on the renowned LeetCode platform. For this, the work employs different programming problems from two LeetCode contests, providing a comprehensive evaluation of GPT‐4's capabilities. The results reveal intriguing patterns in the model's behavior. Initial attempts, when provided with all inputs simultaneously, exhibit high accuracy, but subsequent attempts show consistent fluctuations, rarely surpassing the accuracy of the first attempt. Upon closer examination, a distinct pattern emerges in GPT‐4's problem‐solving approach, where the model iteratively refines its solutions, incorporating corrections in subsequent attempts. However, the lack of a historical context for past attempts raises questions about the model's attention span and its ability to rectify mistakes. Notably, GPT‐4 consistently fails on the same test case with the same generated output, suggesting a potential limitation in addressing specific challenges. But, on leveraging human assistance to AI tools, the observations and patterns from the incorrect codes can be drawn and required adjustments to rectify the codes can be made. A direct result of this is observed in the increased success rate in problem‐solving by students, rising from 68% in the moderate learning stage to 92% in the advanced learning stage. Hence, the presented work proposes a human‐supervised methodology to leverage the AI‐assisted code generation and employs that in improving the effectiveness of AI‐assisted teaching–learning process.
最长约 10秒,即可获得该文献文件

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
1秒前
任风完成签到,获得积分0
2秒前
愉快乐双发布了新的文献求助10
2秒前
2秒前
3秒前
Jasper应助萌萌采纳,获得10
3秒前
3秒前
Maestro_S发布了新的文献求助50
4秒前
fyc发布了新的文献求助10
4秒前
4秒前
李健应助电池小能手采纳,获得10
5秒前
贺安完成签到 ,获得积分10
6秒前
fn发布了新的文献求助10
6秒前
6秒前
Maestro_S发布了新的文献求助50
7秒前
FashionBoy应助lemon采纳,获得10
7秒前
8秒前
13349819770发布了新的文献求助10
8秒前
8秒前
8秒前
9秒前
英姑应助夙雪夜归寒采纳,获得10
9秒前
五原日落发布了新的文献求助30
9秒前
RJ_W_HT发布了新的文献求助10
9秒前
张启云完成签到 ,获得积分10
10秒前
11秒前
小鞋子完成签到,获得积分10
11秒前
Charih完成签到,获得积分20
12秒前
uuu完成签到 ,获得积分10
12秒前
爱因斯童发布了新的文献求助10
12秒前
12秒前
13秒前
风趣的凤灵完成签到,获得积分10
13秒前
脑洞疼应助cc采纳,获得10
13秒前
13秒前
13秒前
独特的海云完成签到 ,获得积分10
13秒前
萌萌发布了新的文献求助10
15秒前
半夏完成签到,获得积分10
15秒前
星辰大海应助RJ_W_HT采纳,获得10
16秒前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
HYDROLYSE ACIDE DE QUELQUES DIOXASPIROCYCLANES 1314
Essentials of Carbohydrate Chemistry and Biochemistry, 4th Edition 800
Navigating Normative Orders. Interdisciplinary Perspectives 800
1 Peter and Christ's Descent to the Dead in Its Early Christian Reception 700
Organizational Behavior 510
Management and the Arts 510
热门求助领域 (近24小时)
化学 材料科学 医学 生物 纳米技术 工程类 有机化学 化学工程 生物化学 计算机科学 内科学 物理 复合材料 催化作用 细胞生物学 无机化学 光电子学 物理化学 电极 基因
热门帖子
关注 科研通微信公众号,转发送积分 7747815
求助须知:如何正确求助?哪些是违规求助? 9296109
关于积分的说明 20233424
捐赠科研通 7329094
什么是DOI,文献DOI怎么找? 3308716
关于科研通互助平台的介绍 2460470
邀请新用户注册赠送积分活动 2320653