Mitchell’s Best-Candidate
✓ Published0🌍 Public
Mmbostock
Last edited Nov 28, 2019
Created on Aug 13, 2013
The animation shows a field of white circles with black outlines growing into a dense, non-overlapping packing on a dark gray background. It uses the Mitchell’s best-candidate algorithm to iteratively add circles, where each new circle is chosen from a set of random candidates by maximizing the minimum distance to existing circles. The implementation is built with D3 v3’s `d3.geom.quadtree` for spatial indexing, `d3.select` to build the SVG, and `d3.timer` with a `transition()` on the `r` attribute to animate the circles growing from radius zero as they are placed.
AI-generated descriptionA white-on-black variation of the Mitchell’s best-candidate explanation.
gpl-3.0 Licensed