Skip to main content
100%

Quicksort II

✓ Published0🌍 Public
Mmbostock
Last edited Feb 9, 2016
Created on May 28, 2014

This visualization shows every recursive step of quicksort on a shuffled array of 200 numbers, with each row representing the array state before recursing into a partition. Red lines mark the chosen pivots, while gray lines indicate inactive elements. The code uses d3.v3 with SVG rendering, employing ordinal and linear scales to map array positions and rotated line marks. The quicksort algorithm is implemented in JavaScript, generating the level data and pivot metadata for each state.

AI-generated description

Another visualization of quicksort. Here, each row corresponds to the state of the array prior to recursing into each partition. The red lines represent the pivots.

gpl-3.0 Licensed

Similar vizzes