Apps / Heap Arena Replay

Heap Arena Replay

Replay a malloc/free trace on a word-accurate heap under different allocator policies.

Open Heap Arena Replay ↗ Want one like this?

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.

Good to know

The heap has a fixed size and never grows, so it doesn't reproduce the official malloc lab utilization score.

More for learners

StepWise

100+ data structures and algorithms, every step narrated with its pseudocode line and variables; step back, share as a link, embed in Canvas.

LearnersEducators Open ↗

Digital Student Assistant

An AI teaching assistant that asks before it tells and won’t hand over homework. Yusuf Pisan’s data structures students at UW Bothell use it now.

EducatorsLearners Open ↗