Overview
Introduction
The classic Cantor set has zero total length no matter how you slice it, yet the real Smith-Volterra-Cantor set proves that a Cantor-set-style construction, nowhere dense and containing no interval, can still keep strictly positive length if you remove a shrinking rather than constant fraction at each step.
This tool renders a fat-Cantor-set-style construction that captures the visual intuition: a fixed 25% removal per iteration keeps 75% of each segment's length behind, far more than the classic set's roughly 66.7%, so the rows stay noticeably thicker for longer as depth increases.
What Is Generate a Smith-Volterra-Cantor Set?
A generator inspired by the Smith-Volterra-Cantor set, drawn the same way as the other Cantor set tools in this category, one stacked row per iteration, but using a keep-ratio of 75% per step instead of the classic set's roughly 66.7%.
The real textbook Smith-Volterra-Cantor set achieves genuine positive measure at the infinite limit by shrinking its removed fraction at every step; this tool uses a simpler constant 25% removal, which still demonstrates the "much fatter than the classic set" intuition clearly within its bounded, renderable depth range.
How Generate a Smith-Volterra-Cantor Set Works
Row 0 starts as a single unbroken segment. At every subsequent row, each surviving segment has exactly 25% of its current length removed from the middle, split evenly so a centered gap opens up while the two outer 37.5% pieces survive as new children.
Because 75% of each segment's length carries forward every iteration, rather than the classic set's roughly 66.7%, the total remaining length at a given depth is noticeably larger, the rows visibly stay "fatter" for more iterations before thinning out.
As with the classic construction, every segment still splits into exactly two children per iteration, so segment count still doubles per row (2^depth in the final row); what differs is only how much of each segment's length survives the split.
When To Use Generate a Smith-Volterra-Cantor Set
Use it to build intuition for the fat Cantor set concept from real analysis, a nowhere-dense set that can still carry positive measure, by seeing how a generous keep-ratio visibly resists thinning out compared to the classic construction.
It pairs well with the classic Cantor Set Generator for a direct side-by-side comparison of a fast-shrinking versus a slow-shrinking removal rule at the same depth.
Often used alongside Generate a Cantor Set, Generate an Asymmetric Cantor Set and Generate a Generalized Cantor Set.
Features
Advantages
- Visibly demonstrates the fat-Cantor-set intuition, dramatically more surviving length at a given depth than the classic construction.
- Depth range extends to 10, letting you see more iterations clearly before the rows become too thin, thanks to the slower 75%-per-step shrink rate.
- Exports as clean vector SVG or a flattened PNG, matching the other Cantor set tools in this category.
Limitations
- This tool uses a constant 25%-per-iteration removal for simplicity, not the textbook construction's shrinking removal schedule, so it approximates the fat-Cantor-set intuition at bounded depth rather than literally converging to positive measure at an infinite limit.
- Like any constant keep-ratio under 100%, the total remaining length still trends toward zero if iterated indefinitely, it just does so far more slowly than the classic set.
Examples
Best Practices & Notes
Best Practices
- Compare it directly against the Cantor Set Generator at the same depth to see the difference a slower shrink rate makes.
- Push depth toward the 10 maximum to see how much longer the rows resist thinning compared to the classic construction's depth-8 cap.
Developer Notes
Implemented via the shared `cantorRows` row-stacking helper with a custom split function that removes a fixed 25% of each segment's current length from a centered gap (`removed = length * 0.5 * 0.5`), keeping two 37.5%-length children per iteration. This is a constant-ratio approximation of the fat-Cantor-set idea rather than the textbook Smith-Volterra-Cantor set's diminishing removal schedule (removing epsilon/4^n from each of 2^(n-1) intervals at step n), which is what gives the genuine textbook construction strictly positive measure at the true infinite limit.
Generate a Smith-Volterra-Cantor Set Use Cases
- Building visual intuition for the fat Cantor set concept from real analysis (nowhere dense, but far slower to shrink toward zero length)
- Side-by-side comparison against the classic Cantor Set Generator to show how the removal fraction affects surviving length
- Teaching or illustrating that "self-similar and sparse" doesn't automatically mean "zero length"
Common Mistakes
- Assuming this tool's output literally converges to positive measure at an infinite limit, it approximates that intuition at bounded depth using a constant removal ratio, not the textbook shrinking-removal schedule that gives the real Smith-Volterra-Cantor set its positive-measure property.
- Expecting the segment count to differ from the classic set, it doesn't, both still double per row, only the surviving length per segment differs.
Tips
- Set depth to the 10 maximum and compare the bottom row's total surviving width against the classic Cantor Set Generator's depth-8 result for the clearest visual of the difference.
- Read the Wikipedia reference on the Smith-Volterra-Cantor set for the precise textbook construction and its positive-measure proof.