Comparing Semantic Graph Representations of Source Code: The Case of Automatic Feedback on Programming Assignments

被引:1
|
作者
Paiva, Jose Carlos [1 ,2 ]
Leal, Jose Paulo [1 ,2 ]
Figueira, Alvaro [1 ,2 ]
机构
[1] CRACS INESC TEC, Porto, Portugal
[2] DCC FCUP Porto, Porto, Portugal
关键词
semantic representation; source code; graph; source code analysis; automated assessment; programming; SIMILARITY;
D O I
10.2298/CSIS230615004P
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
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).
引用
收藏
页码:117 / 142
页数:26
相关论文
共 36 条
  • [1] LUD: An Automatic Scoring and Feedback System for Programming Assignments
    Guerra Hahn, Marcelo
    Baldiris Navarro, Silvia Margarita
    de-la-Fuente-Valentin, Luis
    2022 INTERNATIONAL CONFERENCE ON ADVANCED LEARNING TECHNOLOGIES (ICALT 2022), 2022, : 384 - 386
  • [2] Supporting the Semi-automatic Feedback Provisioning on Programming Assignments
    Strickroth, Sven
    Holzinger, Florian
    METHODOLOGIES AND INTELLIGENT SYSTEMS FOR TECHNOLOGY ENHANCED LEARNING, 2023, 580 : 13 - 19
  • [3] Clustering source code from automated assessment of programming assignments
    Paiva, Jose Carlos
    Leal, Jose Paulo
    Figueira, Alvaro
    INTERNATIONAL JOURNAL OF DATA SCIENCE AND ANALYTICS, 2024,
  • [4] Source Code based Approaches to Automate Marking in Programming Assignments
    Kuruppu, Thilmi
    Tharmaseelan, Janani
    Silva, Chamari
    Arachchillage, Udara Srimath S. Samaratunge
    Manathunga, Kalpani
    Reyal, Shyam
    Kodagoda, Nuwan
    Jayalath, Thilini
    CSEDU: PROCEEDINGS OF THE 13TH INTERNATIONAL CONFERENCE ON COMPUTER SUPPORTED EDUCATION - VOL 1, 2021, : 291 - 298
  • [5] PROGpedia: Collection of source-code submitted to introductory programming assignments
    Paiva, Jose Carlos
    Leal, Jose Paulo
    Figueira, Alvaro
    DATA IN BRIEF, 2023, 46
  • [6] Identifying plagiarised programming assignments based on source code similarity scores
    Cheers, Hayden
    Lin, Yuqing
    COMPUTER SCIENCE EDUCATION, 2023, 33 (04) : 621 - 645
  • [7] IdBench: Evaluating Semantic Representations of Identifier Names in Source Code
    Wainakh, Yaza
    Rauf, Moiz
    Pradel, Michael
    2021 IEEE/ACM 43RD INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING (ICSE 2021), 2021, : 562 - 573
  • [8] Automatic source code summarization with graph attention networks
    Zhou, Yu
    Shen, Juanjuan
    Zhang, Xiaoqing
    Yang, Wenhua
    Han, Tingting
    Chen, Taolue
    JOURNAL OF SYSTEMS AND SOFTWARE, 2022, 188
  • [9] Vulnerability detection tool in source code by building and leveraging semantic code graph
    Delaitre, Sabine
    Pulgar Gutierrez, Jose Maria
    19TH INTERNATIONAL CONFERENCE ON AVAILABILITY, RELIABILITY, AND SECURITY, ARES 2024, 2024,
  • [10] An Unbiased Transformer Source Code Learning with Semantic Vulnerability Graph
    Islam, Nafis Tanveer
    Parra, Gonzalo De La Torre
    Manuel, Dylan
    Bou-Harb, Elias
    Najafirad, Peyman
    2023 IEEE 8TH EUROPEAN SYMPOSIUM ON SECURITY AND PRIVACY, EUROS&P, 2023, : 144 - 159