Inproceedings,

Syntax-Based Analysis of Programming Concepts in Python

, and .
Artificial Intelligence in Education, page 236--240. Cham, Springer International Publishing, (2018)

Abstract

Writing programs is essential to learning programming. Most programming courses encourage students to practice with lab and homework assignments. By analyzing solutions to these exercises teachers can discover mistakes and concepts students are struggling with, and use that knowledge to improve the course. Students however tend to submit many different programs even for simple exercises, making such analysis difficult. We propose using tree regular expressions to encode common patterns in programs. Based on these patterns we induce rules describing common approaches and mistakes for a given assignment. In this paper we present a case study of rule-based analysis for an introductory Python exercise. We show that our rules are easy to interpret, and can be learned from a relatively small set of programs.

Tags

Users

  • @brusilovsky

Comments and Reviews