Skip to main content
Kent Academic Repository

Evolving High-Level Imperative Program Trees with Genetic Programming

Castle, Tom (2012) Evolving High-Level Imperative Program Trees with Genetic Programming. Doctor of Philosophy (PhD) thesis, University of Kent. (KAR id:34799)

PDF Author's Accepted Manuscript
Language: English
Download this file
(PDF/3MB)
[thumbnail of thesis.pdf]

Abstract

Genetic Programming (GP) is a technique which uses an evolutionary metaphor to automatically generate computer programs. Although GP proclaims to evolve computer programs, historically it has been used to produce code which more closely resembles mathematical formulae than the well structured programs that modern programmers aim to produce. The objective of this thesis is to explore the use of GP in generating high-level imperative programs and to present some novel techniques to progress this aim.

A novel set of extensions to Montana’s Strongly Typed Genetic Programming system are presented that provide a mechanism for constraining the structure of program trees. It is demonstrated that these constraints are sufficient to evolve programs with a naturally imperative structure and to support the use of many common high-level imperative language constructs such as loops. Further simple algorithm modifications are made to support additional constructs, such as variable declarations that create new limited-scope variables. Six non-trivial problems, including sorting and the general even parity problem, are used to experimentally compare the performance of the systems and configurations proposed.

Software metrics are widely used in the software engineering process for many purposes, but are largely unused in GP. A detailed analysis of evolved programs is presented using seven different metrics, including cyclomatic complexity and Halstead’s program effort. The relationship between these metrics and a program’s fitness and evaluation time is explored. It is discovered that these metrics are poorly suited for application to improve GP performance, but other potential uses are proposed.

Item Type: Thesis (Doctor of Philosophy (PhD))
Uncontrolled keywords: genetic programming, computer programming, algorithm, evolution, imperative programming, local variables, loops, software metrics
Subjects: Q Science > QA Mathematics (inc Computing science) > QA 76 Software, computer programming,
Divisions: Divisions > Division of Computing, Engineering and Mathematical Sciences > School of Computing
Depositing User: T.A. Castle
Date Deposited: 19 Jul 2013 15:46 UTC
Last Modified: 16 Nov 2021 10:12 UTC
Resource URI: https://kar.kent.ac.uk/id/eprint/34799 (The current URI for this page, for reference purposes)

University of Kent Author Information

Castle, Tom.

Creator's ORCID:
CReDIT Contributor Roles:
  • Depositors only (login required):

Total unique views for this document in KAR since July 2020. For more details click on the image.