# Bedford-McMullen Carpets

Initializing live version Requires a Wolfram Notebook System

Interact on desktop, mobile and cloud with the free Wolfram Player or other Wolfram Language products.

Bedford–McMullen carpets are planar fractals that generalize the Sierpinski carpet. In this Demonstration, you can plot all possible Bedford–McMullen carpets of rows and columns, with , up to step 4 of the construction. The display shows the lower, Hausdorff, Minkowski and Assouad dimensions of the plotted carpet.

Contributed by: Efstathios Konstantinos Chrontsios Garitsis, Xiaojun Jia and Troy Yang (August 2022)
Open content licensed under CC BY-NC-SA

## Snapshots ## Details

The construction of a Bedford–McMullen carpet proceeds as follows:

1. Take the unit square and pick two numbers .

2. Separate the unit square into an grid of axes-oriented rectangles.

3. Select which rectangles to keep and erase the rest.

4. In each remaining rectangle, apply the same construction, that is, separate it into a grid and keep the same rectangles as before.

Continuing infinitely many times will result in a planar fractal.

A rigorous definition of what we described above is the following:

Definition: Let and a fixed, nonempty set . We call the self-affine set a Bedford-McMullen carpet of rows and columns.

The set determines the rectangles that are kept during the construction, and, more specifically, it is the set of lower-left vertices of the rectangles that are kept with coordinates multiplied by and coordinates multiplied by .

Moreover, our focus is on the case where because many of the following formulas are easier to express. If , we just apply a counterclockwise rotation by 90 degrees and a translation to the right by 1 to the unit square, and we return to the case where without changing any of the dimensions of the carpet and the following formulae still hold.

Theorem: Let be a Bedford–McMullen carpet and denote by the number of chosen rectangles to keep, the number of columns containing at least one chosen rectangle and the number of rectangles chosen in the nonempty column. Then the lower, Hausdorff, Minkowski and Assouad dimensions of are given by: , , and .

The definitions of the given dimensions can be found in  and the proofs of the formulae can be found in [2–5]. Note that the code uses the same notation as that of MacKay in .

Using the given construction and formulae, this visualization offers a way to plot all possible Bedford–McMullen carpets of up to five rows and five columns. The plot depicts the fourth step of the construction, which is detailed enough and as close to the actual set as Mathematica can get (as of Version 12) since any step above 4 results in essentially the same image.

This Demonstration has options for:

\[FilledSmallCircle] the number of steps in the construction,

\[FilledSmallCircle] the number of rows for the carpet,

\[FilledSmallCircle] the number of columns for the carpet,

\[FilledSmallCircle] a choice of different colors for the background and the rectangles plotted in previous steps,

\[FilledSmallCircle] an interactive grid where you can select the rectangles to keep (marked as black) or erase (marked as white),

\[FilledSmallCircle] a "randomize" button to select rectangles to keep at random,

\[FilledSmallCircle] a "clear" button to mark all rectangles white and

\[FilledSmallCircle] a list of the dimensions of the carpet with the chosen settings.

For more theoretical background on dimensions and self-affine sets, see .

References

 J. M. Fraser, Assouad Dimension and Fractal Geometry, New York: Cambridge University Press, 2021.

 T. J. Bedford, "Crinkly Curves, Markov Partitions and Box Dimensions in Self-Similar Sets," Ph.D. thesis, University of Warwick, 1984. webcat.warwick.ac.uk/record=b1464305~S1.

 J. M. Fraser, "Assouad Type Dimensions and Homogeneity of Fractals," Transactions of the American Mathematical Society, 366(12), 2014 pp. 6687–6733. doi:10.1090/S0002-9947-2014-06202-8.

 C. T. McMullen, "Hausdorff Dimension of General Sierpinski Carpets," Nagoya Mathematical Journal, 96, 1984 pp. 1–9.

 J. M. MacKay, "Assouad Dimension of Self-Affine Carpets," Conformal Geometry and Dynamics, 15, 2011 pp. 177–187. doi:10.1090/S1088-4173-2011-00232-3.

## Permanent Citation

Efstathios Konstantinos Chrontsios Garitsis, Xiaojun Jia and Troy Yang

 Feedback (field required) Email (field required) Name Occupation Organization Note: Your message & contact information may be shared with the author of any specific Demonstration for which you give feedback. Send
{"ft_lang_label":"__label__en","ft_lang_prob":0.84970677,"math_prob":0.84849954,"size":4247,"snap":"2022-40-2023-06","text_gpt3_token_len":1040,"char_repetition_ratio":0.13103937,"word_repetition_ratio":0.027777778,"special_character_ratio":0.2326348,"punctuation_ratio":0.14375,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.95797783,"pos_list":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68],"im_url_duplicate_count":[null,null,null,null,null,2,null,2,null,2,null,2,null,2,null,2,null,2,null,2,null,2,null,2,null,2,null,2,null,2,null,2,null,2,null,2,null,2,null,2,null,2,null,2,null,2,null,2,null,2,null,2,null,2,null,2,null,2,null,2,null,2,null,2,null,2,null,2,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2022-09-27T12:11:10Z\",\"WARC-Record-ID\":\"<urn:uuid:5f5a6e1f-9162-4114-95de-77d4a9b42aae>\",\"Content-Length\":\"36712\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:3e66da4d-087f-4e21-9345-eec62a0aa8e5>\",\"WARC-Concurrent-To\":\"<urn:uuid:d6710d9b-d8b0-4e2d-8cfa-701e4caec851>\",\"WARC-IP-Address\":\"140.177.205.90\",\"WARC-Target-URI\":\"https://demonstrations.wolfram.com/BedfordMcMullenCarpets/\",\"WARC-Payload-Digest\":\"sha1:TN5FR6IL5BOMUR7OHMFURQV72JXIOFUZ\",\"WARC-Block-Digest\":\"sha1:26D2I47CLK4ARTRXEL2OVZN5RZATLXYW\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2022/CC-MAIN-2022-40/CC-MAIN-2022-40_segments_1664030335004.95_warc_CC-MAIN-20220927100008-20220927130008-00384.warc.gz\"}"}