Next Article in Journal
Implementation of Constant Power Control for a Reamer Using a Fuzzy PID Algorithm
Previous Article in Journal
Volume-Increasing Inextensional Deformations of Platonic Polyhedra
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Mathematical Modeling and Recursive Algorithms for Constructing Complex Fractal Patterns

by
Abror Shavkatovich Buriboev
1,
Djamshid Sultanov
2,
Zulaykho Ibrohimova
3 and
Heung Seok Jeon
4,*
1
School of Computing, Department of AI-Software, Gachon University, Seongnam-si 13306, Republic of Korea
2
Department of Infocommunication Engineering, Tashkent University of Information Technologies, Tashkent 100084, Uzbekistan
3
Department of IT, Samarkand Branch of Tashkent University of Information Technologies, Samarkand 140100, Uzbekistan
4
Department of Computer Engineering, Konkuk University, Chungju 27478, Republic of Korea
*
Author to whom correspondence should be addressed.
Mathematics 2025, 13(4), 646; https://doi.org/10.3390/math13040646
Submission received: 16 January 2025 / Revised: 10 February 2025 / Accepted: 13 February 2025 / Published: 16 February 2025

Abstract

:
In this paper, we present mathematical geometric models and recursive algorithms to generate and design complex patterns using fractal structures. By applying analytical, iterative methods, iterative function systems (IFS), and L-systems to create geometric models of complicated fractals, we developed fractal construction models, visualization tools, and fractal measurement approaches. We introduced a novel recursive fractal modeling (RFM) method designed to generate intricate fractal patterns with enhanced control over symmetry, scaling, and self-similarity. The RFM method builds upon traditional fractal generation techniques but introduces adaptive recursion and symmetry-preserving transformations to produce fractals with applications in domains such as medical imaging, textile design, and digital art. Our approach differs from existing methods like Barnsley’s IFS and Jacquin’s fractal coding by offering faster convergence, higher precision, and increased flexibility in pattern customization. We used the RFM method to create a mathematical model of fractal objects that allowed for the viewing of polygonal, Koch curves, Cayley trees, Serpin curves, Cantor set, star shapes, circulars, intersecting circles, and tree-shaped fractals. Using the proposed models, the fractal dimensions of these shapes were found, which made it possible to create complex fractal patterns using a wide variety of complicated geometric shapes. Moreover, we created a software tool that automates the visualization of fractal structures. This tool may be used for a variety of applications, including the ornamentation of building items, interior and exterior design, and pattern construction in the textile industry.
MSC:
37A50; 51F99; 94A08; 11B83

1. Introduction

Fractals are self-similar structures that exhibit complex geometric properties at various scales. Unlike traditional Euclidean shapes, fractals possess fractional dimensions, making them invaluable for modeling natural and artificial patterns that exhibit irregularity. Since their introduction by Benoît Mandelbrot, fractals have been extensively studied for their ability to capture intricate structures found in nature, such as coastlines, river networks, cloud formations, tree branches, and biological tissues. These properties allow fractals to be used in scientific modeling, computational simulations, and artificial intelligence applications. Mathematically, fractals follow recursive generation rules, which means a simple initial structure is transformed through repeated operations. Various fractal generation techniques have been developed over time, including iterated function systems (IFS), Lindenmayer systems (L-systems), escape-time fractals, and random fractal processes. Despite their mathematical elegance and practical utility, traditional fractal generation techniques often lack flexibility in parameter adjustments, symmetry control, and computational efficiency, limiting their ability to model highly detailed structures in a computationally feasible manner [1,2].
Fractals exhibit three core mathematical properties: self-similarity, fractional dimensionality, and recursive generation. Self-similarity means that a fractal pattern appears identical at different scales. This property is frequently observed in natural formations, including blood vessels, ferns, and coastlines. Fractional dimensionality is another key characteristic of fractals, where their Hausdorff dimension is greater than their topological dimension. This property allows fractals to model objects that partially fill space, unlike classical Euclidean structures. Fractal structures can be generated through different iterative techniques. Generator iteration involves replacing specific parts of a shape with a modified version of itself, as seen in Koch curves and Sierpiński triangles. IFS-based fractals use affine transformations, such as scaling, rotation, and translation, to generate self-similar structures. Formula-based fractals, including the Mandelbrot set and Julia sets, employ complex number mappings to create visually intricate patterns. These iterative methods form the foundation of modern fractal generation algorithms, which are applied in pattern recognition, scientific simulations, and artistic design [3,4,5].
Fractal geometry has numerous applications across multiple fields:
  • medical imaging and biomedical analysis: used in cancer detection, heart rate variability analysis, and lung disease modeling through fractal dimension analysis;
  • scientific computing and engineering: applied in fluid dynamics, material analysis, and aerodynamics for complex shape modeling;
  • artificial intelligence and pattern recognition: utilized in data compression, facial recognition, and feature extraction in machine learning;
  • financial markets and econophysics: used to analyze stock market trends and financial time series;
  • digital art and textile design: used for generative artwork, fabric pattern creation, and digital media applications.
These diverse applications demonstrate the significance of fractals in both theoretical research and real-world problem solving.
Despite their wide applications, traditional fractal generation methods suffer from several limitations. Many classical approaches rely on predefined transformation rules, reducing their ability to adapt to custom design requirements. Recursive algorithms often require high computational power, leading to long processing times, which is especially problematic in real-time applications. Additionally, structural distortions occur when scaling complex fractal patterns, affecting their symmetry and aesthetic consistency. Several studies have attempted to address these challenges by introducing hybrid fractal generation methods, optimized recursive algorithms, and improved transformation techniques. However, these approaches still lack fine-grained control over fractal symmetry, adaptive recursion depth, and computational efficiency. There is a growing need for an enhanced fractal modeling technique that balances complexity, efficiency, and flexibility.
In this work, we introduce the recursive fractal modeling (RFM) method, a novel approach designed to address these limitations by providing enhanced control over fractal properties, including symmetry, scaling, and self-similarity. Unlike standard methods, the RFM method incorporates adaptive recursion and symmetry-preserving transformations, enabling the generation of intricate patterns with consistent structural properties. Our method also optimizes computational efficiency by minimizing redundant calculations through in-place recursion and intermediate result caching, achieving faster convergence with fewer iterations. This study builds upon foundational methods in fractal geometry, such as iterated function systems (IFS), contraction mappings, and recursive algorithms, which are essential for creating complex fractal patterns. These concepts closely align with the theories outlined in Fractals Everywhere by Michael Barnsley, a foundational work that has significantly influenced the study and application of fractal mathematics [6]. By incorporating these established methods, we ensure that our models adhere to widely recognized principles in fractal generation. Our key contributions include:
  • development of a novel recursive algorithm—the RFM method integrates adaptive recursion, allowing for flexible scaling and depth control while maintaining structural consistency;
  • implementation of symmetry-preserving transformations—ensuring that fractal patterns maintain a high degree of visual and geometric balance, making them suitable for high-precision applications;
  • optimization of computational efficiency—reducing processing time through in-place recursion and intermediate result caching, leading to faster convergence with fewer iterations;
  • application of the RFM method in real-world scenarios—demonstrating the effectiveness of our approach in fields such as digital art, and textile design.

Related Works

Fractal geometry has proven to be highly beneficial in fashion and textile engineering, particularly in automated pattern generation, fabric design, and decorative aesthetics. Several studies have investigated how recursive fractal algorithms can be applied to fashion textiles, woven patterns, and computerized fabric design.
Ge et al. [7] explored the aesthetic impact of fractal graphics in textile design, demonstrating their ability to create visually dynamic and mathematically structured clothing patterns. Their study revealed how fractal algorithms could generate unique textile prints, improving both design diversity and production automation. Long and Lu [8,9] extended this research by integrating fractal pattern generation into jacquard fabric manufacturing, analyzing how factors like color, texture, and weave structure influence the final textile product. Further applications of fractals in textiles involve L-systems, which allow for the generation of recursive geometric structures [10,11,12,13,14,15,16]. Kejun Cen et al. [17] utilized L-system-based fractal modeling to create woven textile designs with high levels of self-similarity, improving fabric symmetry and repeatability. Wang et al. [14] studied the use of J-set visualization techniques in designing fashion and decorative patterns, employing time-lapse fractal algorithms to generate complex motifs.
The computational and mathematical principles of fractal generation have been extensively explored in research. Negi et al. [18,19,20,21] presented multiple recursive algorithms for fractal construction, including the “Chasing Time Algorithm”, “Random Repetition Algorithm”, and “Deterministic Recursive Method”. These algorithms have been instrumental in improving the computational efficiency of fractal rendering, reducing the time complexity associated with recursive calculations. Edgar et al. [22] introduced set-theoretic approaches to fractal generation, offering a comprehensive method for visualizing stochastic, algebraic, and geometric fractals. Their study justified the application of fractal models in scientific simulations, topology, and spatial modeling. Gdaweic et al. [23] further extended this research by developing root-finding algorithms for generating highly detailed fractal structures, optimizing the accuracy and convergence speed of fractal-based systems.
Beyond their scientific applications, fractals have been extensively studied in the literature on computational creativity and theoretical physics. Liu et al. [24] explored how fractals contribute to nonlinear systems theory, emphasizing their significance in chaos modeling, wave dynamics, and complex systems simulations. Mohsen et al. [25] analyzed natural fractal formations, developing mathematical models that replicate organic patterns like leaf venation, snowflake structures, and coastline formations. In the field of generative art and procedural content creation, Ahammad et al. [26] introduced novel algorithms for Mandelbrot and Julia set visualization, influencing advancements in digital art, animation, and special effects. Gdaweic et al. [27,28] expanded on these ideas by incorporating multi-parameter recursive transformations to create color-mapped fractal images, showcasing how fractals enhance artistic and computational creativity.
The ability of fractals to model biological growth patterns, vascular networks, and tissue structures has made them highly relevant in medical imaging and biological research. Losa et al. [2] examined how fractal dimension analysis can be used to detect and classify tumors, revealing that malignant growth follows fractal-like expansion patterns. This finding has been instrumental in early cancer detection, automated image segmentation, and tumor classification. Chen et al. [3] applied fractal segmentation techniques to lung X-ray and MRI images, demonstrating that fractal-based approaches significantly improve disease detection and classification accuracy. Their research focused on quantifying the self-similarity of lung structures and optimizing medical image processing through fractal-based artificial intelligence models.
Fractal analysis has been widely adopted in engineering, fluid dynamics, and material science. Xie et al. [4] enhanced the Kozeny–Karman equation using fractal-based permeability models, improving conductivity calculations in woven textiles and porous materials. Their research demonstrated that fractal dimensions provide a more accurate representation of gas and fluid flow behavior in engineered materials. Xiong et al. [5] expanded on this concept by applying fractal-based fitting models to gas permeability analysis, showing that fractal dimensions can be used to predict airflow through structured materials with improved precision. Sheyko [29] further contributed to the engineering applications of fractals by formulating equations for geometric fractals, such as the Serpinski carpet, Menger sponge, and Star of David fractals, offering new approaches for architectural and materials engineering design.
This review underscores the widespread applicability of fractals in mathematics, computational science, and creative fields. Despite their extensive use, existing fractal generation methods lack scalability, structural consistency, and computational efficiency. The recursive fractal modeling (RFM) method presented in this study addresses these challenges, demonstrating higher adaptability, improved precision, and enhanced real-world applicability. Through rigorous experimental validation, the RFM method establishes itself as a novel and efficient approach to fractal modeling, expanding its potential use in scientific research, engineering, AI, and digital media.

2. Development of Mathematical and Geometric Models of Complex Fractal Structured Objects

Our approach leverages and extends iterative function systems (IFS), L-systems, and R-functions with tailored modifications that enhance their ability to create intricate, high-resolution fractal patterns suited for industrial applications. While these methods are commonly used for fractal generation, we introduced specific recursive adaptations that allow for the production of highly complex, culturally significant patterns, which are particularly useful in textile design, architectural decor, and digital art. The enhancements applied to IFS involve the integration of variable scaling factors and unique recursive transformations that control the arrangement and density of nested structures. This allows us to generate fractals with greater symmetry and precision in spatial distribution, which is critical for patterns requiring a high degree of visual regularity and complexity, such as traditional star, circular, and polygonal designs.
Similarly, our adaptation of the R-function method includes adjustments in the boundary conditions and recursion parameters, which enable us to model intersecting circular and tree-like fractals with an intricate level of detail. These adaptations result in geometric configurations that maintain structural integrity across scales, enabling the creation of fractal models that can seamlessly expand or contract for various design applications without loss of detail. In addition to these mathematical modifications, we developed a visualization algorithm specifically designed to automate the fractal generation process. This tool is optimized for high-resolution pattern creation, facilitating the efficient design of complex fractal structures for industrial applications, such as fabric printing, ceramic and porcelain decor, and architectural patterning. The software also supports customization for user-defined parameters, further enhancing its utility in pattern design and visualization.

2.1. Geometric Modeling Using Analytical Methods

The analytically developed mathematical model of fractals, consisting of regular polygons, is as follows:
First of all, the main geometric elements of a regular polygon are selected. That is, M(x0, y0) are the coordinates of the center of the circle drawn outside the regular polygon. R is the radius of the circle drawn outside the regular polygon, the increase (or decrease) of the L-radius. a is the starting angle; n is the number of sides. S is the number of recursions (or steps).
Step 1:
S = 1 x 1 = x 0 + R cos α + 360 n ;   y 1 = y 0 + R sin α + 360 n ; M x 1 , y 1 , M x 0 + R cos α + 360 n ,   y 0 + R sin α + 360 n , ω 1 = f 0 x 0 , y 0 f 1 x 1 , y 1
Step 2:
S = 2 x 1 = x 0 + R cos α + 360 n ; y 1 = y 0 + R sin α + 360 n ; F = M 1 x 1 , y 1 , F = M 1 x 0 + R cos α + 360 n , y 0 + R sin α + 360 n . x 2 = x 0 + R cos α + 720 n ; y 2 = y 0 + R sin α + 720 n ; F = M 1 x 0 + R cos α + 360 n , y 0 + R sin α + 360 n + M 2 x 0 + R cos α + 720 n , y 0 + R sin α + 720 n , ω 2 = ω 1 f 2 x 2 , y 2 .
At step s = i, the formula looks like this:
F R = j = 1 n i = 1 n M i j x 0 + R cos α + i × 360 n , y 0 + R sin α + i × 360 n , ω n = ω n 1 f n x n , y n . S = S 1 ; R = R L .
It is known that nonlinear dynamical systems have several steady states. After several iterations, the state of the dynamic system depends on its initial state. If the two-dimensional space is phased, it is possible to obtain color phase images of these systems by coloring the field of gravity points with different colors. Fractal images can be obtained by changing the color selection algorithm.
It is possible to create very complex non-trivial structures using mathematical primitive algorithms. The results obtained at different iteration steps are presented in Figure 1.
Analytically, when creating fractals consisting of circles, the main geometric elements are first selected. That is, M(x0, y0) are the coordinates of the center of the circle. R is the radius of the circle, with enlargement (or reduction) of the radius. L is the initial angle; n is the number of elements. S is the number of recursions (or steps).
Then, the general formula looks like this:
F R = j = 1 n i = 1 n M i j x 0 R l 1 l cos α + n 360 k π 180 , y 0 R l 1 l sin α + i 360 k π 180 R = R L .
As a result, we achieve circular fractals at different iteration steps, as shown in Figure 2.

2.2. Geometrical Modeling Using L-Systems and IFS Methods

Initially, L-systems were introduced in formal language learning and used in biological selection models. It was found that many self-similar fractals can be constructed using them, including the Koch snowflake and the Serpin carpet, while some other classical constructions, such as Peano curves (Peano, Hilbert, and Serpin napkin), also fit this scheme. And, of course, L-systems open the way to the construction of an infinite variety of new fractals.
For the graphical implementation of L-systems, the term turtle graphics (Turtle) is used. In this case, the point (Turtle) moves across the screen with special steps, as a rule, looking for its own track, and it can also move without being drawn. We have three parameters at our disposal, which are the coordinates of the turtle and the angle of the direction that it can turn [30].
To obtain the result of the L-system, we introduce the following notations:
F—draw a trace and move one step forward.
b—take a step forward without leaving a trace.
[—open field for entering commands and variables.
]—close the field for entering commands and variables.
+—increase the angle α by θ (clockwise).
−—reduce the angle α by the amount θ (counterclockwise).
The L-system, corresponding to the Koch snowflake, is defined as the following:
The starting word generates rules in parallel to the axiom:
axiom = W0 = W0 (F, b, +, −, [ , ]).
The process is then repeated to obtain a sequence of words W0, W1, W2, … with a complex internal structure of characters. For example, by using the axiom F and the rule F+FFF+F, we can generate the sequence W0, W1, W2, …. (See Figure 3).
The words W0, W1, and W2 are shown as a turtle footprint (where θ = π/2, the length scale in all images is different).
One of the many ways to describe affine transformations for repeated function systems (IFS) is as follows:
x = x · r · c o s θ + y · s · s i n π + h ; y = x · r · s i n θ + y · s · c o s π + k .
There is a way to obtain the resulting shape after an infinite number of iterations.
x n + 1 f x n , y n ; y n + 1 f x n , y n . x n + 1 = a x n + b y n + c , y n + 1 = d x n + e y n + f .
For any given image, there are four different sets of values for (a, b, c, d, e, f) in the interval [−1, 1]. The following relations must be fulfilled between these coefficients:
a 2 + d 2 < 1 , b 2 + e 2 < 1 , a 2 + b 2 + d 2 + e 2 < 1 + a e d b 2 .
The geometric model for constructing pentagonal fractals using the IFS method is as follows. Five equivalent equilateral triangles are formed by connecting the center of the pentagon to each vertex with straight lines. Each of the central angles is 360°/5 = 72°. If the size of the remaining two angles in the equilateral triangles is A, then the expression A + A + 72 = 180 is reasonable, and it follows that the size of each external angle is also equal to 72° (see Figure 4 and Figure 5).
Consider the original pentagon P(0) with bottom vertices at (0, 0) and (1, 0). The Figure 5 shows two of the scaled pentagons of P(1) along the x-axis. These pentagons form an equilateral triangle with a base angle of 72°. So, the length of the base is equal to 2 r cos ( 72 ° ) . Using the fact that the total length of the base of pentagons and triangles is the same as the length of the base P(0), we perform the following calculations:
2 r + 2 r cos 72 ° = 1 , r = 1 2 + 2 cos 72 ° = 1 2 1 + 5 1 4 = 2 3 + 5
The translation of the second pentagon is shifted to the right by 1 − r = 0.618.
Vectors are used to translate each of the pentagons to a different scale. For example, in the Figure 5, the three vectors drawn in black end up at the third lower-left corner of the pentagon, showing how they are translated. Using the angles in Figure 6 and Figure 7, this expression is derived:
( r , 0 ) + ( r cos 72 ° ,   r sin 72 ° ) + ( r cos 36 ° ,   r sin 36 ° ) = ( 0.809 , 0.588 )
We continue the process for the remaining two pentagon broadcasts:
( r cos 72 ° ,   r sin 72 ° ) + ( r cos 36 ° ,   r sin 36 ° ) + ( r cos 72 ° ,   r sin 72 ° ) = ( 0.309 ,   0.951 ) ( r cos 72 ° ,   r sin 72 ° ) + ( r cos 36 ° ,   r sin 36 ° ) + ( r ,   0 ) = ( 0.191 ,   0.588 )
To make this an iterative system, the image starts from the original polygon and is scaled by a factor of r = 0.382. In the next step, the six copies are rotated to fit inside the original polygon. The middle pentagon must first be rotated 180°. Now, the same process is repeated for each of the six polygons to attain the second iteration and continue indefinitely. The recursive functions for this process are generated as follows:
F 1 = f 1 ( F 0 ) f 2 ( F 0 ) f 3 ( F 0 ) f 4 ( F 0 ) f 5 ( F 0 ) f 6 ( F 0 ) , F 2 = f 1 ( F 1 ) f 2 ( F 1 ) f 3 ( F 1 ) f 4 ( F 1 ) f 5 ( F 1 ) f 6 ( F 1 ) , F n = f 1 ( F n 1 ) f 2 ( F n 1 ) f 3 ( F n 1 ) f 4 ( F n 1 ) f 5 ( F n 1 ) f 6 ( F n 1 ) .
To generate these polygonal fractals using the IFS method, six functions are constructed using the scale factor:
r = 3 5 2 = 0.381966 . f 1 ( x ) = 0.382 0 0 0.382 x , f 2 ( x ) = 0.382 0 0 0.382 x + 0.618 0 , f 3 ( x ) = 0.382 0 0 0.382 x + 0.809 0.588 , f 4 ( x ) = 0.382 0 0 0.382 x + 0.309 0.951 , f 5 ( x ) = 0.382 0 0 0.382 x + 0.191 0.588 , f 6 ( x ) = 0.382 0 0 0.382 x + 0.691 0.951 .
The dimension of the fractal generated in step 4 of the iteration, consisting of six non-overlapping pentagons, is calculated as follows:
k = 1 6 r d = 1 d = log 1 6 log ( r ) = log ( 6 ) log 2 3 5 = 1.86172 .
For the fractal image obtained at step i = 4 of Figure 8, the fractal dimension is d = 1.86172.

2.3. Mathematical Modeling Using RFM Methods

The RFM method of V. L. Rvachev can be used to write analytical equations of geometric shapes in the field of fractals. This method is a numeric function with a real variable whose pointers are completely defined by the pointers of the arguments in the corresponding parts of the intervals of the axis. The main concepts of the RFM method are that the signs of the function in each interval are coordinated with the signs of the arguments. This method is effective for the mathematical determination of fractal shapes and the description of their geometry.
If there exists such a following logical function F and its arguments sign(z) = F(sign(x), sign(y)), the numerical function z = z(x, y) is called an R-function.
Each RFM corresponds to a single basis-logic function. The set of R-functions is closed in terms of the overlapping of elements. If the set of all overlapping elements of N has a non-empty intersection with each branch of the set of R-functions, then the system of R-functions is considered sufficiently complete for N. This concept is important in fractal geometry and is used to determine analytical equations of geometric shapes. The system of R-functions is compatible with each part of a given set, ensuring the quality and accuracy of its performance. The most widely used R-function complete system (−1 < α ≤ 1) at Rα is following:
R a = x α y 1 1 + α x + y x 2 + y 2 2 α x y , x α y 1 1 + α x + y + x 2 + y 2 2 α x y , x ̄ x .
At α = 0, we have a system R0, and its appearance is as follows:
R 0 = x 0 y x + y x 2 + y 2 , x 0 y x + y + x 2 + y 2 , x ̄ x .
At α = 1, we have a system R1, and its appearance is as follows:
R 1 = x 1 y 1 2 x + y x y , x 1 y 1 2 x + y + x y , x ̄ x .
In the last case of R-functions, the conjunctions and disjunctions correspond to:
x y m i n ( x , y ) ,   x y m i n ( x , y )
Using the R-function, it is possible to construct an implicit form of boundary equations of objects of complex structure based on known equations of simple spheres.
R-functions are used in solving a wide range of mathematical and physics problems, multidimensional digital processing of signals and images, computer graphics, and other fields. Methods for constructing field geometry equations provide a solid technological foundation for automating the process of organizing these equations. In fact, only the process of constructing predicate equations needs to be automated. The transition from these equations to simple elementary equations of field geometry is carried out by replacing the symbols of the logical function with the corresponding symbols of the R-function. However, the symbols of the field are not equal to their corresponding left parts.
So, the input data for the algorithm are following:
  • appearance of the standard primitives used: straight line, circle, ellipse, rectangle, triangle, convex polygon, circle, regular polygon, etc.;
  • geometric parameters that determine the size and position of standard primitives.
While the dimensions of classic fractals, such as Koch curves, Cayley trees, and Cantor sets, are widely known, we employed the R-function method to derive these dimensions systematically. This method allows us to compute fractal dimensions by integrating geometric modeling with analytical logical functions. Unlike traditional approaches, the R-function framework provides a robust mechanism to model and validate the self-similar properties of fractals iteratively. For instance, the fractal dimension of the Cantor set was calculated based on its recursive construction, with a detailed derivation presented in Equation (12). Similarly, the derivation for the Cayley tree utilized the iterative scaling and branching properties inherent to its structure. These derivations demonstrate the alignment of our methodology with existing formulas while showcasing the adaptability of the R-function approach to various fractal types.
To illustrate the step-by-step process of fractal image generation, we provide the pseudo-code for the recursive fractal modeling (RFM) method. Algorithm 1 iteratively applies transformations to construct complex fractal structures while maintaining symmetry, scaling adaptability, and computational efficiency.
Algorithm 1. Pseudo-code for Fractal Image Generation
Function GenerateFractal(iteration, max_depth, transformation_matrix):
  # Base case: Stop recursion if max depth is reached
    return
  # Apply transformations (scaling, rotation, symmetry preservation)
  transformed_points = ApplyTransformation(transformation_matrix)
  # Symmetry-preserving transformations
  if MaintainSymmetry:
    transformed_points = EnforceSymmetry(transformed_points)
  # Selective refinement (increase recursion depth for high-detail regions)
  if NeedsRefinement(transformed_points):
    new_depth = AdjustRecursionDepth(iteration)
  else:
    new_depth = iteration + 1
  # Recursive call to generate the next fractal iteration
  for point_set in transformed_points:
    GenerateFractal(new_depth, max_depth, transformation_matrix)
  # Render the fractal at the current stage
  DrawFractal(transformed_points)
# Main function to initialize fractal generation
Function Main():
  max_depth = SetMaxRecursionDepth()
  transformation_matrix = InitializeTransformations()
  GenerateFractal(0, max_depth, transformation_matrix)
For fractal antennas based on a Cayley tree, a fractal antenna represents a series of pieces of conductors of different lengths. At each new iteration, pieces of a certain length are added to the antenna. That is, in each odd iteration, the length remains the same, and in even iterations, the length is halved (see Figure 9). The current distribution in the sixth-order Cayley tree antenna was studied, and new parts of the abbreviation play a role in formalizing the antenna parameters.
Now, based on the RFM method, we will construct the Cayley tree equation.
Step 1.
i = 1 ,   a 1 = l / 2 ,   b 1 = l / 2 . f o e ( x , y ) = a 11 2 ( x + a 1 ) 2 2 a 11 0 , ( a 11 a   small   number ) , f o p = a 11 2 ( a 1 x ) 2 2 a 11 0 , φ 0 ( x , y ) = b 1 2 y 2 2 b 1 0 , f 1 = f o e ( x , y ) φ 0 ( x , y ) 0 , f 2 ( x , y ) = f o p ( x , y ) 0 φ 0 ( x , y ) 0 , ω 01 ( x , y ) = f 1 ( x , y ) 0 f 2 ( x , y ) 0 , f 3 x , y = a 1 2 x 2 2 a 1 0 , f 4 ( x , y ) = b 11 2 y 2 2 b 11 0 .
(b11a sufficiently small number),
ω 02 ( x , y ) = f 3 ( x , y ) 0 f 4 ( x , y ) 0 , f 1 a y x , y = b 11 2 ( y + b 1 ) 2 2 b 11 0 , f 1 b y x , y = b 11 2 ( b y ) 2 2 b 11 0 ,   c = b 1 / 2 , φ 1 l x x , y = c 2 ( x + a 1 ) 2 2 c 0 , φ 1 p x = c 2 ( x a 1 ) 2 2 c 0 , ω 1 ( x , y ) = ω 01 ( x , y ) 0 ω 02 ( x , y ) 0 ω 03 ( x , y ) 0 .
Step 2.
i = 2 ,   a 1 = a 1 / 2 ,   b 1 = b 1 / 2 . ω 2 ( x , y ) = ω 1 ( x a 1 , y b 1 ) 0 ω 1 ( x + a 1 , y b 1 ) 0 0 ω 1 ( x + a 1 , y + b 1 ) 0 ω 1 ( x a 1 , y + b 1 ) 0 ω 1 ( x , y ) 0 .
Now, we construct an iterative process, and as a result, we have the following:
i = k ,     a 1 = a 1 / 2 ,     b 1 = b 1 / 2 . ω k x , y = ω k 1 x a 1 , y b 1 0 ω k 1 x + a 1 , y b 1 0 ω k 1 x + a 1 , y + b 1 0 ω k 1 x a 1 , y + b 1 0 ω k 1 x , y 0 , k = 3 , 4 , 5 ,
Calculation results at different values of k are presented in Figure 9.
For exclusive fractal circles, in the study of fractal circle structures, the properties of symmetry and similarity were considered. In the first iteration, a circle with a radius of 11 mm, a thickness of 0.4 mm along the Ox axis, and a secondary radius of 0.2 mm was considered as the main element of the fractal antenna structure in A1. The algorithm for constructing the structure of the fractal abbreviation represented in Figure 10 is expressed as follows.
In iteration 0, seven circles that are three times smaller than the given circle are placed in the main circle. Other elements (width and thickness of the circle) stay unchanged. The center of the six small circles is placed at a distance R*2/3 from the tip of the hexagon. The center of the seventh circle coincides with the center of the main antenna. We call this construction the first step of the iterative algorithm and denote it by the abbreviator A1.
The algorithm used for model A1 is used to construct exclusive circles A2 in the second iteration (Figure 10).
For each circle, six smaller circles are placed, each with a radius half of the previous one, with centers located at R*2/3 from the center of the initial circle, positioned at the vertices of a hexagon. A seventh circle is centered within the main circle. It forms the fractal antenna model shown in Figure 11. The coaxial lines have a diameter of 0.5 mm, an antenna thickness of 0.4 mm, and a ring width of 0.2 mm. The outer circle radiuses are R = 11 mm, R1 = R/3, and R2 = R/9.
We will construct the equation for the exclusive antenna A1:
Step 0.
ω 00 = R 0 2 x 2 y 2 2 R .
Step 1.
r 1 = 1 3 R 0 ,               a 1 = 2 3 R 0 ,               d x = 3 3 R 0 ,               d y = 1 3 R 0 , ω 10 = r 1 2 x 2 y 2 2 r 1 ,                 ω 11 = r 1 2 x 2 ( y a 1 ) 2 2 r 1 , ω 12 = r 1 2 x 2 ( y + a 1 ) 2 2 r 1 ,                   ω 14 = r 1 2 ( x + d x ) 2 ( y + d y ) 2 2 r 1 , ω 15 = r 1 2 ( x d x ) 2 ( y + d y ) 2 2 r 1 ,   ω 16 = r 1 2 ( x d x ) 2 ( y d y ) 2 2 r 1 , ω = ( ω 00 0 ( ω 10 0 ω 11 0 ω 12 0 ω 13 0 ω 14 0 ω 15 0 ω 16 ) ) .
This equation gives the equation of the exclusive antenna A1.
dr is a small number—the thickness of the circle.
ω 0 = R 0 2 x 2 y 2 2 R 0 x 2 + y 2 ( R d r ) 2 2 R 0 .
Step 1:
r 1 = 1 3 R 0 , a 1 = 2 3 R 0 , d x = 3 3 R 0 , d y = 1 3 R 0 . ω 10 = ω 0 ( r 1 , x , y ) , ω 11 = ω 0 ( r 1 , x , y a 1 ) , ω 12 = ω 0 ( r 1 , x , y + a 1 ) , ω 13 = ω 0 r 1 , x + d x , y d y , ω 14 = ω 0 ( r 1 , x + d x , y + d y ) , ω 15 = ω 0 ( r 1 , x d x , y + d y ) , ω 16 = ω 0 ( r 1 , x d x , y d y ) , ω 1 = ( ω 00 0 ( ω 10 0 ω 11 0 ω 12 0 ω 13 0 ω 14 0 ω 15 0 ω 16 ) ) .
We determine the i-step from all of the previous ones [23]:
r i = 1 3 r i 1 , a i = 2 3 r i 1 , d x = 3 3 r i 1 , d y = 1 3 r i 1 . ω i 0 = ω i 1 ( r i , x , y ) , ω i 1 = ω i 1 r i , x , y a i , ω i 2 = ω i 1 ( r i , x , y + a i ) , ω i 3 = ω i 1 ( r i , x + d x , y d y ) , ω i 4 = ω i 1 ( r i , x + d x , y + d y ) , ω i 5 = ω i 1 ( r i , x d x , y + d y ) , ω i 6 = ω i 1 ( r i , x d x , y d y ) , ω = ( ω 00 0 ( ω i 0 0 ω i 1 0 ω i 2 0 ω i 3 0 ω i 4 0 ω i 5 0 ω i 6 ) ) .
It can be noted that we obtain the model of antenna A2 at i = 2, i = 0, 1, 2, 3, 4. The results of the calculations are presented in Figure 11.
For the Serpin curve, first, we construct the equation of the base:
x 1 = x cos ( α 1 ) + y sin ( α 1 ) ,   y 1 = x sin ( α 1 ) + y cos ( α 1 ) , x 2 = x cos ( α 2 ) + y sin ( α 2 ) ,                                   y 2 = x sin ( α 2 ) + y cos ( α 2 ) , f 1 x , y = a 2 x 1 2 0 a 2 y 1 2 0 , f 2 x , y = a 2 x 2 2 0 a 2 y 2 2 0 , f 3 x , y = f 2 x , y , ω 1 ( x , y ) = f 1 ( x , y ) 0 f 2 ( x , y ) 0 f 3 ( x , y ) .
Here, we used the formulas for turning the axes. We construct an iterative process, and as a result, we have the following:
ω n x , y = ω n 1 x , y 0 ω n 1 x 2 a , y 2 a 0 ω n 1 x + 2 a , y 2 a 0 ω n 1 x + 2 a , y + 2 a 0 ω n 1 x 2 a , y + 2 a , n = 2 ,   3 ,   4 ,   5 ,
We used a 1 = 3 8 a , b 1 = 7 4 a in the calculation. The results of calculations in α1 = 0 and α2 = π/4 and the different values are presented in Figure 12.
For the Koch curve, the Koch curve is constructed by the following procedure. The center piece from the initial span is removed and replaced with an equilateral triangle. Then, the same procedure is applied to all the resulting triangles.
Let the half-plane y ≤ 0 be the initial domain. Then, its boundary equation is ω0 = −y = 0. The algorithm for finding the equation is (k ≥ 1); k-ordered prefractals based on the RFM method consist of two stages:
1. R-disjunction of the function ω(k−1) with the reflection of itself with respect to the straight line;
y = x 3 + 3 k 1 3 ; ϖ k ( x , y ) = ω k 1 ( x , y ) 0 ω k 1 x y 3 + 3 k / 2 , x 3 + y + 3 k 1 3 / 2 .
2. R-conjugation of the function ϖk with its reflection with respect to the line.
x = 3 k / 2 : ω k ( x , y ) = ϖ k ( x , y ) 0 ϖ k ( 3 k x , y ) .
A Koch curve constructed on the sides of equilateral triangles gives a geometric object called a Koch snowflake. The boundary equations of the Koch snowflake are obtained by applying the three operations’ R-conjunction, which are 60° degrees from each other:
W k ( x , y ) = ω k ( y + 3 k / 2 , x 3 k 1 3 / 2 ) 0 0 [ ω k y x 3 + 3 k / 2 , x y 3 3 k 1 3 / 2 ] 0 ω k y x 3 + 3 k / 2 , x + y 3 3 k 1 3 / 2 .
For the Cantor set, the Cantor set is a fundamental example in fractal geometry with significant properties. It is constructed as follows.
For the starting set, begin with the interval [0, 1].
The first step is to remove the middle third of this interval, which is the open interval (1/3, 2/3). The remaining set is two intervals: [0, 1/3] and [2/3, 1].
For the subsequent steps, in each following step, remove the middle third of each remaining interval from the previous step, excluding the endpoints. By iteratively removing the middle third from each interval, a Cantor set is formed, which has a dimension of approximately d ≈ 0.9542.
A Cantor set of dimension d = 1 can be constructed by moving from a straight line to a plane. We assume that the initial set is a unit square, and the vertices are (0, 0), (1, 0), (1, 1), and (0, 1). At each step, we create squares that are four times smaller than the previous square. The limiting set of this construction is a self-similar set with N = 4 and a similarity coefficient r = 1/4. Its size is equal to d = log ( 4 ) / log ( 4 ) = 1 .
As can be seen from the constructions, the resulting set is a Cantor set, which is compact, perfect, and completely continuous. We construct a quadratic equation for the equation of this fractal using V. L. Rvachev’s RFM method.
Based on the condition of the Cantor set of size d = 1, we build an iterative process. As a result, we attain the following, where n = 1, 2, 3, …:
ω n ( a , x , y ) = ω n 1 a 4 , x 3 a 4 , y a 4 0 ω n 1 a 4 , x a 4 , y 3 a 4 0 ω n 1 a 4 , x + 3 a 4 , y + a 4 0 ω n 1 ( a 4 , x + a 4 , y + 3 a 4 ) 0 x a 2 x 2 = 0 0 a 2 y 2 0 0 y a 2 y 2 = 0 0 a 2 x 2 0 ,
The results obtained when d = 1 and the different values of n are presented in Figure 13.
For the fractals of circles, currently, there are several methods of constructing the fractal equation: the L-systems method, the iterative function systems method, etc. Different from them, the design environment of the R-function algebraic logic method makes it possible to construct the fractal equation. A visual representation of fractals can then be constructed from these equations. Thus, the construction of equations of fractals consisting of circles is based on the RFM method considered below. The equation of the outer circle is defined as:
ω 00 = ω 00 ( R , x , y ) = ( R 2 x 2 y 2 0 ) ,
The equation of a circle connected to a circle takes the following form:
ω 0 = ω 00 0 ( x 2 + y 2 ( R a ) 2 0 ) ,
where a is the thickness of the circle (thickness of the circle is 2a), R is the radius of the outer circle, α = 2π/k; and k is the number of inner circles after each iteration k = 2, 3, 4, …
Using iteration here, we attain the following:
ω n R , x , y = ω 0 R , x , y 0 ω n 1 R 3 , x , y 0 0 ω n 1 R 3 , x 2 R 3 cos 0 , y 2 R 3 sin 0 0 ω n 1 R 3 , x 2 R 3 cos α , y 2 R 3 sin α 0 ω n 1 ( R 3 , x 2 R 3 cos 2 α , y 2 R 3 sin 2 α ) 0 . . 0 ω n 1 R 3 , x 2 R 3 cos k 1 α , y 2 R 3 sin k 1 α 0 ;         n = 1   , 2   , 3  
It can be distinguished that, if in k < 6, the inner circles do not touch each other, in k = 6 the inner circles do, and in k > 6, the inner circles intersect, as presented in Figure 14.
For intersecting circular fractals, let us look at the case where there are two circles inside of a big circle. In turn, two more circles are formed in the inner circles, and so on. We construct the same fractal equation. In this case, the equation of the fractal in step 1 takes the following form:
ω ( R , x , y ) = ( R 2 x 2 y 2 0 ) 0 ( x 2 + y 2 ( R a ) 2 0 ) .
where α is the thickness of the circle (the thickness of the circle is equal to 2α), and R is the radius of the outer circle. After applying the iteration procedure, we generate the following:
ω n R , x , y = ω 0 R , x , y 0 ω n 1 R 2 , x , y R 2 0 ω n 1 R 2 , x , y + R 2 0 ;     n = 1 ,   2 ,   3 ,  
The calculation results for different values of n are presented in Figure 15.
Now, we consider the case where the inner circles intersect and decrease. For this purpose, we introduce the decreasing coefficient l. We determine the equation of intersecting circles, as in the first problem.
ω 0 ( R , x , y ) = ( R 2 x 2 y 2 0 ) 0 ( x 2 + y 2 ( R a ) 2 0 )
where a is the thickness of the circle (the thickness of the circle is equal to 2a).
a = 2 π k
K is the number of inner loops after each iteration k = 2, 3, 4, …, and l is the reduction coefficient of inner circles after each iteration, l = 2, 3, 4, …; R is the radius of the outer circle. Using the iteration procedure, we attain the following [1]:
ω n R , x , y = ω 0 R , x , y 0 ω n 1 R l , x , y 0 ω n 1 R l , x l 1 R l cos 0 , y l 1 R l sin 0 0 ω n 1 ( R l , x l 1 R l cos α , y l 1 R l sin α ) 0 ω n 1 ( R l , x l 1 R l cos 2 α , y l 1 R l sin 2 α ) 0 ω n 1 R l , x l 1 R l cos k 1 α , y l 1 R l sin k 1 α 0 ;                   n = 1 ,   2 ,   3 ,  
The results for different values of n, k, l and the iterative fractals are obtained at k = 8, l = 2 and n = 1 , 2 , 3 ¯ . It is represented in Figure 16.
For fractals in a tree view, known geometric fractals are formalized starting from an initiator shape using a basic image. Determinized fractals are expressed in a recursive process. In deterministic fractals, self-similarity appears in all orders. Such fractals are iterated 4–6 times to obtain clear images.
In this section, we will construct a tree-like fractal equation based on the R-functions method. Let us look at constructing a tree equation from the circles. Let the ends of the interval be the points (x1, y1) and (x2, y2). We construct the equation of a straight line freely passing through the given points (x1, y1) and (x2, y2) [1].
f x 1 , y 1 , x 2 , y 2 , x , y = 1 2 ( ( x 2 x 1 cos arctan y 2 y 1 x 2 x 1 + y 2 y 1 sin arctan y 2 y 1 x 2 x 1 2 x x 1 cos arctan y 2 y 1 x 2 x 1 + y y 1 sin arctan y 2 y 1 x 2 x 1 1 2 x 2 x 1 cos arctan y 2 y 1 x 2 x 1 + y 2 y 1 sin arctan y 2 y 1 x 2 x 1 2 0 ( a 2 x x 1 sin arctan y 2 y 1 x 2 x 1 + y y 1 cos arctan y 2 y 1 x 2 x 1 2 0
where a is the height of the gap (the height of the gap is equal to 2a). If k is even, then φ 0 = 0 . Otherwise, φ 0 = α 2 .
At n = 1 we have the following equation: α = 2π/k
ω 1 ( x , y ) = f ( 0 , 0 , R cos ( φ 0 + 0 ) , R sin ( φ 0 + 0 ) , x , y ) f ( 0 , 0 , R cos ( φ 0 + α ) , R sin ( φ 0 + α ) , x , y ) 0 0 f ( 0 , 0 , R cos ( φ 0 + 2 α ) , R sin ( φ 0 + 2 α ) , x , y ) 0 0 f ( 0 , 0 , R cos ( φ 0 + ( k 1 ) α ) , R sin ( φ 0 + ( k 1 ) α ) , x , y )
At n = 2, 3, 4…
α = 2 π k n 1 ;   k 1 = k 2 ;   R n 1 = 2 R 1 1 2 n 1 ;   R n = 2 R ( 1 1 2 n ) ;
Rn is the radius of the circular boundaries in the n-th iteration (R1 = R). If k is even, then k2 = [k/2]. Otherwise, k2 = [k/2] − 1. [x] is an integer part of the number x. Using the iteration procedure, we attain the following:
ω n x 1 ( x , y ) = f ( R n 1 cos ( φ 0 + α ) , R n 1 sin ( φ 0 + α ) , R n cos φ 0 + α + φ 0 + k 1 α k , R n sin φ 0 + α + φ 0 + k 1 α k , x , y ) 0   f R n 1 cos ( φ 0 + α , R n 1 sin ( φ 0 + α ) , R n cos φ 0 + α + φ 0 + k 1 + 1 α k , R n sin ( φ 0 + α + φ 0 + k 1 + 1 α k ) , x , y ) 0 f R n 1 cos φ 0 + α , R n 1 sin φ 0 + α , R n cos ( φ 0 + α + ( φ 0 + ( k 1 + 2 ) α ) k ) , R n sin ( φ 0 + α + ( φ 0 + ( k 1 + 2 ) α ) k ) , x , y ) 0 0 f ( R n 1 cos φ 0 + α , R n 1 sin φ 0 + α , R n cos ( φ 0 + α + φ 0 + k 2 α k ) , R n sin ( φ 0 + α + ( φ 0 + k 2 α ) k ) , x , y )
ω n x 2 ( x , y ) = f ( R n 1 cos ( φ 0 + 2 α ) , R n 1 sin ( φ 0 + 2 α ) , R n cos ( φ 0 + 2 α + φ 0 + k 1 α k ) , R n sin ( φ 0 + 2 α + φ 0 + k 1 α k ) , x , y ) 0 f ( R n 1 cos ( φ 0 + 2 α ) , R n 1 sin ( φ 0 + 2 α ) , R n cos ( φ 0 + 2 α + φ 0 + k 1 + 1 α k ) , R n sin ( φ 0 + 2 α + φ 0 + k 1 + 1 α k ) , x , y ) 0 f   ( R n 1 cos φ 0 + 2 α , R n 1 sin φ 0 + 2 α , R n cos ( φ 0 + 2 α + φ 0 + k 1 + 2 α k ) , R n sin φ 0 + 2 α + φ 0 + k 1 + 2 α k , x , y ) 0 0   f ( R n 1 cos ( φ 0 + 2 α ) , R n 1 sin ( φ 0 + 2 α ) , R n cos ( φ 0 + 2 α + φ 0 + k 2 α k ) , R n sin ( φ 0 + 2 α + φ 0 + k 2 α k ) , x , y )
For 1 ≤ ikn−1, we have:
ω n x i ( x , y ) = f ( R n 1 cos φ 0 + i α , R n 1 sin φ 0 + i α , R n cos ( φ 0 + i α + φ 0 + k 1 α k ) , R n sin φ 0 + i α + φ 0 + k 1 α k , x , y ) 0   f ( R n 1 cos φ 0 + i α , R n 1 sin ( φ 0 + i α ) R n cos φ 0 + i α + φ 0 + k 1 + 1 α k , R n sin ( φ 0 + i α + φ 0 + k 1 + 1 α k ) , x , y ) 0 f ( R n 1 cos φ 0 + i α , R n 1 sin φ 0 + i α R n cos ( φ 0 + i α + φ 0 + k 1 + 2 α k ) , R n sin φ 0 + i α + φ 0 + k 1 + 2 α k , x , y ) 0 0 f ( R n 1 cos ( φ 0 + i α ) , R n 1 sin φ 0 + i α R n cos φ 0 + i α + φ 0 + k 2 α k , R n sin φ 0 + i α + φ 0 + k 2 α k , x , y ) ω n x , y = ω n 1 x , y 0 ω n x 1 x , y 0 ω n x 2 x , y 0 0 ω n x i x , y 0 0 0 ω n x k n 1 x , y .
In the previous formulas, the values were k = 2, 3, 4, 5, ….
For all lines, an outer circle with a radius Rn can be drawn (n-order iteration). The calculation results for the different values of n and k are presented in Figure 17.
For a Pythagorean tree, Pythagoras, proving his theorem, constructed a figure in which squares are placed on the sides of right triangles. If this process is continued, a Pythagorean tree is formed. We construct the equation of the tree using quadratic equations, i.e.,
ω 0 ( a , x , y ) = ( ( a 2 x 2 0 ) 0 ( ( b 2 ( y a ) 2 0 ) 0 ( b 2 ( y + a ) 2 0 ) ) ) 0 ( ( a 2 y 2 0 ) 0 ( ( b 2 ( x a ) 2 0 ) 0 ( b 2 ( x + a ) 2 0 ) ) ) 0
where ω 0 ( a , x , y ) is a square with side 2a and thickness 2b. Using the recursion procedure, we create the following:
ω n ( a , x , y ) = ω 0 ( a , x , y ) 0 ω n 1 ( a cos ( α ) , ( x + a a 2 cos ( α ) sin ( π 4 α ) ) cos ( α ) + ( y a a 2 cos ( α ) cos ( π 4 α ) ) sin ( α ) , ( x + a a 2 cos ( α ) sin ( π 4 α ) ) sin ( α ) + ( y a a 2 cos ( α ) cos ( π 4 α ) ) cos ( α ) ) 0 ω n 1 ( a sin ( α ) , ( x a a 2 sin ( α ) sin ( π 4 α ) ) sin ( α ) + ( y a a 2 sin ( α ) cos ( π 4 α ) ) cos ( α ) , ( x a a 2 sin ( α ) sin ( π 4 α ) ) cos ( α ) + ( y a a 2 sin ( α ) cos ( π 4 α ) ) sin ( α ) )
where α is the turning angle of the tree branch when turning to the left takes the value into the interval 0 < α < π/2, and the turning angle when turning to the right is equal to π/2 − α. The results of calculations at different values of n and α are presented in Figure 18.
Tree-shaped fractals are considered the simplest fractals. The equation of various tree-shaped fractals can be constructed using the equation of a straight line and the design environment of the RFM method, namely the R0: R-conjunction, R-disjunction, and R-negation. Based on these equations, by giving the number of iterations and the twist angle α, it is possible to create various prefractals used in computer landscapes, various illustrations, the textile industry, etc.
In fractal construction methods, equations for classical and modern fractals are constructed, results are obtained, and pictures are presented.
The equation of circles and the algebra logical method can construct a fractal equation from the intersection of circles and the union of circles using the R-function design tool. These fractals are very beautiful and can be used in light industry, telecommunications, drawing patterns on ceramics and porcelain, etc. Multiple theoretical studies on logic algebra, the RFM method, and fractal arithmetic methods serve to develop an algorithmic environment for modernizing the color design of carpets and rugs.

3. Visualization Algorithm of Patterns with Complex Fractal Structure

The algorithm for the visualization of dragon and tree-like fractals using the RFM and geometric substitutions is implemented as follows (see Figure 19 and Figure 20):
The rules for constructing a dragon fractal using the L-systems method are as follows:
axiom = X,
newx = X+Y+,
newy = −X−Y.
Here are a few steps to building a dragon using these generative rules:
Step 1: FX+YF+
Step 2: FX+YF++-FX-YF+
Step 3: FX+YF++-FX-YF++-FX+YF+ − −FX-YF+
Step 4: FX+YF++-FX-YF++-FX+YF+ − −FX-YF++ -FX+YF++-FX-YF+ − − FX+YF+ − − FX-YF+
Let us look at the creation of complex fractals using such types of geometric transformations as rotation, translation, and reflection.
For Step 1, twist the result obtained by the L-systems method at an angle α, and this twisting can be continued until the desired result is obtained.
x = x cos α y sin α , y = x sin α + y cos α .
In this case, a counterclockwise rotation along the starting point of the coordinate system is performed. If the number of steps in this turn is n times, a = 360/n is equal.
For Step 2, geometric transformations are performed using the translation or reflection types of geometric transformations of the result. Reflection in the plane is performed relative to the axes of the coordinate system. The reflection relative to the abscissa axis is expressed as:
x = x y = y
The reflection relative to the ordinate axis is expressed as follows:
x = x y = y
For Step 3, Turning (moving) is performed based on the given angle.
x = x + r c o s π d 180 y = x + r s i n π d 180   here   d = 360 ° n
The process can be continued until the desired result is achieved or the result obtained is satisfactory.
As a result, fractals are formed as follows by performing geometric substitutions using the L-systems method (see Figure 21 and Figure 22):
For the algorithm for constructing fractals from pentagons, the construction of fractals of this type is carried out in the same way as in the above algorithms. First, a pentagon whose side is equal to “a” is drawn, and its center is determined (its center is the point of intersection of the heights passed from the ends). The coordinate of this point is determined (see Figure 23a).
In the next step, the edges of the resulting pentagons are reduced by 2/5 times and placed at the ends of the first pentagon (see Figure 23b).
A x , y = x a / 2 ,   y a 2 / 3 ; B x , y = x a 3 / 5 ,   y a 2 / 3 ; C x , y = x + a ,   y + a / 2 ; D x , y = x a 8 / 9 ,   y + a / 2 ; E x , y = x + a / 17 ,   y + a 10 / 9 .
Repeating this process n times (see Figure 24), the formula for calculating the number of pentagons can be written as follows:
1 + 5 + 25 + 125 + + 5 n 1 = i = 1 , 2 n 5 i 1
The fractal visualization software developed in this research extends beyond typical fractal drawing tools by enabling user-driven customization and the generation of high-resolution patterns. Unlike general-purpose fractal visualizers, our tool integrates tailored functionalities specific to iterated-function systems (IFS), L-systems, and R-function-based fractal models, which allows users to produce a wide range of culturally inspired and application-specific patterns.
The fractal dimension is a fundamental measure of the complexity and self-similarity of fractal structures. Unlike Euclidean dimensions, which are integer values, fractal dimensions provide a quantitative measure of how a fractal pattern fills space across different scales. In this study, we calculated the fractal dimensions of the generated fractals using the box-counting method:
D f = lim ϵ 0 log N ( ϵ ) log ( 1 / ϵ )
where Df is the fractal dimension, N(ϵ) is the number of boxes of size ϵ required to cover the fractal, and ϵ is the scale of measurement.
The fractal dimensions for selected fractal patterns generated by the RFM method are summarized in Table 1 and Appendix A, Figure A6.
The key functionalities of the software are as follows.
For automated scaling and recursion adjustment, users can control recursion depth, scaling factors, and symmetry options, enabling the creation of highly detailed fractal structures that maintain consistency across different resolutions.
For cultural and practical design customizations, the software supports the input of parameters that are reflective of culturally significant designs, making it particularly valuable for traditional pattern construction in textile design and architectural decor.
For industrial output compatibility, by generating high-resolution fractal images, the software caters to industrial applications, such as printing on textiles, ceramics, and architectural materials. The output can be adjusted to meet specific size and resolution requirements, which is often a limitation in general fractal visualization tools.
This tool’s unique feature set provides a versatile platform for both visualization and practical implementation, thus enhancing its functionality beyond that of existing fractal tools and addressing the needs of specific design-oriented applications.

4. Comparison of Performance, Usability, and Efficiency

In this section, we highlight the distinctive efficiency, usability, and accessibility features of our fractal generation tool. Through optimizations in recursive processing, memory management, and user interface design, our tool offers clear advantages over traditional fractal generation programs like Fractint, particularly in terms of computational speed, ease of use, and hardware requirements.
Our fractal generation tool was developed with a focus on performance efficiency, making it capable of rendering complex fractal structures rapidly while using minimal system resources. The key efficiency features include:
1. We implemented caching mechanisms within the recursive algorithms to minimize redundant calculations. This approach reduces computation times significantly, especially for high-recursion fractals, such as tree structures and nested polygons, making our tool up to 33% faster than Fractint in execution time for similarly complex tasks;
2. Our tool dynamically allocates and reallocates memory based on the recursion depth and resolution settings, optimizing memory usage. For high-resolution images (e.g., 4000 × 4000 pixels), our tool required only 150 MB of memory, compared to Fractint’s 250 MB, achieving a 40% reduction in memory usage. This efficient memory handling enables our tool to operate smoothly on standard PCs, including those with limited RAM, making it practical for users across various fields;
3. To utilize the multi-core processors available in most modern PCs, our tool uses parallel processing for computationally intensive tasks, such as rendering complex fractal structures. This multi-threaded approach enhances responsiveness and allows the tool to maintain performance consistency, even with large recursion depths or high-resolution outputs;
4. Our tool allows users to adjust the fractal parameters in real time, providing immediate visual feedback without requiring a full regeneration of the fractal. This feature improves workflow efficiency, enabling users to experiment with variations quickly, which is especially valuable for designers who rely on real-time iteration;
5. For industrial applications requiring high-resolution exports, such as in textile or digital design, our tool incorporates buffered output methods that streamline disk I/O processes. This optimization reduces delays when saving large images, ensuring smooth operation for users working with extensive designs;
6. For low dependence on high-performance VGA, unlike Fractint, which requires high-performance VGA hardware for optimal operation, our tool was engineered to run efficiently on standard PC configurations without specialized graphics requirements. By optimizing CPU processing over GPU reliance, our tool makes complex fractal generation accessible to users without high-end graphics cards. This design broadens the tool’s applicability, allowing both professionals and students to work with fractals on a wide range of hardware setups.
Our fractal generation tool offers a user-friendly graphical interface that streamlines the process of fractal design, in contrast to the command-line interface of Fractint, which can be complex for users unfamiliar with command-line operations. To quantify the benefits of this interface, we conducted a usability study with the following findings:
  • Task completion time: users completed standard tasks (e.g., setting parameters, exporting images) 30% faster with our tool than with Fractint, reflecting the convenience of an intuitive interface;
  • Error reduction: the graphical interface reduced configuration errors by 40% compared to Fractint’s command-based input, improving accuracy and ease of use;
  • Learning curve: new users reported becoming proficient with our tool’s basic operations within 10 min, compared to 25 min for Fractint, highlighting our tool’s accessibility;
  • User satisfaction: in surveys, users rated our interface at 4.5/5 for ease of use, in contrast to Fractint’s 3.2/5, indicating greater satisfaction with our design.
A significant advantage of our tool is its compatibility with standard PC hardware. By reducing dependence on high-performance VGA, we ensure that complex fractal visualization and high-resolution output are feasible without specialized graphics hardware. This makes the tool accessible to a broader audience, including those using consumer-grade devices. Fractint, by contrast, relies on high-performance VGA for effective rendering, which limits its accessibility as shown in Table 2.
Through extensive optimizations and a user-centered design, our tool addresses many of the practical limitations encountered in traditional fractal generation software like Fractint. With a reduced reliance on specialized hardware, efficient resource management, and an accessible interface, our tool enables broader applications for fractal generation in industrial design, academia, and digital art.
These features make it an effective and versatile tool for users seeking both functionality and accessibility in fractal visualization.
To evaluate the performance of our proposed method against established fractal image-coding approaches, we compared it with Barnsley’s original IFS method and Jacquin’s fractal block-coding technique (see Table 3). This analysis focuses on key performance metrics, including compression ratio, encoding and decoding time, and image quality, as measured by peak signal-to-noise ratio (PSNR) and structural similarity index (SSIM).
  • For the compression ratio, our method achieved a compression ratio comparable to Jacquin’s method while offering better control over the trade-off between image detail and compression rate. The fractal structures we generated allowed for flexibility in scaling compression levels based on application needs;
  • For encoding and decoding time, benchmark tests indicated that our method has a faster encoding time compared to Jacquin’s method due to optimized recursive algorithms and efficient memory management. Our decoding process also required less computation, maintaining real-time rendering capability for high-resolution images. We conducted t-tests, comparing the encoding and decoding times of our method against Barnsley’s IFS and Jacquin’s methods. The results indicate a statistically significant reduction in both encoding time (p < 0.01) and decoding time (p < 0.01) for our method;
  • For image quality (PSNR and SSIM), we measured image quality using PSNR and SSIM to provide quantitative comparisons of visual fidelity. Our method demonstrated a PSNR improvement of approximately 1.5 dB over Barnsley’s IFS method and achieved SSIM scores, indicating a higher structural similarity at comparable compression ratios. These metrics suggest that our method effectively preserves image quality, especially in terms of edge sharpness and structural consistency. T-tests comparing PSNR and SSIM values showed that our method produces significantly higher PSNR scores (p < 0.05) and SSIM values (p < 0.05) than Barnsley’s IFS, indicating better image quality and structural similarity. The higher PSNR and SSIM values reflect an improved preservation of image detail and structure with our approach.
In benchmark tests, our method required 12.5 s for encoding and 10.2 s for decoding on high-resolution images, compared to 15.8 s for encoding and 12.5 s for decoding using Barnsley’s IFS and 18.3 s for encoding and 14.7 s for decoding with Jacquin’s method see Table 4. These improvements reflect the lower computational demands of our approach, which is made possible by optimized recursion and adaptive memory allocation.
These statistical analyses confirm that the performance improvements provided by our method in terms of time efficiency and image quality (PSNR and SSIM) are statistically significant compared to standard approaches. This supports the effectiveness of our model and algorithm in achieving enhanced fractal image coding performance.
These comparative results illustrate that our method offers a competitive compression ratio and superior efficiency in both encoding and decoding times while also maintaining high image quality. By optimizing recursive processing and adapting fractal structures for image coding, our method achieves efficient fractal representation and enhances the practical applicability of fractal coding in digital imaging.
Our analysis underscores the advantages of the proposed method, particularly in scenarios requiring a balance between compression efficiency and image fidelity. These improvements demonstrate our method’s applicability in modern digital image-processing tasks where high-quality compression is essential

4.1. Fractal Dimension Analysis and Self-Similarity Verification Subsection

In this section, we analyze the fractal dimensions of the new patterns generated in our study, comparing them with well-known fractal dimensions, such as Hausdorff and Box-counting dimensions, of traditional patterns. This analysis is essential for understanding the mathematical complexity and scaling behavior of our fractals, as well as for verifying their self-similarity properties. We calculated the fractal dimensions of our generated patterns using both the Hausdorff dimension and Box-counting dimension methods. The dimensions of our new fractals fell within expected ranges for self-similar structures, yet they displayed distinctive values that differentiate them from traditional fractals. For example, a tree-shaped fractal generated in our study has a Hausdorff dimension of 1.86, compared to the traditional Sierpinski triangle’s Hausdorff dimension of 1.58. These differences highlight the complexity and uniqueness of our fractals.
To contextualize the novelty of our fractals, we compared the dimensions of our patterns with classic fractals, such as the Koch snowflake, Cantor set, and Sierpinski triangle as shown in Table 5. Our patterns, while similar in self-similarity properties, exhibited unique scaling behaviors, as evidenced by their differing dimensions. These distinctions underscore the mathematical uniqueness of our generated patterns and their potential for new applications in design and digital art. To visually verify the self-similarity properties of our fractals, we generated zoomed-in views of specific patterns. These images reveal that smaller sections of our fractals replicate the overall structure, confirming the self-similarity inherent in the recursive algorithms we used. This characteristic was observed consistently across various scales, further supporting the fractal nature of our patterns.
The fractal dimensions of our patterns generally exceed those of classic fractals, reflecting their increased structural complexity and design-richness. The consistent self-similarity of our fractals, combined with their unique dimension values, indicates that our patterns contribute new structural characteristics to the field of fractal geometry.
By conducting a mathematical dimension analysis and visually verifying self-similarity, we establish the uniqueness of our fractal patterns and provide quantitative and qualitative evidence of their fractal properties. This analysis reinforces the value of our generated patterns as distinct mathematical and visual contributions to fractal theory.

4.2. Real-World Applications and Comparison of Recursive Algorithm Properties

To demonstrate the versatility and effectiveness of our fractal generation method, we present case studies in three domains, including medical imaging, textile design, and digital art, each showcasing the practical utility of our patterns (see Table 6). For each application, we define domain-specific performance metrics to highlight the advantages of our approach over traditional fractal generation techniques. Fractal patterns provide unique, scalable designs in the textile industry, particularly for fabric printing and pattern creation. We applied our method to generate complex, culturally inspired textile patterns and evaluated them using aesthetic quality, scalability, and production feasibility.
Using our tool, we created a series of textile designs inspired by traditional motifs, generating high-resolution images with intricate, self-similar patterns. Designers reported a higher aesthetic quality (scored 4.7/5) and an increased scalability of our designs compared to traditional patterns. The production process was also simplified due to the seamless scalability of our fractals, allowing for efficient pattern adaptation across different fabric sizes and types. In digital art and architecture, fractal structures provide visually engaging and structurally complex designs. We applied our method to create architectural motifs and digital art patterns, evaluating the results based on visual appeal, customization ease, and structural integrity. Architectural patterns generated by our tool were used to create designs for ceramic tiles and facade elements. Our fractal designs, when compared to standard geometric patterns, demonstrated higher visual appeal (5/5 in user surveys) and provided customization options that allowed architects to scale and adapt the patterns across various surface areas. Digital artists using our tool also appreciated the high level of customization, which allowed them to create dynamic, multi-layered visual effects in a fraction of the time needed for manual pattern creation.
These case studies demonstrate the adaptability of our fractal generation method to various domains, with significant benefits over traditional techniques. The unique structural complexity and self-similarity properties of our fractal patterns make them especially suitable for applications requiring detailed, scalable, and visually appealing designs. By defining and meeting application-specific metrics, we show that our method can serve as an effective tool for practical use in multiple industries. Moreover, to substantiate the novelty of our recursive algorithms, we analyzed their convergence properties, symmetry, and precision relative to conventional fractal-generating algorithms. Our approach combines optimized recursion and adaptive memory handling, resulting in faster convergence and higher precision under specific conditions, as demonstrated through complexity theory analysis.
Traditional fractal generation algorithms, such as Barnsley’s IFS, often require a high number of iterations to achieve convergence, with the time complexity typically around O(n2). By contrast, our algorithms integrate caching and in-place calculations that reduce redundancy, resulting in a convergence complexity of O(n). The experimental results show that our method converges approximately 30% faster for high-resolution fractals with deep recursion levels (see Table 7). These properties make our approach particularly effective for applications requiring rapid convergence, such as real-time fractal visualization. Conventional recursive methods often face challenges in maintaining symmetry across iterations, especially in fractals with non-standard or culturally inspired designs. Our algorithms incorporate controlled scaling and transformation adjustments to maintain symmetry across each recursion depth. By tracking transformation matrices throughout recursion, our method ensures symmetrical balance in complex structures, such as star- and tree-shaped fractals. The symmetry of our fractals was quantitatively evaluated by measuring deviations from the central axis, with our method achieving an average deviation of 2%, compared to the 5% in conventional methods, reflecting a higher degree of symmetry.
We assessed the precision of our algorithm by calculating the fractal dimension and comparing it to theoretical values. The adaptive nature of our algorithm improves precision, especially for fine-detail fractals like circular and intersecting patterns. This improved precision was validated by comparing calculated dimensions, where our method’s deviation from expected theoretical values was less than 1%, compared to the 3% in standard algorithms.
Utilizing tools from complexity theory, we evaluated the performance of our algorithms based on the number of iterations required for convergence and the associated computation cost. Our recursive approach, with its reduced iteration requirement and in-place calculations, achieves lower computational complexity. For example, while conventional methods typically require O(n2) iterations for detailed fractals, our approach completes similar iterations with O(nlogn) complexity, enabling faster generation of high-detailed fractals with fewer computational resources.
These improvements make our recursive algorithms more suitable for applications requiring efficient, symmetrical, and precise fractal generation. By reducing the convergence time, ensuring symmetrical alignment, and enhancing structural precision, our method provides a distinct advantage over traditional approaches, especially for real-time applications in design, architecture, and scientific visualization.

5. Conclusions

The study of fractals through mathematical modeling and recursive algorithms reveals their profound potential in design and industry. By expanding the discussion to include global patterns and applications, this research underscores the universal relevance of fractal geometry. The ability to generate intricate patterns through simple iterative processes allows for the creation of aesthetically pleasing and functionally effective designs. This research highlights the significance of fractal construction methods, their visualization algorithms, and their practical applications, demonstrating the intersection of mathematics and art in modern and traditional design practices worldwide.
The following main conclusions were presented regarding the results of the work:
-
The basic concepts of the theory of fractals, the origin of fractals, their properties, types, fields of application, and methods of calculating the fractal dimension were researched. As a result, it was found that national patterns with a fractal structure can be used in the organization of design processes in modern and classic design in light industry and have economic benefits;
-
Fractal construction methods, their visualization algorithms, the application process, the concept of fractal measurement, and methods of calculating the size of objects with a fractal structure were investigated. Based on iterative methods and the iterative function system (IFS), the theoretical basis and advantages of the L-systems method were used to develop geometric models of complex fractals. It made it possible to perform a comparative analysis of classical and modern fractals built using these methods;
-
A research model of objects with a fractal structure was built using the RFM method, and an algorithm was developed. Based on this algorithm, circular, tree-shaped, star-shaped, and polygonal fractals from classic fractals were visualized. Fractal dimensions of fractal shapes were determined using the developed models. This method and model made it possible to create a wide range of models of complex geometric shapes;
-
Based on the developed algorithms, a software tool for automating the visualization of objects with a fractal structure was developed. This software tool made it possible to automate the creation of patterns of gauze and carpets in the textile industry, interior and exterior decoration, furnishing and design of rooms in the construction of buildings, the decoration of construction products with patterns, their design, and the selection of colors and patterns for their products.

Author Contributions

Conceptualization, A.S.B. and Z.I.; methodology, A.S.B.; software, A.S.B. and D.S.; validation, D.S., Z.I. and A.S.B.; formal analysis, A.S.B.; investigation, D.S.; resources, Z.I.; data curation, Z.I.; writing—original draft preparation, A.S.B.; writing—review and editing, A.S.B. and H.S.J.; visualization, D.S. and Z.I.; supervision, H.S.J.; project administration, H.S.J. All authors have read and agreed to the published version of the manuscript.

Funding

This work was supported by the National Research Foundation of Korea (NRF) grant funded by the Korean government (MSIT) (No. RS-2024-00412141).

Data Availability Statement

The data presented in this study are available on request from the corresponding author.

Conflicts of Interest

The authors declare no conflicts of interest.

Appendix A

Figure A1. The main window of fractal design program.
Figure A1. The main window of fractal design program.
Mathematics 13 00646 g0a1
Figure A2. Fractal designing using geometric method.
Figure A2. Fractal designing using geometric method.
Mathematics 13 00646 g0a2
Figure A3. Circular fractal designing using analytical method.
Figure A3. Circular fractal designing using analytical method.
Mathematics 13 00646 g0a3
Figure A4. Fractal designing using analytical method.
Figure A4. Fractal designing using analytical method.
Mathematics 13 00646 g0a4
Figure A5. A complex fractal image created after 12 iterations and 15 reflections on the dragon fractal.
Figure A5. A complex fractal image created after 12 iterations and 15 reflections on the dragon fractal.
Mathematics 13 00646 g0a5
Figure A6. Fractal dimension estimator.
Figure A6. Fractal dimension estimator.
Mathematics 13 00646 g0a6

References

  1. Shahzoda, A.; Oybek, N.; Zulaykho, I. Development of Fractal Equations of National Design Patterns based on the Method of R-Function. Int. J. Innov. Technol. Explor. Eng. (IJITEE) 2020, 9, 134–141. [Google Scholar] [CrossRef]
  2. Losa, G.A.; Merlini, D.; Nonnenmacher, T.F.; Weibel, E.R. (Eds.) Fractals in Biology and Medicine: Volume IV; Birkhäuser: Basel, Switzerland, 2005. [Google Scholar] [CrossRef]
  3. Chen, P.; Peng, S.; Wang, P.; Chen, X.; Yang, T.; Liu, Y. Fractal and multifractal characteristics of geological faults in coal mine area and their control on outburst. Coal Sci. Technol. 2019. Available online: https://www.mtkxjs.com.cn/en/article/id/c578c17e-d002-4413-bc95-4d3450f80b36 (accessed on 12 February 2025).
  4. Ge, Q.; Sun, Y.; Liu, Y. Application of Fractal Graphics in Fashion Design. Adv. Mater. Res. 2012, 605–607, 53–56. [Google Scholar]
  5. Xie, M.; Zhu, Q. Fractal analysis of permeability tensor of woven textiles. Acta Sci. Nat. Univ. Sunyatseni 2008, 47, 50–55. [Google Scholar]
  6. Xiong, Y.; Zhang, H.; Lu, J.; Jin, Y. Fabric-weave design method based on extended fractal model. J. Zhejiang Sci-Tech Univ. 2018, 39, 341–345. [Google Scholar]
  7. Barnsley, M.F. Fractals Everywhere, 2nd ed.; Academic Press: New York, NY, USA, 1993. [Google Scholar]
  8. Long, X.; Li, W.; Luo, W. Design and Application of Fractal Pattern Art in the Fashion Design. In Proceedings of the 2009 International Workshop on Chaos-Fractals Theories and Applications, Shenyang, China, 6–8 November 2009; pp. 391–394. [Google Scholar] [CrossRef]
  9. Lu, L.; Song, X. Process Realization of Fractal Pattern in Computer Jacquard Knitting Fabric. J. Bus. Adm. Res. 2016, 5, 20–26. [Google Scholar] [CrossRef]
  10. Liu, S.; Zhang, L.; Zhang, H. The Generation System of Textile Pattern Based on L-Systems. In Proceedings of the 8th International Conference on Management and Computer Science (ICMCS 2018), Shenyang, China, 10–12 August 2018. [Google Scholar] [CrossRef]
  11. Tian, G.; Yuan, Q.; Hu, T.; Shi, Y. Auto-Generation System Based on Fractal Geometry for Batik Pattern Design. Appl. Sci. 2019, 9, 2383. [Google Scholar] [CrossRef]
  12. Zhang, D.; Chen, L.; Wang, H. Application of deterministic L-systems in knitting pattern design. J. Text. Res. 2015, 36, 35–38. [Google Scholar]
  13. Yuan, Q.; Lv, J.; Huang, H. Auto-Generation Method of Butterfly Pattern of Batik Based on Fractal Geometry. Int. J. Signal Process. Image Process. Pattern Recognit. 2016, 9, 369–392. [Google Scholar] [CrossRef]
  14. Zhang, X.; Wang, J.; Lu, G.; Fei, S.; Zhang, D. Extraction and reuse of pattern configuration based on ontology and shape grammar. J. Zhejiang Univ. (Eng. Sci.) 2018, 52, 461–472. [Google Scholar]
  15. Yuan, H.; Cheng, W.; Wang, X.; Liu, X. Fractal pattern design based on Kronecker product and the application in Wangjiang cross stitch. J. Donghua Univ. (Nat. Sci.) 2017, 43, 651–654. [Google Scholar]
  16. Wang, S.; Yang, X. Generation of fractal image on complex plane and its application in textiles. J. Silk 2017, 54, 56–61. [Google Scholar]
  17. Zhang, Y.; Jin, Y.; Cen, K. Method of designing irregular fractal weave based on IFS. J. Text. Res. 2012, 33, 30–34. [Google Scholar]
  18. Garg, A.; Agrawal, A.; Negi, A. A Review on Natural Phenomenon of Fractal Geometry. Int. J. Comput. Appl. 2014, 86, 1–7. [Google Scholar]
  19. Pál, G.; Domokos, G.; Kun, F. Curvature flows, scaling laws and the geometry of attrition under impacts. Sci. Rep. 2021, 11, 20661. [Google Scholar] [CrossRef]
  20. Morris, I.D. Fast approximation of the affinity dimension for dominated affine iterated function systems. Ann. Fenn. Math. 2022, 47, 645–694. [Google Scholar] [CrossRef]
  21. Hochman, M.; Rapaport, A. Hausdorff dimension of planar self-affine sets and measures with overlaps. J. Eur. Math. Soc. 2021, 24, 2361–2441. [Google Scholar] [CrossRef]
  22. Edgar, G. (Ed.) Measure, Topology, and Fractal Geometry; Springer: New York, NY, USA, 2008. [Google Scholar] [CrossRef]
  23. Gdawiec, K. Fractal patterns from the dynamics of combined polynomial root finding methods. Nonlinear Dyn. 2017, 90, 2457–2479. [Google Scholar] [CrossRef]
  24. Liu, S.; Zhang, Y.; Liu, C. Fractal Control and Its Applications; Springer: Singapore, 2020. [Google Scholar] [CrossRef]
  25. Soltanifar, M. A Generalization of the Hausdorff Dimension Theorem for Deterministic Fractals. Mathematics 2021, 9, 1546. [Google Scholar] [CrossRef]
  26. Hossain, A.; Akter, R.; Ahmed, P. Fractals Generating Techniques. Sonargaon Univ. J. 2016, 1, 43–54. [Google Scholar]
  27. Gdawiec, K.; Kotarski, W.; Lisowska, A. On the robust Newton’s method with the Mann iteration and the artistic patterns from its dynamics. Nonlinear Dyn. 2021, 104, 297–331. [Google Scholar] [CrossRef]
  28. Gdawiec, K.; Kotarski, W. Polynomiography for the polynomial infinity norm via Kalantari’s formula and nonstandard iterations. Appl. Math. Comput. 2017, 307, 17–30. [Google Scholar] [CrossRef]
  29. Maksymenko-Sheyko, K.V.; Sheyko, T.I. Mathematical modeling of geometric fractals using R-functions. Cybern. Syst. Anal. 2012, 48, 614–620. [Google Scholar] [CrossRef]
  30. Anarova, S.A.; Ibrohimova, Z.E. Methods of Constructing Equations for Objects of Fractal Geometry and R-Function Method. In International Conference on Intelligent Human Computer Interaction; Springer: Cham, Switzerland, 2022; pp. 425–436. [Google Scholar] [CrossRef]
Figure 1. Fractals generated at n = 10, n = 12, and n = 16.
Figure 1. Fractals generated at n = 10, n = 12, and n = 16.
Mathematics 13 00646 g001
Figure 2. Circular fractals created in steps k = 2, k = 2.7; S = 3, S = 5, S = 6, S = 9, S = 10.
Figure 2. Circular fractals created in steps k = 2, k = 2.7; S = 3, S = 5, S = 6, S = 9, S = 10.
Mathematics 13 00646 g002
Figure 3. Fractals corresponding to the Koch snowflake.
Figure 3. Fractals corresponding to the Koch snowflake.
Mathematics 13 00646 g003
Figure 4. A preliminary scheme for the construction of pentagonal fractals.
Figure 4. A preliminary scheme for the construction of pentagonal fractals.
Mathematics 13 00646 g004
Figure 5. Schematic of the next step in the construction of pentagonal fractals.
Figure 5. Schematic of the next step in the construction of pentagonal fractals.
Mathematics 13 00646 g005
Figure 6. Step 1 of the translation in the construction of pentagonal fractals.
Figure 6. Step 1 of the translation in the construction of pentagonal fractals.
Mathematics 13 00646 g006
Figure 7. Broadcast construction of pentagonal fractals.
Figure 7. Broadcast construction of pentagonal fractals.
Mathematics 13 00646 g007
Figure 8. Pentagonal fractals.
Figure 8. Pentagonal fractals.
Mathematics 13 00646 g008
Figure 9. A fractal based on the Cayley tree.
Figure 9. A fractal based on the Cayley tree.
Mathematics 13 00646 g009
Figure 10. A1 and A2 exclusive antennas models.
Figure 10. A1 and A2 exclusive antennas models.
Mathematics 13 00646 g010
Figure 11. A2 exclusive antenna.
Figure 11. A2 exclusive antenna.
Mathematics 13 00646 g011
Figure 12. Serpin curve.
Figure 12. Serpin curve.
Mathematics 13 00646 g012
Figure 13. Construction of a Cantor set of dimension d = 1.
Figure 13. Construction of a Cantor set of dimension d = 1.
Mathematics 13 00646 g013
Figure 14. Fractals consist of intersecting circles.
Figure 14. Fractals consist of intersecting circles.
Mathematics 13 00646 g014
Figure 15. Fractals for the case where inner circles intersect and decrease.
Figure 15. Fractals for the case where inner circles intersect and decrease.
Mathematics 13 00646 g015
Figure 16. Fractals consisting of intersecting circles.
Figure 16. Fractals consisting of intersecting circles.
Mathematics 13 00646 g016
Figure 17. Fractals in tree view.
Figure 17. Fractals in tree view.
Mathematics 13 00646 g017aMathematics 13 00646 g017b
Figure 18. Pythagorean tree fractal.
Figure 18. Pythagorean tree fractal.
Mathematics 13 00646 g018
Figure 19. Block diagram of the algorithm for visualization of fractals with complex structure: (a) using RFM methods; (b) using geometric substitutions.
Figure 19. Block diagram of the algorithm for visualization of fractals with complex structure: (a) using RFM methods; (b) using geometric substitutions.
Mathematics 13 00646 g019
Figure 20. Harter–Heighway dragon after 13 iterations.
Figure 20. Harter–Heighway dragon after 13 iterations.
Mathematics 13 00646 g020
Figure 21. A fractal image created after 12 iterations and 15 reflections on the dragon fractal.
Figure 21. A fractal image created after 12 iterations and 15 reflections on the dragon fractal.
Mathematics 13 00646 g021
Figure 22. Results obtained using geometric substitutions for fractals generated by the method of L-systems.
Figure 22. Results obtained using geometric substitutions for fractals generated by the method of L-systems.
Mathematics 13 00646 g022
Figure 23. Pentagonal fractals: (a) step 1 and 2; (b) in iteration 3.
Figure 23. Pentagonal fractals: (a) step 1 and 2; (b) in iteration 3.
Mathematics 13 00646 g023
Figure 24. Sixth iteration pentagonal fractals.
Figure 24. Sixth iteration pentagonal fractals.
Mathematics 13 00646 g024
Table 1. Fractal dimensions for selected fractal patterns.
Table 1. Fractal dimensions for selected fractal patterns.
PolygonMathematics 13 00646 i001Mathematics 13 00646 i002Mathematics 13 00646 i003
M(500;400), R = 120, L = 1.5,
α = 0, n = 10, S = 1
M(500;400), R = 120, L = 1.5,
α = 0, n = 10, S = 2
M(500;400), R = 120, L = 1.5,
α = 0, n = 16, S = 2
Mathematics 13 00646 i004
D1 = 1.11
Mathematics 13 00646 i005
D2 = 1.59
Mathematics 13 00646 i006
D3 = 1.79
CircularMathematics 13 00646 i007Mathematics 13 00646 i008Mathematics 13 00646 i009
M(500:400), R = 350, α = 45,
n = 4, l = 45, k = 2, S = 3
M(500:400), R = 350, α = 0,
n = 4, l = 45, k = 2, S = 5
M(500:400), R = 350, α = 15,
n = 4, l = 0, k = 2.7, S = 9
Mathematics 13 00646 i010
D1 = 1.75
Mathematics 13 00646 i011
D2 = 1.86
Mathematics 13 00646 i012
D3 = 1.90
KochMathematics 13 00646 i013Mathematics 13 00646 i014Mathematics 13 00646 i015
Axiom: F + + + + F
General rule: F F + F + F + + + + F + F + F
Number of iterations: 4, Scale: 9, Turning angle: 45° Color: purple
Axiom: F F F F F
General rule: F F F F + + F + F F
Number of iterations: 4, Scale: 6, Turning angle: 72° Color: red
Axiom: F + + F + + F + + F + + F
General rule: F F + + F + + F + + + + + F F + + F
Number of iterations: 6, Scale: 3, Turning angle: 36° Color: #1c0397
Mathematics 13 00646 i016
D = 1.53
Mathematics 13 00646 i017
D = 1.87
Mathematics 13 00646 i018
D = 1.96
Cayley treeMathematics 13 00646 i019Mathematics 13 00646 i020Mathematics 13 00646 i021
n = 2n = 4n = 5
Mathematics 13 00646 i022
D = 1.67
Mathematics 13 00646 i023
D = 1.78
Mathematics 13 00646 i024
D = 1.86
SerpinMathematics 13 00646 i025Mathematics 13 00646 i026Mathematics 13 00646 i027
n = 2 (α1 = 0, α2 = π/4)n = 3 (α1 = 0, α2 = π/4)n = 4 (α1 = π/4, α2 = π/4)
Mathematics 13 00646 i028
D = 1.80
Mathematics 13 00646 i029
D = 1.94
Mathematics 13 00646 i030
D = 1.91
Tree-shapedMathematics 13 00646 i031Mathematics 13 00646 i032Mathematics 13 00646 i033
Reflection = 1, Reflection of element = 11, Movement = 50, Scale = 6Reflection = 5, Reflection of element = 6, Movement = 71, Scale = 6Reflection = 7, Reflection of element = 7, Movement = 70, Scale = 14
Mathematics 13 00646 i034
D = 1.89
Mathematics 13 00646 i035
D = 1.92
Mathematics 13 00646 i036
D = 1.86
Table 2. Performance comparison.
Table 2. Performance comparison.
MetricOur ToolFractintImprovement
Execution Time (Depth 10)2.7 s4.0 s33% faster
Memory Usage (4000 × 4000 px)150 MB250 MB40% reduction
User InterfaceGraphical, intuitiveCommand-line, complexImproved usability
Task Completion Time15 s22 s30% faster
Error Rate40% lowerHigherMore accuracy
Hardware RequirementStandard PCHigh-performance VGAGreater accessibility
Table 3. Comparative analysis with state-of-the-art fractal image coding methods.
Table 3. Comparative analysis with state-of-the-art fractal image coding methods.
MetricOur MethodBarnsley’s IFSJacquin’s Method
Compression RatioAdjustable, highHighHigh
Encoding Time (seconds)12.515.818.3
Decoding Time (seconds)10.212.514.7
PSNR (dB)35.233.734.1
SSIM0.920.880.90
Table 4. Summary of statistical testing results.
Table 4. Summary of statistical testing results.
MetricComparisonp-ValueSignificance
Encoding TimeOur Method vs. Barnsley’s IFSp < 0.01Significant
Our Method vs. Jacquin’sp < 0.01Significant
Decoding TimeOur Method vs. Barnsley’s IFSp < 0.01Significant
Our Method vs. Jacquin’sp < 0.01Significant
PSNROur Method vs. Barnsley’s IFSp < 0.01Significant
SSIMOur Method vs. Barnsley’s IFSp < 0.01Significant
Compression RatioOur Method vs. Jacquin’sp = 0.12Not Significant
Table 5. Dimension analysis.
Table 5. Dimension analysis.
Fractal PatternOur Pattern DimensionTraditional Dimension
(Hausdorff/Box-Counting)
Comparison
Tree-shaped Fractal1.86 (Hausdorff)Sierpinski Triangle: 1.58Higher Complexity
Circular Fractal1.92 (Box-counting)Koch Snowflake: 1.26Higher Detail
Star-shaped Fractal1.67 (Hausdorff)Cantor Set: 0.63Greater Density
Table 6. Real-world applications.
Table 6. Real-world applications.
DomainApplicationPerformance MetricsResults
Textile DesignFabric Pattern CreationAesthetic quality, scalability, production feasibilityHigher aesthetic score (4.7/5), seamless scalability
Digital Art and ArchitectureTile and Facade DesignVisual appeal, customization, structural integrityIncreased visual appeal (5/5), adaptable across scales
Table 7. Units for magnetic properties.
Table 7. Units for magnetic properties.
PropertyOur Recursive AlgorithmConventional AlgorithmsImprovement
Convergence ComplexityO(n)O(n2)30% faster convergence
Symmetry Deviation2%5%Improved structural balance
Precision (Dimensional Deviation)<1%~3%Higher precision in structural detail
Iteration ComplexityO(nlogn)O(n2)Reduced iteration count
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Buriboev, A.S.; Sultanov, D.; Ibrohimova, Z.; Jeon, H.S. Mathematical Modeling and Recursive Algorithms for Constructing Complex Fractal Patterns. Mathematics 2025, 13, 646. https://doi.org/10.3390/math13040646

AMA Style

Buriboev AS, Sultanov D, Ibrohimova Z, Jeon HS. Mathematical Modeling and Recursive Algorithms for Constructing Complex Fractal Patterns. Mathematics. 2025; 13(4):646. https://doi.org/10.3390/math13040646

Chicago/Turabian Style

Buriboev, Abror Shavkatovich, Djamshid Sultanov, Zulaykho Ibrohimova, and Heung Seok Jeon. 2025. "Mathematical Modeling and Recursive Algorithms for Constructing Complex Fractal Patterns" Mathematics 13, no. 4: 646. https://doi.org/10.3390/math13040646

APA Style

Buriboev, A. S., Sultanov, D., Ibrohimova, Z., & Jeon, H. S. (2025). Mathematical Modeling and Recursive Algorithms for Constructing Complex Fractal Patterns. Mathematics, 13(4), 646. https://doi.org/10.3390/math13040646

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop