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.

More in Assessment & Grading

Routine-Grounded Chain-of-Thought for Multi-Modal CS Assessment: Can Visual Decomposition Close the Higher-Order Thinking Gap?

LLMs score well on lower-order multi-modal CS exercises but fail when a task requires generating or analyzing diagrams at higher Bloom's levels. This research applies Pisan's SKETCHY visual routines framework as a structured chain-of-thought scaffold to test whether decomposing CS diagrams into primitive visual operations closes that performance gap.

Assessment & GradingResearch directionResearchSep 3, 2026

All 132 ideas in Assessment & Grading →