Grammatical Swarm: The generation of programs by social programming

  • Authors:
  • Michael O'Neill;Anthony Brabazon

  • Affiliations:
  • Natural Computing Research & Applications Group, University College Dublin, Dublin, Ireland;Natural Computing Research & Applications Group, University College Dublin, Dublin, Ireland

  • Venue:
  • Natural Computing: an international journal
  • Year:
  • 2006

Quantified Score

Hi-index 0.00

Visualization

Abstract

This study examines Social Programming, that is, the construction of programs using a Social Swarm algorithm based on Particle Swarm Optimization. Each individual particle represents choices of program construction rules, where these rules are specified using a Backus---Naur Form grammar. This study represents the first instance of a Particle Swarm Algorithm being used to generate programs. A selection of benchmark problems from the field of Genetic Programming are tackled and performance is compared to Grammatical Evolution. The results demonstrate that it is possible to successfully generate programs using the Grammatical Swarm technique. An analysis of the Grammatical Swarm approach is presented on the dynamics of the search. It is found that restricting the search to the generation of complete programs, or with the use of a ratchet constraint forcing individuals to move only if a fitness improvement has been found, can have detrimental consequences for the swarms performance and dynamics.