Talk:Cantor set: Difference between revisions

From Rosetta Code
Content added Content deleted
mNo edit summary
m (where N = 4, perhaps something like the following ?)
Line 5: Line 5:
# some graphic representation of the same
# some graphic representation of the same



e.g. where N = 4, something like:
e.g. where N = 4, perhaps something like the following ?


<pre>[0, 1]
<pre>[0, 1]

Revision as of 18:43, 6 November 2018

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 – perhaps for example:

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


e.g. where N = 4, perhaps something like the following ?

[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]

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