Analyzing Spanning Trees
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 descriptionThese 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.