Skip to main content
100%

Quicksort

✓ Published0🌍 Public
Mmbostock
Last edited Feb 9, 2016
Created on Jan 9, 2012

The visualizer shows the Quicksort algorithm sorting a shuffled array of 240 items as a fan of lines, with the current pivot highlighted in red. Each step is animated via a timer, swapping line positions to reflect array changes. The code uses d3.v3 with a linear scale for angular displacement and an ordinal scale for horizontal positioning, rendering SVG lines and driving the animation through `setInterval`. The data is generated by a Fisher–Yates shuffle and processed through the quicksort function.

AI-generated description

See also merge sort.

gpl-3.0 Licensed

Similar vizzes