Sierpinski carpet

From Wikipedia, the free encyclopedia
Jump to: navigation, search
Sierpinski carpet.png

The Sierpinski carpet is a plane fractal first described by Wacław Sierpiński in 1916. The carpet is a generalization of the Cantor set to two dimensions (another is Cantor dust). Sierpiński demonstrated that this fractal is a universal curve, in that it has topological dimension one, and every other compact metric space of topological dimension 1 is homeomorphic to some subset of it.

The technique of subdividing a shape into smaller copies of itself, removing one or more copies, and continuing recursively can be extended to other shapes. For instance, subdividing an equilateral triangle into four equilateral triangles, removing the middle triangle, and recursing leads to the Sierpinski triangle. In three dimensions, a similar construction based on cubes produces the Menger sponge, which is also a universal curve.


The construction of the Sierpinski carpet begins with a square. The square is cut into 9 congruent subsquares in a 3-by-3 grid, and the central subsquare is removed. The same procedure is then applied recursively to the remaining 8 subsquares, ad infinitum. It can be realised as the set of points in the unit square whose coordinates written in base three do not both have a digit '1' in the same position.[1]

The process of recursively removing squares is an example of a finite subdivision rule.

The area of the carpet is zero (in standard Lebesgue measure). The Hausdorff dimension of the carpet is log 8/log 3 ≈ 1.8928.[2]

The Sierpinski carpet can also be created by iterating every pixel in a square and using the following algorithm to decide if the pixel is filled. The following implementation is valid C, C++, and Java.

* Decides if a point at a specific location is filled or not.  This works by iteration first checking if
* the pixel is unfilled in successively larger squares or cannot be in the center of any larger square.
* @param x is the x coordinate of the point being checked with zero being the first pixel
* @param y is the y coordinate of the point being checked with zero being the first pixel
* @return 1 if it is to be filled or 0 if it is open
int isSierpinskiCarpetPixelFilled(int x, int y)
    while(x>0 || y>0) // when either of these reaches zero the pixel is determined to be on the edge 
                               // at that square level and must be filled
        if(x%3==1 && y%3==1) //checks if the pixel is in the center for the current square level
            return 0;
        x /= 3; //x and y are decremented to check the next larger square level
        y /= 3;
    return 1; // if all possible square levels are checked and the pixel is not determined 
                   // to be open it must be filled


Menger 0.PNG Menger 1.PNG Menger 2.PNG Menger 3.PNG Menger 4.PNG Menger 5.PNG

Brownian motion on the Sierpinski carpet[edit]

The topic of Brownian motion on the Sierpinski carpet has attracted interest in recent years.[3] Martin Barlow and Richard Bass have shown that a random walk on the Sierpinski carpet diffuses at a slower rate than an unrestricted random walk in the plane. The latter reaches a mean distance proportional to n1/2 after n steps, but the random walk on the discrete Sierpinski carpet reaches only a mean distance proportional to n1/β for some β > 2. They also showed that this random walk satisfies stronger large deviation inequalities (so called "sub-gaussian inequalities") and that it satisfies the elliptic Harnack inequality without satisfying the parabolic one. The existence of such an example was an open problem for many years.

Wallis sieve[edit]

A variation of the Sierpinski carpet, called the Wallis sieve, starts in the same way, by subdividing the unit square into nine smaller squares and removing the middle of them. At the next level of subdivision, it subdivides each of the squares into 25 smaller squares and removes the middle one, and it continues at the ith step by subdividing each square into (2i + 1)2 smaller squares and removing the middle one. By the Wallis product, the area of the resulting set is π/4,[4][5] unlike the standard Sierpinski carpet which has zero limiting area.


  1. ^ Allouche, Jean-Paul; Shallit, Jeffrey (2003). Automatic Sequences: Theory, Applications, Generalizations. Cambridge University Press. pp. 405–406. ISBN 978-0-521-82332-6. Zbl 1086.11015. 
  2. ^ Semmes, Stephen (2001). Some Novel Types of Fractal Geometry. Oxford Mathematical Monographs. Oxford University Press. p. 31. ISBN 0-19-850806-9. Zbl 0970.28001. 
  3. ^ Barlow, Martin; Bass, Richard, Brownian motion and harmonic analysis on Sierpinski carpets, retrieved 25 September 2011 
  4. ^ Rummler, Hansklaus (1993), "Squaring the circle with holes", The American Mathematical Monthly 100 (9): 858–860, doi:10.2307/2324662, MR 1247533 .
  5. ^ Weisstein, Eric W., "Wallis Sieve", MathWorld.
  • Sierpiński, Wacław (1916). "Sur une courbe cantorienne qui contient une image biunivoque et continue de toute courbe donnée". C. r. hebd. Seanc. Acad. Sci., Paris (in French) 162: 629–632. ISSN 0001-4036. JFM 46.0295.02. 

See also[edit]

External links[edit]