Idea · Oct 5, 2026

Diagram-Grounded Pointer Drills: Execution-Verified Generation of C Pointer Exercises with Misconception-Tagged Distractors and Memory-Diagram Hints

Turn a hand-built set of C pointer drills into an unbounded, execution-verified exercise generator whose wrong answers come from runnable pointer misconception models, and benchmark whether LLM hints grounded in a ground-truth memory diagram diagnose errors better than code-only hints.

What it would do

Guerzhoy's Pointer Drills (ITiCSE 2025) argues that students should get used to C pointers through many small exercises, like algebra drills, but the drills are hand-written and finite, with no diagnosis when a student answers wrong. This project builds a generator that produces drill variants from templates (single objects, malloc'd blocks, arrays of pointers), compiles and runs each one under AddressSanitizer to obtain the verified answer, and extracts a ground-truth memory diagram from the execution. Wrong-answer distractors are produced by executable misconception models drawn from the pointer literature (for example confusing p+1 with byte offsets, treating *p++ as (*p)++, or assuming arrays are copied on assignment), so every distractor is tagged with the misconception that produces it. Using these tagged wrong answers as synthetic student responses, the project benchmarks LLM hint generators in three conditions (code only, code plus verified answer, code plus memory diagram) on misconception identification and solution leakage. The result is a reusable drill bank, a misconception-labeled benchmark, and evidence about whether diagrammatic grounding makes LLM tutoring more faithful, without requiring human subjects.

More in Assessment & Grading

All 132 ideas in Assessment & Grading →