Idea · Sep 1, 2026
LLM-Generated Targeted Feedback for Algorithm Simulation Misconceptions in CS2: Extending Validated Misconception Taxonomies from Graph Algorithm Traces
An LLM-based feedback pipeline that takes a student's algorithm simulation trace for Dijkstra's algorithm, classifies the trace against a validated misconception taxonomy, and generates a misconception-specific Socratic hint. Validated on archived VAS trace data from CSS 342 and deployed A/B in a live data structures course.
What it would do
Tilanterä et al. (ITiCSE 2025) used 712 algorithm simulation traces from 289 students to identify four classified misconception types in Dijkstra's algorithm execution and explicitly called for automated targeted feedback for visual algorithm simulation (VAS) exercises based on those validated misconceptions. This research answers that call by building a two-stage pipeline: a lightweight classifier that maps a student's VAS trace to one of the four misconception types (or to a slip or a novel error), followed by a misconception-specific LLM prompt template that generates a Socratic hint targeting the inferred mental model error without revealing the correct algorithm step. The classifier combines trace-level features (which node was selected next, which distances were updated, order of relaxation steps) with a brief student self-explanation to distinguish systematic misconceptions from transient cognitive slips. The pipeline is validated on archived CSS 342/343 data structures submission logs, then deployed in a controlled A/B study comparing misconception-targeted hints to generic 'try again' prompts on time-to-correct-trace and resubmission count. A secondary contribution is a prompt engineering methodology for algorithm simulation feedback that generalizes beyond Dijkstra's to other graph algorithms taught in CS2.