This project generates step-by-step sorting visualizations as jgraph files, then converts them to PostScript and PDF.
Supported algorithms:
bubblemergequick
Each step is rendered as a row of indexed squares with highlight colors:
- Yellow: compared indices
- Pink: value moving from this index
- Green: value moving to this index
Build and generate demo outputs (PDF + JPG) with one command:
makeThis compiles sortviz (if needed), runs several sorting scenarios, and writes showcase files to:
tests/demo/*.pdfdocs/images/*.jpg
make build./sortviz <bubble|merge|quick> <values...>Examples:
./sortviz bubble 5 1 4 2 8
./sortviz merge 38,27,43,3,9,82,10
./sortviz quick 10 7 8 9 1 5Each run creates a timestamped folder under tests/bin/ containing one file per step in all formats:
step_XXXX.jgrstep_XXXX.psstep_XXXX.pdf





