Move the Depth slider to generate stages of the Cantor set. Use the mouse-wheel to zoom and drag to pan. Watch the total length shrink as (2/3)n.
Depth n | Segments 2n | Total length (2/3)n |
---|
Choose an integer k to partition the unit interval into boxes of length 1/3k. Count how many boxes intersect the Cantor set, then plot log N(s) vs log (1/s) to estimate the box dimension.
k | s = 1/3k | N(s) |
---|