Skip to main content
100%

Analyzing Spanning Trees

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

Four histograms compare the distribution of great-grandchild counts in spanning trees generated by four maze algorithms: randomized depth-first traversal, random traversal, Prim's algorithm, and Wilson's algorithm. Each horizontal bar group shows the probability of a node having zero through eight great-grandchildren across a 200×200 grid. The visualization reveals that randomized depth-first traversal strongly favors long, non-branching passages with many zero-count nodes. The code uses d3.svg.axis, d3.scale.ordinal, and d3.tsv to render the computed data from a TSV file.

AI-generated description

These histograms show great-grandchildren counts for spanning trees generated by various algorithms. Randomized depth-first traversal has a strong tendency to generate long non-branching passages, where most nodes only have one child.

gpl-3.0 Licensed

Similar vizzes