Idea · Sep 7, 2026

Notional Machine Animator

A step-through code execution visualizer where students see memory boxes, the call stack, and heap arrows update expression by expression, then compare their predicted model to what actually happened.

What it would do

Notional Machine Animator accepts a short Python program and builds an animated execution trace: variables appear as labeled memory boxes, function calls push named frames onto a visible call stack, and list or dict values appear as arrows pointing to heap objects. Students step forward one expression at a time and can pause to type or draw their prediction before each step; the tool then highlights where their mental model diverges from actual execution. Instructors can author 'misconception challenge' snippets centered on classic surprises (aliasing, mutable default arguments, scoping rules) and share them via URL. At the end of a trace, a side-by-side 'my model vs. reality' diff summarizes every point of divergence.

Key features

  • Expression-by-expression animated execution with named memory boxes and a visible call stack
  • Predict-before-reveal mode: students submit their expected state before each step
  • Misconception challenge library: instructors author and share tricky snippets via URL
  • End-of-trace divergence summary comparing student prediction to actual execution

More in Algorithms & Data Structures

Big-O Sonifier

Converts an algorithm's live execution trace into sound, so students can hear the difference between O(n), O(n log n), and O(n^2) as the input size grows.

Algorithms & Data StructuresTeaching toolMediumSep 23, 2026

Two-Language Concept Mirror

Show the same CS concept implemented side-by-side in three languages; Claude explains conceptual equivalences and differences, not just syntax differences.

Algorithms & Data StructuresTeaching toolMediumSep 14, 2026

Build-Your-Own Vector Search Engine

Students implement a complete vector similarity search engine from flat brute-force cosine search to HNSW approximate nearest-neighbor search, wrapped in a Flask API, learning the algorithms and tradeoffs underlying every modern RAG and semantic search system.

Algorithms & Data StructuresClass assignmentLargeAug 29, 2026

Algorithm Quest Narrator

Students build an AI dungeon master that presents classic algorithm and data structure problems as narrative adventures, adapts difficulty to player performance, and engages in Socratic dialogue without giving away solutions.

Algorithms & Data StructuresClass assignmentLargeAug 28, 2026

All 27 ideas in Algorithms & Data Structures →