Skip to main content

Optimization of String Rewriting Operations for 3D Fractal Generation with Genetic Algorithms

  • Conference paper
  • First Online:
Numerical Methods and Applications (NMA 2018)

Part of the book series: Lecture Notes in Computer Science ((LNTCS,volume 11189))

Included in the following conference series:

Abstract

String rewriting is a modification of the idea for the context-free grammar. Modification consists in the fact that there is not separation on terminal and nonterminal symbols. Each symbol in string rewriting, is considered as nonterminal and it can produce longer sequence. By this way infinite structures are created as fractals. In a video presentation by Jack Hodkinson the use of 2D images instead of text symbol pixels is suggested. Each pixel (geometric square) is divided in nine sub-squares. The color of the pixel determine the pattern in which the nine squares are arranged. By this way each pixel gives a rule for subdivision of the containing area. Hodkinson gives a method, to setup the fractal, to reproduce a particular 2D image (for example, the glyph of the Greek letter \(\pi \)). This problem is well known in the fractals theory as Fractal Inverse Problem (FIP). It is an optimization problem, so a good option is the use of genetic algorithm (GA), to assemble set of rules, for string rewriting with 2D pixels. Series of experiments with the size of substitution matrix (not only 3 \(\times \,\)3, but also 2 \(\times \,\)2 and 4 \(\times \,\)4) are done by Hodkinson. Also are made series of experiments with different number of colors, starting with black/white and reaching the final successful experiment with thirty shades of blue.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

References

  1. Guerin, E., Tosan, E.: Fractal inverse problem: approximation formulation and differential methods. In: Levy-Vehel, J., Lutton, E. (eds.) Fractals in Engineering, pp. 271–285. Springer, London (2005). https://doi.org/10.1007/1-84628-048-6_17. ISBN 978-1-84628-047-4

    Chapter  Google Scholar 

  2. Nettleton, D.J., Garigliano, R.: Evolutionary algorithms and a fractal inverse problem. Biosystems 33(3), 221–231 (1994). ISSN 0303-2647

    Article  Google Scholar 

  3. Ochoa, G.: On genetic algorithms and lindenmayer systems. In: Eiben, A.E., Bäck, T., Schoenauer, M., Schwefel, H.-P. (eds.) PPSN 1998. LNCS, vol. 1498, pp. 335–344. Springer, Heidelberg (1998). https://doi.org/10.1007/BFb0056876

    Chapter  Google Scholar 

  4. Shonkwiler, R., Mendivil, F., Deliu, A.: Genetic algorithms for the 1-D fractal inverse problem. In: Proceedings of the Fourth International Conference on Genetic Algorithms, pp. 495–501. Morgan Kaufmann (1991)

    Google Scholar 

  5. Zelinka, I.: Inverse fractal problem. In: Price, K.V., Storn, R.M., Lampinen, J.A. (eds.) Differential Evolution. NCS, pp. 479–498. Springer, Heidelberg (2005). https://doi.org/10.1007/3-540-31306-0_17. ISBN 978-3-540-20950-8

    Chapter  Google Scholar 

  6. The Apache Software Foundation: Genetic Algorithms - Apache Commons (2018). http://commons.apache.org/proper/commons-math/userguide/genetics.html

  7. PrintingIn3D: Printing in 3D - JavaSCAD (2018). http://www.printingin3d.eu/javascad

  8. Balabanov, T.: The idea of Jack Hodkinson for fractal generation implemented in 3D version (2018). http://github.com/TodorBalabanov/Jack-Hodkinson-3D-Fractal

  9. Shonkwiler, R.: Parallel genetic algorithms. In: Proceedings of the Fifth International Conference on Genetic Algorithms, pp. 199–205. Morgan Kaufmann, CA (1993)

    Google Scholar 

  10. Vences, L., Rudomin, I., Carretera, K., Guadalupe, L.: Genetic algorithms for fractal image and image sequence compression. In: Proceedings of Comptacion Visual, pp. 35–44 (1997)

    Google Scholar 

  11. Al-Bundi, S.S., Al-Saidi, N.M., Al-Jawari, N.J.: Crowding optimization method to improve fractal image compressions based iterated function systems. Int. J. Adv. Comput. Sci. Appl. 7(7), 392–401 (2016)

    Google Scholar 

Download references

Acknowledgements

This work was supported by private funding of Velbazhd Software LLC.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Kolyu Kolev .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2019 Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Balabanov, T., Sevova, J., Kolev, K. (2019). Optimization of String Rewriting Operations for 3D Fractal Generation with Genetic Algorithms. In: Nikolov, G., Kolkovska, N., Georgiev, K. (eds) Numerical Methods and Applications. NMA 2018. Lecture Notes in Computer Science(), vol 11189. Springer, Cham. https://doi.org/10.1007/978-3-030-10692-8_5

Download citation

  • DOI: https://doi.org/10.1007/978-3-030-10692-8_5

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-030-10691-1

  • Online ISBN: 978-3-030-10692-8

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics