Talk:Cantor set

From Rosetta Code
Revision as of 18:41, 6 November 2018 by Hout (talk | contribs) (A fuller task description, and perhaps two representations of N Cantor steps ?)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Perhaps a pity that this task looks a bit neglected and incompletely defined ?

I wonder if it would be worth fleshing it out, and perhaps aiming for two complementary representations of N steps of the elaboration of the Cantor set, for example, perhaps for example:

  1. Each line as a list of intervals, expressed as fractions
  2. Some graphic representation of the same

e.g. where N = 4, something like:

[0, 1]
[0, 1/3] [2/3, 1]
[0, 1/9] [2/9, 1/3] [2/3, 7/9] [8/9, 1]
[0, 1/27] [2/27, 1/9] [2/9, 7/27] [8/27, 1/3] [2/3, 19/27] [20/27, 7/9] [8/9, 25/27] [26/27, 1]

███████████████████████████
█████████         █████████
███   ███         ███   ███
█ █   █ █         █ █   █ █