Previous Article in Journal
Power Series Expansions of Real Powers of Inverse Cosine and Sine Functions, Closed-Form Formulas of Partial Bell Polynomials at Specific Arguments, and Series Representations of Real Powers of Circular Constant
Previous Article in Special Issue
Enhancing NSGA-II Algorithm through Hybrid Strategy for Optimizing Maize Water and Fertilizer Irrigation Simulation
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
This is an early access version, the complete PDF, HTML, and XML versions will be available soon.
Article

Imperative Genetic Programming

Faculty of Electrical Engineering, University of Ljubljana, Tržaška 25, 1000 Ljubljana, Slovenia
*
Author to whom correspondence should be addressed.
Symmetry 2024, 16(9), 1146; https://doi.org/10.3390/sym16091146
Submission received: 31 July 2024 / Revised: 27 August 2024 / Accepted: 29 August 2024 / Published: 3 September 2024

Abstract

Genetic programming (GP) has a long-standing tradition in the evolution of computer programs, predominantly utilizing tree and linear paradigms, each with distinct advantages and limitations. Despite the rapid growth of the GP field, there have been disproportionately few attempts to evolve ’real’ Turing-like imperative programs (as contrasted with functional programming) from the ground up. Existing research focuses mainly on specific special cases where the structure of the solution is partly known. This paper explores the potential of integrating tree and linear GP paradigms to develop an encoding scheme that universally supports genetic operators without constraints and consistently generates syntactically correct Python programs from scratch. By blending the symmetrical structure of tree-based representations with the inherent asymmetry of linear sequences, we created a versatile environment for program evolution. Our approach was rigorously tested on 35 problems characterized by varying Halstead complexity metrics, to delineate the approach’s boundaries. While expected brute-force program solutions were observed, our method yielded more sophisticated strategies, such as optimizing a program by restricting the division trials to the values up to the square root of the number when counting its proper divisors. Despite the recent groundbreaking advancements in large language models, we assert that the GP field warrants continued research. GP embodies a fundamentally different computational paradigm, crucial for advancing our understanding of natural evolutionary processes.
Keywords: evolutionary algorithms; tree genetic programming; linear genetic programming; imperative programming evolutionary algorithms; tree genetic programming; linear genetic programming; imperative programming

Share and Cite

MDPI and ACS Style

Fajfar, I.; Rojec, Ž.; Bűrmen, Á.; Kunaver, M.; Tuma, T.; Tomažič, S.; Puhan, J. Imperative Genetic Programming. Symmetry 2024, 16, 1146. https://doi.org/10.3390/sym16091146

AMA Style

Fajfar I, Rojec Ž, Bűrmen Á, Kunaver M, Tuma T, Tomažič S, Puhan J. Imperative Genetic Programming. Symmetry. 2024; 16(9):1146. https://doi.org/10.3390/sym16091146

Chicago/Turabian Style

Fajfar, Iztok, Žiga Rojec, Árpád Bűrmen, Matevž Kunaver, Tadej Tuma, Sašo Tomažič, and Janez Puhan. 2024. "Imperative Genetic Programming" Symmetry 16, no. 9: 1146. https://doi.org/10.3390/sym16091146

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