Skip to main content
100%

Prim’s Algorithm IV

✓ Published0🌍 Public
Mmbostock
Last edited Aug 7, 2019
Created on Jun 28, 2014

The visualization displays an animated spanning tree generated by Prim’s algorithm on a maze, with colors cycling through a cubehelix color scale to highlight the tree's structure. The maze is computed asynchronously in a worker thread using a min-heap priority queue. The animation renders to a Canvas via `putImageData`, updating pixel colors every 20 milliseconds based on each cell's distance from the start, while rotating the hue through 360 degrees. D3.js (v3) provides the cubehelix interpolation and animation timing.

AI-generated description

Color-cycling applied to a spanning tree generated by Prim’s algorithm. This version rotates hue; see what happens when you vary periodicity instead.

gpl-3.0 Licensed

Similar vizzes