On the Practical Implementation of L-Systems

Total Page:16

File Type:pdf, Size:1020Kb

On the Practical Implementation of L-Systems INTERNATIONAL JOURNAL OF COMPUTERS Volume 9, 2015 On the practical implementation of L-systems David Brebera generation is consistent with members of the Fibonacci Abstract— L-system, sometimes called Lindenmayer system is a sequence and the ratio of a to b in the limit corresponds to the formal way of writing an algorithm first introduced in 1968 by golden ratio φ = 1.618 ... which occurs in many different forms Hungarian biologist Aristide Lindenmayer (1925-1989), and is in nature. primarily designed as a tool to describe the growth of plants [Lin68]. Over time, however, the L system has become a tool used not only in biology, but also today, mainly in computer science (as an example II. TURTLE GRAPHICS for the study of context-free grammars) and mathematics (a tool used Turtle Graphics is commonly used term for a simple vector to describe and exploration of fractal curves). As a visualization tool graphic language interpreter in the XY plane. To the public it L-system often uses turtle graphics (below), i.e. LOGO programming is often presented as being a turtle tail, which in its simplest language. implementation has just five graphic commands: TurnLeft, Keywords— algorithm, fractal, L-system, LEGO, LOGO, TurnRight, PENUP, PenDown, Forward. If the tail of the recursion, turtle graphics turtle is down (PenDown), then draws a line in the sand, when the tail is up, then after the command Forward turtle only I. L-SYSTEMS moves, but it is not drawing. These methods were used in the print driver for plotter described below. For the purpose of L- HE Definition of L-system is often stated as follows systems often leads to a simple modification, the trio [Pru 90]: L-system is an ordered triplet L = <V, ω, P>, T commands PenUp, PenDown a Forward is replaced by a pair where V is an alphabet, V* set of words compiled from the of MoveForward (without drawing lines) and DrawForward alphabet V and V+ the set of all non-empty words drawn from (while drawing lines). Likewise, a pair of commands TurnLeft the alphabet V. In addition, ω ε+ is the axiom defining the TurnRight are replaced with a single command TurnLeft with initial state of the entire L-system. Finally P V × V* is a a positive argument for turning to the left (counter clockwise) finite set of rewriting rules to ∈rewriting s V to w V*, in and a negative argument to turn to the right (clockwise). The abbreviated labeling as a → w. For each symbol⊂ s V that is logic is the same as the standard measurement angle in the not on the left side of some rewriting rule P ∈is defined∈ identity plane when the default angle φ = 0 is a shift in the positive s → s. These symbols are called constants or terminals.∈ direction of the X axis negative analogy argument commands This definition of L-system is slightly differs from the MoveForward and DrawForward causes movement / drawing conventional definition of deterministic context-free grammar opposite direction. [Sip06] thinking grammar G = <V, Σ, R, S> arranged as a ordered quartet with only one initial symbol S V (unlike L- system where initial axiom can be a whole word - although this III. L-SYSTEM WITH BRACKETS can be in the L-system neatly fixed by adding one∈ more rewrite L-system with brackets extends the standard L-system of rules ω0 → ω, ω0 V) and a set Σ disjoint with V as a finite set of terminals. branches by introducing two new symbols: "[" as the ∈ beginning of branches and "]" as the end of the branches. The The simplest L-system can be, for example, often referred to symbol "[" then stores on the stack the current state of the following a set of rules (which Lindenmayer used as a rule of system, typically the current coordinates (position of the turtle) algae growth) and the axiom, rule a → ab, b → a. After a few and the angle of rotation. Symbol "]" analogically restores the steps we get a, b, aba, abaab, abaababa, abaababaabaab etc. system state to the point stored in the stack (these values from Certainly it is interesting that the number of symbols in each the stack are picked up, move the turtle to coordinates and rotates it in the saved, respectively. The symbols "[" and "]" have become so integral part of the L-systems, that if today we This work was supported by the project No. SGSFES_2015001 speak about L-systems we completely automatically Ekonomický a sociální rozvoj v soukromém a veřejném sektoru (Economical and social development in private and public sector), financed from Czech understand just as L-systems with brackets. Such a system will Republic funds. enable to create different types of trees (not necessarily binary- only). Let us say, however, that any system with brackets can D. Brebera, Institute of Mathematics and Quantitative Methods, Faculty of Economics and Administration, University of Pardubice, Pardubice, be rewritten without parentheses simply that instead of the Studentská 84, 532 10 Pardubice, Czech Republic (e-mail: symbol "]" inverted repeat steps carried out after the preceding [email protected]). "[", i.e. the inverse shift and rotation turtles and inverse ISSN: 1998-4308 125 INTERNATIONAL JOURNAL OF COMPUTERS Volume 9, 2015 mathematical operations. This procedure has been used to L-systems - we will not repeat this process in all the upcoming draw some further mentioned fractals. listings. IV. PARAMETRIC L-SYSTEM WITH BRACKETS Further expansion of L-systems is the introduction of the arguments on the individual symbols. Arguments in decimal form (or in general, any mathematical function) allow you to control the rendering algorithm, for example, by passing the length of the line or angle. V. SELECTED L-SYSTEMS AND THEIR GRAPHICAL REPRESENTATION Let us imagine now briefly some simple L-systems. For each, we will present its graphic (often fractal) form and write Fig. 1: Levy C-curve the algorithm in the system Malsys [Fis12]. All presented algorithms are also possible to draw on Lego plotter. For some we will also describe detail procedures for processing because the recursion is not supported by Lego (!) programming lsystem Levy_C_curve_LEGO { language. set symbols axiom = - F1 ; set iterations = 5; VI. LEVY C-FRACTAL interpret F as DrawForward(16); Levy C-fractal is based on the axiom F, and one very frugal interpret + as TurnLeft(90); overwrite rule interpret - as TurnLeft(-90); F → - F + + F rewrite F1 to - F2 + F2 F2 + F2 - ; rewrite F2 to - F3 + F3 F3 + F3 - ; rewrite F3 to - F4 + F4 F4 + F4 - ; where the symbol + represents a turn to the left about 45 rewrite F4 to - F + F F + F - ; degrees symbol - clockwise rotation of 45 ° F symbol and } move forward. Successively overwriting this chain then comprises the following sequence: Fig. 2: Levy C-curve algorithm F - F + + F - - - F + F + - + - F + + F - - etc. VII. H-FRACTAL However, since, as already mentioned, the programming H-fractal is the simplest example of a binary tree of language does not support recursion, such realization of L- parametric L-system with parentheses. Parameter is the length system is impossible. If we replace doubles in the latter chain, of the branch, then parentheses denote branching point. Again, a pair of symbols - - and + + we receive always one new a very simple example, however the implementation is same symbol with an angle of 90 ° (intermediate sequences - + impossible in Lego environment, since the entire system would + - cancel each other out), we can get a very similar record need be programmed. To draw a tree was used the same again with the axiom F and overwrite rule principle as the C-Levy fractal, moreover, it was necessary to draw upon each branch return by the same route back, which F → - F + F F + -. replaces pick originally stored parameters on the stack. Now broken down a few steps as follows: axiom F_0 and rewriting rules F_0 → - F_1 + F_1 F_1+ F_1 - F_1 → - F_2 + F_2 F_2+ F_2 - F_n → - F + F F+ F - ⋮ In the last, the n-th step, already do not call other nesting, but actually the first command Forward. The same trick, therefore multiple calls to the same rules, with only a slightly modified name (index added) was used also in the creation of additional Fig. 3: the H-fractal ISSN: 1998-4308 126 INTERNATIONAL JOURNAL OF COMPUTERS Volume 9, 2015 same direction - try as many times as you can) followed by unfolding with the preservation of right angles. lsystem H_fractal { set symbols axiom = + A(256) ; set iterations = 8; interpret F(x) as _ DrawForward(256/(sqrt(2)^x)); interpret + as TurnLeft(90); interpret - as TurnLeft(-90); Fig. 7: paper folding (credit Wikimedia Commons) interpret [ as StartBranch; interpret ] as EndBranch; rewrite A to F(currentIteration) [ - A] [ + A ] ; } Fig. 4: the H-fractal algorithm VIII. HILBERT CURVE The Hilbert curve, which tore down many prejudices about mathematical infinitely thin lines and their derivatives (as in the limit covers the entire plane dimension 2 and becomes flat) certainly deserves its place among L-systems deserves. Let's leave it without further comment and try it to draw the curve in hand. It's not as easy as it seems at first glance. Fig. 8: Dragon curve in 1024 steps lsystem DragonCurve { set symbols axiom = - F X; set iterations = 10; interpret F as DrawForward(8); interpret + as TurnLeft(90); interpret - as TurnLeft(-90); rewrite X to X + Y F ; rewrite Y to F X - Y ; } Fig. 9: Dragon curve in 1024 steps Fig. 5: the Hilbert curve X. RECURSION FREE ALGORITHM lsystem HilbertCurve { To draw a Dragon curve using rewriting rules and recursion is set symbols axiom = L; easy, but (as already mentioned) the recursion is impossible set iterations = 6; development environment Lego does not.
Recommended publications
  • Using Fractal Dimension for Target Detection in Clutter
    KIM T. CONSTANTIKES USING FRACTAL DIMENSION FOR TARGET DETECTION IN CLUTTER The detection of targets in natural backgrounds requires that we be able to compute some characteristic of target that is distinct from background clutter. We assume that natural objects are fractals and that the irregularity or roughness of the natural objects can be characterized with fractal dimension estimates. Since man-made objects such as aircraft or ships are comparatively regular and smooth in shape, fractal dimension estimates may be used to distinguish natural from man-made objects. INTRODUCTION Image processing associated with weapons systems is fractal. Falconer1 defines fractals as objects with some or often concerned with methods to distinguish natural ob­ all of the following properties: fine structure (i.e., detail jects from man-made objects. Infrared seekers in clut­ on arbitrarily small scales) too irregular to be described tered environments need to distinguish the clutter of with Euclidean geometry; self-similar structure, with clouds or solar sea glint from the signature of the intend­ fractal dimension greater than its topological dimension; ed target of the weapon. The discrimination of target and recursively defined. This definition extends fractal from clutter falls into a category of methods generally into a more physical and intuitive domain than the orig­ called segmentation, which derives localized parameters inal Mandelbrot definition whereby a fractal was a set (e.g.,texture) from the observed image intensity in order whose "Hausdorff-Besicovitch dimension strictly exceeds to discriminate objects from background. Essentially, one its topological dimension.,,2 The fine, irregular, and self­ wants these parameters to be insensitive, or invariant, to similar structure of fractals can be experienced firsthand the kinds of variation that the objects and background by looking at the Mandelbrot set at several locations and might naturally undergo because of changes in how they magnifications.
    [Show full text]
  • Harmonious Hilbert Curves and Other Extradimensional Space-Filling Curves
    Harmonious Hilbert curves and other extradimensional space-filling curves∗ Herman Haverkorty November 2, 2012 Abstract This paper introduces a new way of generalizing Hilbert's two-dimensional space-filling curve to arbitrary dimensions. The new curves, called harmonious Hilbert curves, have the unique property that for any d0 < d, the d-dimensional curve is compatible with the d0-dimensional curve with respect to the order in which the curves visit the points of any d0-dimensional axis-parallel space that contains the origin. Similar generalizations to arbitrary dimensions are described for several variants of Peano's curve (the original Peano curve, the coil curve, the half-coil curve, and the Meurthe curve). The d-dimensional harmonious Hilbert curves and the Meurthe curves have neutral orientation: as compared to the curve as a whole, arbitrary pieces of the curve have each of d! possible rotations with equal probability. Thus one could say these curves are `statistically invariant' under rotation|unlike the Peano curves, the coil curves, the half-coil curves, and the familiar generalization of Hilbert curves by Butz and Moore. In addition, prompted by an application in the construction of R-trees, this paper shows how to construct a 2d-dimensional generalized Hilbert or Peano curve that traverses the points of a certain d-dimensional diagonally placed subspace in the order of a given d-dimensional generalized Hilbert or Peano curve. Pseudocode is provided for comparison operators based on the curves presented in this paper. 1 Introduction Space-filling curves A space-filling curve in d dimensions is a continuous, surjective mapping from R to Rd.
    [Show full text]
  • Image Encryption and Decryption Schemes Using Linear and Quadratic Fractal Algorithms and Their Systems
    Image Encryption and Decryption Schemes Using Linear and Quadratic Fractal Algorithms and Their Systems Anatoliy Kovalchuk 1 [0000-0001-5910-4734], Ivan Izonin 1 [0000-0002-9761-0096] Christine Strauss 2 [0000-0003-0276-3610], Mariia Podavalkina 1 [0000-0001-6544-0654], Natalia Lotoshynska 1 [0000-0002-6618-0070] and Nataliya Kustra 1 [0000-0002-3562-2032] 1 Department of Publishing Information Technologies, Lviv Polytechnic National University, Lviv, Ukraine [email protected], [email protected], [email protected], [email protected], [email protected] 2 Department of Electronic Business, University of Vienna, Vienna, Austria [email protected] Abstract. Image protection and organizing the associated processes is based on the assumption that an image is a stochastic signal. This results in the transition of the classic encryption methods into the image perspective. However the image is some specific signal that, in addition to the typical informativeness (informative data), also involves visual informativeness. The visual informativeness implies additional and new challenges for the issue of protection. As it involves the highly sophisticated modern image processing techniques, this informativeness enables unauthorized access. In fact, the organization of the attack on an encrypted image is possible in two ways: through the traditional hacking of encryption methods or through the methods of visual image processing (filtering methods, contour separation, etc.). Although the methods mentioned above do not fully reproduce the encrypted image, they can provide an opportunity to obtain some information from the image. In this regard, the encryption methods, when used in images, have another task - the complete noise of the encrypted image.
    [Show full text]
  • Measuring the Fractal Dimensions of Empirical Cartographic Curves
    MEASURING THE FRACTAL DIMENSIONS OF EMPIRICAL CARTOGRAPHIC CURVES Mark C. Shelberg Cartographer, Techniques Office Aerospace Cartography Department Defense Mapping Agency Aerospace Center St. Louis, AFS, Missouri 63118 Harold Moellering Associate Professor Department of Geography Ohio State University Columbus, Ohio 43210 Nina Lam Assistant Professor Department of Geography Ohio State University Columbus, Ohio 43210 Abstract The fractal dimension of a curve is a measure of its geometric complexity and can be any non-integer value between 1 and 2 depending upon the curve's level of complexity. This paper discusses an algorithm, which simulates walking a pair of dividers along a curve, used to calculate the fractal dimensions of curves. It also discusses the choice of chord length and the number of solution steps used in computing fracticality. Results demonstrate the algorithm to be stable and that a curve's fractal dimension can be closely approximated. Potential applications for this technique include a new means for curvilinear data compression, description of planimetric feature boundary texture for improved realism in scene generation and possible two-dimensional extension for description of surface feature textures. INTRODUCTION The problem of describing the forms of curves has vexed researchers over the years. For example, a coastline is neither straight, nor circular, nor elliptic and therefore Euclidean lines cannot adquately describe most real world linear features. Imagine attempting to describe the boundaries of clouds or outlines of complicated coastlines in terms of classical geometry. An intriguing concept proposed by Mandelbrot (1967, 1977) is to use fractals to fill the void caused by the absence of suitable geometric representations.
    [Show full text]
  • Redalyc.Self-Similarity of Space Filling Curves
    Ingeniería y Competitividad ISSN: 0123-3033 [email protected] Universidad del Valle Colombia Cardona, Luis F.; Múnera, Luis E. Self-Similarity of Space Filling Curves Ingeniería y Competitividad, vol. 18, núm. 2, 2016, pp. 113-124 Universidad del Valle Cali, Colombia Available in: http://www.redalyc.org/articulo.oa?id=291346311010 How to cite Complete issue Scientific Information System More information about this article Network of Scientific Journals from Latin America, the Caribbean, Spain and Portugal Journal's homepage in redalyc.org Non-profit academic project, developed under the open access initiative Ingeniería y Competitividad, Volumen 18, No. 2, p. 113 - 124 (2016) COMPUTATIONAL SCIENCE AND ENGINEERING Self-Similarity of Space Filling Curves INGENIERÍA DE SISTEMAS Y COMPUTACIÓN Auto-similaridad de las Space Filling Curves Luis F. Cardona*, Luis E. Múnera** *Industrial Engineering, University of Louisville. KY, USA. ** ICT Department, School of Engineering, Department of Information and Telecommunication Technologies, Faculty of Engineering, Universidad Icesi. Cali, Colombia. [email protected]*, [email protected]** (Recibido: Noviembre 04 de 2015 – Aceptado: Abril 05 de 2016) Abstract We define exact self-similarity of Space Filling Curves on the plane. For that purpose, we adapt the general definition of exact self-similarity on sets, a typical property of fractals, to the specific characteristics of discrete approximations of Space Filling Curves. We also develop an algorithm to test exact self- similarity of discrete approximations of Space Filling Curves on the plane. In addition, we use our algorithm to determine exact self-similarity of discrete approximations of four of the most representative Space Filling Curves.
    [Show full text]
  • Fractals, Self-Similarity & Structures
    © Landesmuseum für Kärnten; download www.landesmuseum.ktn.gv.at/wulfenia; www.biologiezentrum.at Wulfenia 9 (2002): 1–7 Mitteilungen des Kärntner Botanikzentrums Klagenfurt Fractals, self-similarity & structures Dmitry D. Sokoloff Summary: We present a critical discussion of a quite new mathematical theory, namely fractal geometry, to isolate its possible applications to plant morphology and plant systematics. In particular, fractal geometry deals with sets with ill-defined numbers of elements. We believe that this concept could be useful to describe biodiversity in some groups that have a complicated taxonomical structure. Zusammenfassung: In dieser Arbeit präsentieren wir eine kritische Diskussion einer völlig neuen mathematischen Theorie, der fraktalen Geometrie, um mögliche Anwendungen in der Pflanzen- morphologie und Planzensystematik aufzuzeigen. Fraktale Geometrie behandelt insbesondere Reihen mit ungenügend definierten Anzahlen von Elementen. Wir meinen, dass dieses Konzept in einigen Gruppen mit komplizierter taxonomischer Struktur zur Beschreibung der Biodiversität verwendbar ist. Keywords: mathematical theory, fractal geometry, self-similarity, plant morphology, plant systematics Critical editions of Dean Swift’s Gulliver’s Travels (see e.g. SWIFT 1926) recognize a precise scale invariance with a factor 12 between the world of Lilliputians, our world and that one of Brobdingnag’s giants. Swift sarcastically followed the development of contemporary science and possibly knew that even in the previous century GALILEO (1953) noted that the physical laws are not scale invariant. In fact, the mass of a body is proportional to L3, where L is the size of the body, whilst its skeletal rigidity is proportional to L2. Correspondingly, giant’s skeleton would be 122=144 times less rigid than that of a Lilliputian and would be destroyed by its own weight if L were large enough (cf.
    [Show full text]
  • Fractal Initialization for High-Quality Mapping with Self-Organizing Maps
    Neural Comput & Applic DOI 10.1007/s00521-010-0413-5 ORIGINAL ARTICLE Fractal initialization for high-quality mapping with self-organizing maps Iren Valova • Derek Beaton • Alexandre Buer • Daniel MacLean Received: 15 July 2008 / Accepted: 4 June 2010 Ó Springer-Verlag London Limited 2010 Abstract Initialization of self-organizing maps is typi- 1.1 Biological foundations cally based on random vectors within the given input space. The implicit problem with random initialization is Progress in neurophysiology and the understanding of brain the overlap (entanglement) of connections between neu- mechanisms prompted an argument by Changeux [5], that rons. In this paper, we present a new method of initiali- man and his thought process can be reduced to the physics zation based on a set of self-similar curves known as and chemistry of the brain. One logical consequence is that Hilbert curves. Hilbert curves can be scaled in network size a replication of the functions of neurons in silicon would for the number of neurons based on a simple recursive allow for a replication of man’s intelligence. Artificial (fractal) technique, implicit in the properties of Hilbert neural networks (ANN) form a class of computation sys- curves. We have shown that when using Hilbert curve tems that were inspired by early simplified model of vector (HCV) initialization in both classical SOM algo- neurons. rithm and in a parallel-growing algorithm (ParaSOM), Neurons are the basic biological cells that make up the the neural network reaches better coverage and faster brain. They form highly interconnected communication organization. networks that are the seat of thought, memory, con- sciousness, and learning [4, 6, 15].
    [Show full text]
  • FRACTAL CURVES 1. Introduction “Hike Into a Forest and You Are Surrounded by Fractals. the In- Exhaustible Detail of the Livin
    FRACTAL CURVES CHELLE RITZENTHALER Abstract. Fractal curves are employed in many different disci- plines to describe anything from the growth of a tree to measuring the length of a coastline. We define a fractal curve, and as a con- sequence a rectifiable curve. We explore two well known fractals: the Koch Snowflake and the space-filling Peano Curve. Addition- ally we describe a modified version of the Snowflake that is not a fractal itself. 1. Introduction \Hike into a forest and you are surrounded by fractals. The in- exhaustible detail of the living world (with its worlds within worlds) provides inspiration for photographers, painters, and seekers of spiri- tual solace; the rugged whorls of bark, the recurring branching of trees, the erratic path of a rabbit bursting from the underfoot into the brush, and the fractal pattern in the cacophonous call of peepers on a spring night." Figure 1. The Koch Snowflake, a fractal curve, taken to the 3rd iteration. 1 2 CHELLE RITZENTHALER In his book \Fractals," John Briggs gives a wonderful introduction to fractals as they are found in nature. Figure 1 shows the first three iterations of the Koch Snowflake. When the number of iterations ap- proaches infinity this figure becomes a fractal curve. It is named for its creator Helge von Koch (1904) and the interior is also known as the Koch Island. This is just one of thousands of fractal curves studied by mathematicians today. This project explores curves in the context of the definition of a fractal. In Section 3 we define what is meant when a curve is fractal.
    [Show full text]
  • Turtlefractalsl2 Old
    Lecture 2: Fractals from Recursive Turtle Programs use not vain repetitions... Matthew 6: 7 1. Fractals Pictured in Figure 1 are four fractal curves. What makes these shapes different from most of the curves we encountered in the previous lecture is their amazing amount of fine detail. In fact, if we were to magnify a small region of a fractal curve, what we would typically see is the entire fractal in the large. In Lecture 1, we showed how to generate complex shapes like the rosette by applying iteration to repeat over and over again a simple sequence of turtle commands. Fractals, however, by their very nature cannot be generated simply by repeating even an arbitrarily complicated sequence of turtle commands. This observation is a consequence of the Looping Lemmas for Turtle Graphics. Sierpinski Triangle Fractal Swiss Flag Koch Snowflake C-Curve Figure 1: Four fractal curves. 2. The Looping Lemmas Two of the simplest, most basic turtle programs are the iterative procedures in Table 1 for generating polygons and spirals. The looping lemmas assert that all iterative turtle programs, no matter how many turtle commands appear inside the loop, generate shapes with the same general symmetries as these basic programs. (There is one caveat here, that the iterating index is not used inside the loop; otherwise any turtle program can be simulated by iteration.) POLY (Length, Angle) SPIRAL (Length, Angle, Scalefactor) Repeat Forever Repeat Forever FORWARD Length FORWARD Length TURN Angle TURN Angle RESIZE Scalefactor Table 1: Basic procedures for generating polygons and spirals via iteration. Circle Looping Lemma Any procedure that is a repetition of the same collection of FORWARD and TURN commands has the structure of POLY(Length, Angle), where Angle = Total Turtle Turning within the Loop Length = Distance from Turtle’s Initial Position to Turtle’s Final Position within the Loop That is, the two programs have the same boundedness, closing, and symmetry.
    [Show full text]
  • Introduction to Fractal Geometry: Definition, Concept, and Applications
    University of Northern Iowa UNI ScholarWorks Presidential Scholars Theses (1990 – 2006) Honors Program 1992 Introduction to fractal geometry: Definition, concept, and applications Mary Bond University of Northern Iowa Let us know how access to this document benefits ouy Copyright ©1992 - Mary Bond Follow this and additional works at: https://scholarworks.uni.edu/pst Part of the Geometry and Topology Commons Recommended Citation Bond, Mary, "Introduction to fractal geometry: Definition, concept, and applications" (1992). Presidential Scholars Theses (1990 – 2006). 42. https://scholarworks.uni.edu/pst/42 This Open Access Presidential Scholars Thesis is brought to you for free and open access by the Honors Program at UNI ScholarWorks. It has been accepted for inclusion in Presidential Scholars Theses (1990 – 2006) by an authorized administrator of UNI ScholarWorks. For more information, please contact [email protected]. INTRODUCTION TO FRACTAL GEOMETRY: DEFINITI0N7 CONCEPT 7 AND APP LI CA TIO NS MAY 1992 BY MARY BOND UNIVERSITY OF NORTHERN IOWA CEDAR F ALLS7 IOWA • . clouds are not spheres, mountains are not cones~ coastlines are not circles, and bark is not smooth, nor does lightning travel in a straight line, . • Benoit B. Mandelbrot For centuries, geometers have utilized Euclidean geometry to describe, measure, and study the world around them. The quote from Mandelbrot poses an interesting problem when one tries to apply Euclidean geometry to the natural world. In 1975, Mandelbrot coined the term ·tractal. • He had been studying several individual ·mathematical monsters.· At a young age, Mandelbrot had read famous papers by G. Julia and P . Fatou concerning some examples of these monsters. When Mandelbrot was a student at Polytechnique, Julia happened to be one of his teachers.
    [Show full text]
  • Classical Math Fractals in Postscript Fractal Geometry I
    Kees van der Laan VOORJAAR 2013 49 Classical Math Fractals in PostScript Fractal Geometry I Abstract Classical mathematical fractals in BASIC are explained and converted into mean-and-lean EPSF defs, of which the .eps pictures are delivered in .pdf format and cropped to the prescribed BoundingBox when processed by Acrobat Pro, to be included easily in pdf(La)TEX, Word, … documents. The EPSF fractals are transcriptions of the Turtle Graphics BASIC codes or pro- grammed anew, recursively, based on the production rules of oriented objects. The Linden- mayer production rules are enriched by PostScript concepts. Experience gained in converting a TEX script into WYSIWYG Word is communicated. Keywords Acrobat Pro, Adobe, art, attractor, backtracking, BASIC, Cantor Dust, C curve, dragon curve, EPSF, FIFO, fractal, fractal dimension, fractal geometry, Game of Life, Hilbert curve, IDE (In- tegrated development Environment), IFS (Iterated Function System), infinity, kronkel (twist), Lauwerier, Lévy, LIFO, Lindenmayer, minimal encapsulated PostScript, minimal plain TeX, Minkowski, Monte Carlo, Photoshop, production rule, PSlib, self-similarity, Sierpiński (island, carpet), Star fractals, TACP,TEXworks, Turtle Graphics, (adaptable) user space, von Koch (island), Word Contents - Introduction - Lévy (Properties, PostScript program, Run the program, Turtle Graphics) Cantor - Lindenmayer enriched by PostScript concepts for the Lévy fractal 0 - von Koch (Properties, PostScript def, Turtle Graphics, von Koch island) Cantor1 - Lindenmayer enriched by PostScript concepts for the von Koch fractal Cantor2 - Kronkel Cantor - Minkowski 3 - Dragon figures - Stars - Game of Life - Annotated References - Conclusions (TEX mark up, Conversion into Word) - Acknowledgements (IDE) - Appendix: Fractal Dimension - Appendix: Cantor Dust Peano curves: order 1, 2, 3 - Appendix: Hilbert Curve - Appendix: Sierpiński islands Introduction My late professor Hans Lauwerier published nice, inspiring booklets about fractals with programs in BASIC.
    [Show full text]
  • Efficient Neighbor-Finding on Space-Filling Curves
    Universitat¨ Stuttgart Efficient Neighbor-Finding on Space-Filling Curves Bachelor Thesis Author: David Holzm¨uller* Degree: B. Sc. Mathematik Examiner: Prof. Dr. Dominik G¨oddeke, IANS Supervisor: Prof. Dr. Miriam Mehl, IPVS October 18, 2017 arXiv:1710.06384v3 [cs.CG] 2 Nov 2019 *E-Mail: [email protected], where the ¨uin the last name has to be replaced by ue. Abstract Space-filling curves (SFC, also known as FASS-curves) are a useful tool in scientific computing and other areas of computer science to sequentialize multidimensional grids in a cache-efficient and parallelization-friendly way for storage in an array. Many algorithms, for example grid-based numerical PDE solvers, have to access all neighbor cells of each grid cell during a grid traversal. While the array indices of neighbors can be stored in a cell, they still have to be computed for initialization or when the grid is adaptively refined. A fast neighbor- finding algorithm can thus significantly improve the runtime of computations on multidimensional grids. In this thesis, we show how neighbors on many regular grids ordered by space-filling curves can be found in an average-case time complexity of (1). In 풪 general, this assumes that the local orientation (i.e. a variable of a describing grammar) of the SFC inside the grid cell is known in advance, which can be efficiently realized during traversals. Supported SFCs include Hilbert, Peano and Sierpinski curves in arbitrary dimensions. We assume that integer arithmetic operations can be performed in (1), i.e. independent of the size of the integer.
    [Show full text]