Sierpiński curve

Sierpiński curves are a recursively defined sequence of continuous closed plane fractal curves discovered by Wacław Sierpiński, which in the limit completely fill the unit square: thus their limit curve, also called the Sierpiński curve, is an example of a space-filling curve.

Because the Sierpiński curve is space-filling, its Hausdorff dimension (in the limit ) is .
The Euclidean length of the th iteration curve is

i.e., it grows exponentially with beyond any limit, whereas the limit for of the area enclosed by is that of the square (in Euclidean metric).

Sierpiński curve ("Sierpiński's square snowflake"[1]) of first order
Sierpiński curves of orders 1 and 2
Sierpiński curves of orders 1 to 3
Sierpiński "square curve"[2] of orders 2–4

Uses of the curve

The Sierpiński curve is useful in several practical applications because it is more symmetrical than other commonly studied space-filling curves. For example, it has been used as a basis for the rapid construction of an approximate solution to the Travelling Salesman Problem (which asks for the shortest sequence of a given set of points): The heuristic is simply to visit the points in the same sequence as they appear on the Sierpiński curve.[3] To do this requires two steps: First compute an inverse image of each point to be visited; then sort the values. This idea has been used to build routing systems for commercial vehicles based only on Rolodex card files.[4]

A space-filling curve is a continuous map of the unit interval onto a unit square and so a (pseudo) inverse maps the unit square to the unit interval. One way of constructing a pseudo-inverse is as follows. Let the lower-left corner (0, 0) of the unit square correspond to 0.0 (and 1.0). Then the upper-left corner (0, 1) must correspond to 0.25, the upper-right corner (1, 1) to 0.50, and the lower-right corner (1, 0) to 0.75. The inverse map of interior points are computed by taking advantage of the recursive structure of the curve.

Here is a function coded in Java that will compute the relative position of any point on the Sierpiński curve (that is, a pseudo-inverse value). It takes as input the coordinates of the point (x,y) to be inverted, and the corners of an enclosing right isosceles triangle (ax, ay), (bx, by), and (cx, cy). (The unit square is the union of two such triangles.) The remaining parameters specify the level of accuracy to which the inverse should be computed.

    static long sierp_pt2code( double ax, double ay, double bx, double by, double cx, double cy,
        int currentLevel, int maxLevel, long code, double x, double y ) 
    {
        if (currentLevel <= maxLevel) {
            currentLevel++;
            if ((sqr(x-ax) + sqr(y-ay)) < (sqr(x-cx) + sqr(y-cy))) {
                code = sierp_pt2code( ax, ay, (ax+cx)/2.0, (ay+cy)/2.0, bx, by,
                    currentLevel, maxLevel, 2 * code + 0, x, y );
            }
            else {
                code = sierp_pt2code( bx, by, (ax+cx)/2.0, (ay+cy)/2.0, cx, cy,
                    currentLevel, maxLevel, 2 * code + 1, x, y );
            }
        }
        return code;    
    }

Representation as Lindenmayer system

The Sierpiński curve can be expressed by a rewrite system (L-system).

Alphabet: F, G, X
Constants: F, G, +, −
Axiom: F−−XF−−F−−XF
Production rules:
X → XF+G+XF−−F−−XF+G+X
Angle: 45

Here, both F and G mean "draw forward", + means "turn left 45°", and means "turn right 45°" (see turtle graphics). The curve is usually drawn with different lengths for F and G.

The Sierpiński square curve can be similarly expressed:

Alphabet: F, X
Constants: F, +, −
Axiom: F+XF+F+XF
Production rules:
X → XF−F+F−XF+F+XF−F+F−X
Angle: 90

Arrowhead curve

The Sierpiński arrowhead curve is a fractal curve similar in appearance and identical in limit to the Sierpiński triangle.

Evolution of Sierpiński arrowhead curve

The Sierpiński arrowhead curve draws an equilateral triangle with triangular holes at equal intervals. It can be described with two substituting production rules: (A → B-A-B) and (B → A+B+A). A and B recur and at the bottom do the same thing — draw a line. Plus and minus (+ and -) mean turn 60 degrees either left or right. The terminating point of the Sierpiński arrowhead curve is always the same provided you recur an even number of times and you halve the length of the line at each recursion. If you recur to an odd depth (order is odd) then you end up turned 60 degrees, at a different point in the triangle.

An alternate constriction is given in the article on the de Rham curve: one uses the same technique as the de Rham curves, but instead of using a binary (base-2) expansion, one uses a ternary (base-3) expansion.

Code

Given the drawing functions void draw_line(double distance); and void turn(int angle_in_degrees);, the code to draw an (approximate) Sierpiński arrowhead curve looks like this:

void sierpinski_arrowhead_curve(unsigned order, double length)
{
    // If order is even we can just draw the curve.
    if ( 0 == (order & 1) ) {
        curve(order, length, +60);
    }
    else /* order is odd */ {
        turn( +60);
        curve(order, length, -60);
    }
}
void curve(unsigned order, double length, int angle)
{
    if ( 0 == order ) {
        draw_line(length);
    } else {
        curve(order - 1, length / 2, -angle);
        turn(angle);
        curve(order - 1, length / 2, angle);
        turn(angle);
        curve(order - 1, length / 2, -angle);
    }
}

Representation as Lindenmayer system

Like many two-dimensional fractal curves, the Sierpiński arrowhead curve can be extended to three dimensions

The Sierpiński arrowhead curve can be expressed by a rewrite system (L-system).

Alphabet: X, Y
Constants: F, +, −
Axiom: XF
Production rules:
X → YF + XF + Y
Y → XF − YF − X

Here, F means "draw forward", + means "turn left 60°", and means "turn right 60°" (see turtle graphics).

See also

References

  1. ^ Weisstein, Eric W. "Sierpiński Curve". MathWorld. Retrieved 21 January 2019.
  2. ^ Dickau, Robert M. (1996/7)"Two-dimensional L-systems", Robert's Math Figures. MathForum.org. Retrieved 21 January 2019.
  3. ^ Platzman, Loren K.; Bartholdi, John J. III (1989). "Spacefilling curves and the planar traveling salesman problem". Journal of the Association for Computing Machinery. 36 (4): 719–737. doi:10.1145/76359.76361.
  4. ^ Bartholdi, John J. III. "Some combinatorial applications of spacefilling curves". Georgia Institute of Technology. Archived from the original on 2012-08-03.

Further reading

Read other articles:

Artikel ini perlu diwikifikasi agar memenuhi standar kualitas Wikipedia. Anda dapat memberikan bantuan berupa penambahan pranala dalam, atau dengan merapikan tata letak dari artikel ini. Untuk keterangan lebih lanjut, klik [tampil] di bagian kanan. Mengganti markah HTML dengan markah wiki bila dimungkinkan. Tambahkan pranala wiki. Bila dirasa perlu, buatlah pautan ke artikel wiki lainnya dengan cara menambahkan [[ dan ]] pada kata yang bersangkutan (lihat WP:LINK untuk keterangan lebih lanjut...

 

У этого термина существуют и другие значения, см. Беатриче д’Эсте. Беатриса д'Эсте королева Венгрии 1234 — 1235 Предшественник Иоланда де Куртене Преемник Мария Ласкарина Рождение 1215(1215)Феррара, герцогство Феррара Смерть после 8 мая 1245 Род Арпады Отец Альдобрандино I д'Эст...

 

Kim Seok-jin김석진Jin saat pada 1 Mei 2019.Informasi latar belakangNama lahirKim Seok-jinLahir4 Desember 1992 (umur 30)Gwacheon, Gyeonggi-do, Korea SelatanGenreK-popPop-rockBaladaPekerjaanPenyanyiPenulis laguInstrumenVokalTahun aktif2013 (2013)–sekarangLabel Big Hit Artis terkaitBTSNama KoreaHangul김석진 Hanja金碩珍 Alih AksaraGim Seok-jinMcCune–ReischauerKim Sŏk-chin Kim Seok-jin (bahasa Korea: 김석진, lahir 4 Desember 1992) atau lebih dikenal dengan mononimnya...

Sports season2014 CFL seasonDurationJune 26 – November 8, 2014East championsHamilton Tiger-CatsWest championsCalgary Stampeders102nd Grey CupDateNovember 30, 2014VenueBC Place, VancouverChampionsCalgary Stampeders CFL seasons← 20132015 → LionsStampedersElksRoughridersBlue BombersArgonautsTiger-CatsAlouettesRedblacksclass=notpageimage| Locations of the active CFL teams West East The 2014 CFL season was the 61st season of modern-day Canadian football. It was the 57th Canadi...

 

دينيسي إيمرسون معلومات شخصية الميلاد 13 مايو 1960 (63 سنة)  الجنسية أستراليا  الحياة العملية الفرق منتخب أستراليا للكريكت (1984–1987)  المهنة لاعبة كريكت  الرياضة الكريكت  بلد الرياضة أستراليا  تعديل مصدري - تعديل   دينيسي إيمرسون (13 مايو 1960 - ) (بالإنجليزية: Denise Emerson)

 

Artikel ini tidak memiliki referensi atau sumber tepercaya sehingga isinya tidak bisa dipastikan. Tolong bantu perbaiki artikel ini dengan menambahkan referensi yang layak. Tulisan tanpa sumber dapat dipertanyakan dan dihapus sewaktu-waktu.Cari sumber: Skala waktu nuklir – berita · surat kabar · buku · cendekiawan · JSTOR Di dalam astrofisika, skala waktu nuklir adalah skala waktu yang dihabiskan oleh sebuah bintang dalam membakar bahan bakar nuklirnya...

Нуристан Координати 38°29′21″ пн. ш. 65°38′47″ сх. д. / 38.48916666669477848° пн. ш. 65.64638888891678903° сх. д. / 38.48916666669477848; 65.64638888891678903Координати: 38°29′21″ пн. ш. 65°38′47″ сх. д. / 38.48916666669477848° пн. ш. 65.64638888891678903° сх. д. / 38.48916666669477848; 65.64...

 

Penciptaan Terang, karya Gustave Doré Kegelapan, adalah kebalikan langsung dari kebercahayaan, didefinisikan sebagai kurangnya penerangan, tidak adanya cahaya tampak, atau permukaan yang menyerap cahaya, seperti hitam atau coklat. Penglihatan manusia tidak dapat membedakan warna dalam kondisi pencahayaan yang sangat rendah. Sel-sel fotoreseptor sensitif warna pada retina tidak aktif ketika tingkat cahaya tidak mencukupi, dalam kisaran persepsi visual yang disebut sebagai penglihatan skotopik...

 

Este artículo o sección necesita referencias que aparezcan en una publicación acreditada.Este aviso fue puesto el 28 de diciembre de 2014. Norþanhymbra(Norðimbraland) Reino de Northumbria Heptarquía anglosajona ← ← ← 653-954 → → → Ubicación de {{{nombre_común}}}Reino de Northumbria, c. 700 Capital Norte: Bamburgh (Bebbanburg)Sur: York (Eoferwic) Idioma oficial Northumbrio (dialecto del inglés antiguo), latín Otros idiomas Britónico, cúmbrico Gobierno Monarquía Rey de ...

  لمعانٍ أخرى، طالع الرفد (توضيح). قرية الرفد  - قرية -  تقسيم إداري البلد  اليمن المحافظة محافظة أبين المديرية مديرية رصد العزلة عزلة القارة السكان التعداد السكاني 2004 السكان 30   • الذكور 17   • الإناث 13   • عدد الأسر 4   • عدد المساكن 6 معلومات أخرى ا...

 

Political party in Australia Centre Party Centre Reform GroupAbbreviationCPLeaderEric CampbellFounderEric CampbellFounded4 December 1933Dissolvedc. 1935HeadquartersSydney, New South WalesNewspaper • New Guard  • LibertyArmed wingNew GuardMembership (1933)c. 15,000IdeologyAustralian fascism[1] • Militarism • Monarchism[2] • Anti-communism[2] • Antisemitism[3] R...

 

Hiệp định thương mại tự do EU   EU   có hiệu lực   áp dụng tạm thời   ký nhưng chưa áp dụng   thỏa thuận nhưng chưa ký   đang đàm phán Liên minh châu Âu ký kết các hiệp định thương mại tự do (FTA) [1] và các thoả thuận khác có một phần về thương mại với nhiều nước trên thế giới và đang đàm phán với nhiều nước khác.[2] ...

French jurist and political philosopher (c. 1530–1596) Jean BodinBornc. 1530Angers, Maine-et-Loire, FranceDied1596Laon, Aisne, FranceEraRenaissance philosophyRegionWestern philosophySchoolMercantilismMain interestsLegal philosophy, political philosophy, economyNotable ideasQuantity theory of money, absolute sovereignty Jean Bodin (French: [ʒɑ̃ bɔdɛ̃]; c. 1530 – 1596) was a French jurist and political philosopher, member of the Parlement of Paris and professor of ...

 

British actress (1938-2014) Topsy Jane as Audrey in The Loneliness of the Long Distance Runner (1962) Topsy Jane (2 December 1938 – 4 January 2014) was a British actress of the 1960s. She was in The Loneliness of the Long Distance Runner (1962) and was cast as Liz (the role eventually played by Julie Christie) in the 1963 film Billy Liar but was forced to pull out owing to mental health issues.[1][2][3][4] Early life Topsy Jane made an early appearance at...

 

Radio station in Puerto PrincesaBrigada News FM Palawan (DWYO)Puerto PrincesaBroadcast areaPalawanBranding103.1 Brigada News FMProgrammingLanguage(s)FilipinoFormatContemporary MOR, News, TalkNetworkBrigada News FMOwnershipOwnerBrigada Mass Media Corporation(Baycomms Broadcasting Corporation)HistoryFirst air date1993 (as Bay Radio) May 8, 2014 (as Brigada News FM)Technical informationLicensing authorityNTCPower10,000 wattsRepeater(s)Coron: 101.3 MHzBrooke's Point: 95.7 MHzNarra: 96.5 MHzQuezon...

This article needs additional citations for verification. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.Find sources: Medan Independent School – news · newspapers · books · scholar · JSTOR (December 2022) (Learn how and when to remove this template message) Private international school in Medan, Sumatra, IndonesiaMedan Independent SchoolAddressJalan Tali Air No.5 / Jamin Ginti...

 

Консульский диптих Флавия Руфия Геннадия Проба Ореста Флавий Руфий Геннадий Проб Орест (лат. Rufius Gennadius Probus Orestes) — римский консул в 530 году на Западе. Со-консулом на Востоке был Флавий Лампадий. В следующие 531—533 годы сохранялся их пост-консулат. Вероятно, он был сын...

 

2012 video game 2012 video gameDeadlightXbox Live Arcade cover artDeveloper(s)Tequila WorksPublisher(s)Microsoft StudiosDeep Silver (Director's Cut)Director(s)Raúl Rubio MunárrizProducer(s)Amaia Markuleta ArrulaIsaac Barrón HermanDesigner(s)Raúl Rubio MunárrizArtist(s)César Sampedro GuerraWriter(s)Antonio RojanoComposer(s)David García DíazEngineUnreal Engine 3[4]Platform(s)Xbox 360, Microsoft Windows, PlayStation 4, Xbox OneReleaseXbox 360WW: August 1, 2012[1]WindowsWW...

For the Britney Spears song, see Gimme More. This article needs additional citations for verification. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.Find sources: Give Me More – news · newspapers · books · scholar · JSTOR (October 2018) (Learn how and when to remove this template message) 2012 single by Tara McDonaldGive Me MoreSingle by Tara McDonaldReleased2012 (2012)St...

 

This article has multiple issues. Please help improve it or discuss these issues on the talk page. (Learn how and when to remove these template messages) This article needs additional citations for verification. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.Find sources: Obscenity band – news · newspapers · books · scholar · JSTOR (September 2019) (Learn how and when to r...

 

Strategi Solo vs Squad di Free Fire: Cara Menang Mudah!