Comparing semantic graph representations of source code: The case of automatic feedback on programming assignments

计算机科学 程序理解 源代码 程序设计语言 图形 静态程序分析 正确性 预处理器 解析 抽象语法树 抽象语法 理论计算机科学 自然语言处理 人工智能 语义学(计算机科学) 软件 软件开发 软件系统
作者
José Miguel Paiva,José Paulo Leal,Álvaro Figueira
出处
期刊:Computer Science and Information Systems [ComSIS Consortium]
卷期号: (00): 4-4
标识
DOI:10.2298/csis230615004p
摘要

Static source code analysis techniques are gaining relevance in automated assessment of programming assignments as they can provide less rigorous evaluation and more comprehensive and formative feedback. These techniques focus on source code aspects rather than requiring effective code execution. To this end, syntactic and semantic information encoded in textual data is typically represented internally as graphs, after parsing and other preprocessing stages. Static automated assessment techniques, therefore, draw inferences from intermediate representations to determine the correctness of a solution and derive feedback. Consequently, achieving the most effective semantic graph representation of source code for the specific task is critical, impacting both techniques? accuracy, outcome, and execution time. This paper aims to provide a thorough comparison of the most widespread semantic graph representations for the automated assessment of programming assignments, including usage examples, facets, and costs for each of these representations. A benchmark has been conducted to assess their cost using the Abstract Syntax Tree (AST) as a baseline. The results demonstrate that the Code Property Graph (CPG) is the most feature-rich representation, but also the largest and most space-consuming (about 33% more than AST).

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
1秒前
多多完成签到,获得积分10
3秒前
4秒前
5秒前
小潘完成签到,获得积分10
5秒前
6秒前
6秒前
7秒前
海风完成签到,获得积分10
7秒前
多多发布了新的文献求助10
9秒前
jiaying完成签到 ,获得积分10
9秒前
9秒前
9秒前
10秒前
12秒前
香蕉觅云应助Omni采纳,获得10
12秒前
13秒前
13秒前
风不言喻完成签到 ,获得积分10
14秒前
14秒前
沐野完成签到 ,获得积分10
15秒前
16秒前
16秒前
16秒前
17秒前
17秒前
南风完成签到,获得积分10
18秒前
18秒前
19秒前
Marksman497发布了新的文献求助10
20秒前
Marksman497发布了新的文献求助10
20秒前
Marksman497发布了新的文献求助30
20秒前
Marksman497发布了新的文献求助10
20秒前
Marksman497发布了新的文献求助10
20秒前
Marksman497发布了新的文献求助30
20秒前
Marksman497发布了新的文献求助10
20秒前
Marksman497发布了新的文献求助30
20秒前
Marksman497发布了新的文献求助30
20秒前
Marksman497发布了新的文献求助10
20秒前
Marksman497发布了新的文献求助80
20秒前
高分求助中
Modern Epidemiology, Fourth Edition 5000
Kinesiophobia : a new view of chronic pain behavior 5000
Molecular Biology of Cancer: Mechanisms, Targets, and Therapeutics 3000
Digital Twins of Advanced Materials Processing 2000
Propeller Design 2000
Weaponeering, Fourth Edition – Two Volume SET 2000
First commercial application of ELCRES™ HTV150A film in Nichicon capacitors for AC-DC inverters: SABIC at PCIM Europe 1000
热门求助领域 (近24小时)
化学 材料科学 医学 生物 工程类 有机化学 纳米技术 化学工程 生物化学 物理 计算机科学 内科学 复合材料 催化作用 物理化学 光电子学 电极 冶金 细胞生物学 基因
热门帖子
关注 科研通微信公众号,转发送积分 6004965
求助须知:如何正确求助?哪些是违规求助? 7525550
关于积分的说明 16112022
捐赠科研通 5150360
什么是DOI,文献DOI怎么找? 2759745
邀请新用户注册赠送积分活动 1736749
关于科研通互助平台的介绍 1632079