Quicksort V
✓ Published0🌍 Public
Mmbostock
Last edited Feb 9, 2016
Created on Jun 1, 2014
A visualization of quicksort on 100 elements, where each horizontal row represents the array state after a single swap and colored lines trace each element’s positional movement through the sorting process. The code uses d3.v3 with custom SVG path interpolators to render the straight and diagonal segments, and a cubehelix color scale to differentiate elements. Randomly shuffled data is generated with `d3.shuffle` and `d3.range`, and the quicksort algorithm is implemented manually to record swap operations.
AI-generated descriptionA visualization of quicksort. Each row represents the state of the array after a single swap operation.
See also sortvis.org by Aldo Cortesi and sorting visualizations by Jason Davies.
gpl-3.0 Licensed