Built idea · Oct 6, 2026
Heap Arena Replay
Paste or generate a malloc/free trace and watch a simulated heap allocate, split, coalesce and fragment under first-fit, best-fit, next-fit and segregated free lists, with auto-generated quiz questions for systems courses.
What it does
Lets students watch a memory allocator at work. Load a malloc lab trace or C-style steps and replay them on a picture of the heap, switching between first, next, best and worst fit, different free-list designs and merging rules, even partway through. A compare view runs up to eight strategies on one trace and charts wasted space and search effort. Instructors can generate quizzes with answers taken from the simulation (Markdown or a Canvas quiz file), and a diff mode finds the first step where a student's allocator goes astray. Limitation: the heap has a fixed size and never grows, so it doesn't reproduce the official malloc lab utilization score.