Skip to main content
100%

Mitchell’s Best-Candidate

✓ Published0🌍 Public
Mmbostock
Last edited Feb 9, 2016
Created on Aug 13, 2013

Delaunay triangulation reveals the structure of points generated by Mitchell’s best-candidate algorithm, adding 2,500 points gradually over time. The animation shows the Voronoi-linked edges connecting each point to its nearest neighbors, redrawing the complete triangulation each frame as new points appear. The code uses `d3.geom.voronoi()` to compute links, a quadtree via `d3.geom.quadtree()` for efficient distance checks, and a Canvas 2D context for stroking the resulting line network. The point generation progressively slows as the density increases.

AI-generated description

A Delaunay variation of the Mitchell’s best-candidate explanation.

Note: this would be much more efficient if the Delaunay triangulation were computed incrementally for just the additional points added each frame.

gpl-3.0 Licensed

Similar vizzes