ERIC Number: ED615533
Record Type: Non-Journal
Publication Date: 2021
Pages: 7
Abstractor: As Provided
ISBN: N/A
ISSN: N/A
EISSN: N/A
Grouping Source Code by Solution Approaches--Improving Feedback in Programming Courses
Höppner, Frank
International Educational Data Mining Society, Paper presented at the International Conference on Educational Data Mining (EDM) (14th, Online, Jun 29-Jul 2, 2021)
Various similarity measures for source code have been proposed, many rely on edit- or tree-distance. To support a lecturer in quickly assessing live or online exercises with respect to "approaches taken by the students," we compare source code on a more abstract, semantic level. Even if novice student's solutions follow the same idea, their code length may vary considerably -- which greatly misleads edit and tree distance approaches. We propose an alternative similarity measure based on "variable usage paths" (VUP), that is, we use the way how variables are used in the code to elaborate code similarity. The final stage of the measure involves a matching of variables in functions based on how the variable is used by the instructions. A preliminary evaluation on real data is presented. [For the full proceedings, see ED615472.]
Descriptors: Coding, Classification, Programming, Computer Science Education, Semantics, Novices, Problem Solving, Instruction, Programming Languages
International Educational Data Mining Society. e-mail: admin@educationaldatamining.org; Web site: https://educationaldatamining.org/conferences/
Publication Type: Reports - Research; Speeches/Meeting Papers
Education Level: N/A
Audience: N/A
Language: English
Sponsor: N/A
Authoring Institution: N/A
Grant or Contract Numbers: N/A