Skip to main content

Structured Grammatical Evolution: A Dynamic Approach

  • Chapter
  • First Online:
Handbook of Grammatical Evolution

Abstract

Grammars have attracted the attention of researchers within the Evolutionary Computation field, specially from the Genetic Programming community. The most successful example of the use of grammars by GP is Grammatical Evolution (GE). In spite of being widely used by practitioners of different fields, GE is not free from drawbacks. The ones that are most commonly pointed out are those linked with redundancy and locality of the representation. To address these limitations Structured Grammatical Evolution (SGE) was proposed, which introduces a one-to-one mapping between the genotype and the non-terminals. In SGE the input grammar must be pre-processed so that recursion is removed, and the maximum number of expansion possibilities for each symbol determined. This has been pointed out as a drawback of SGE and to tackle it we introduce Dynamic Structured Grammatical Evolution (DSGE). In DSGE there is no need to pre-process the grammar, as it is expanded on the fly during the evolutionary process, and thus we only need to define the maximum tree depth. Additionally, it only encodes the integers that are used in the genotype to phenotype mapping, and grows as needed during evolution. Experiments comparing DSGE with SGE show that DSGE performance is never worse than SGE, being statistically superior in a considerable number of the tested problems.

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 129.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 169.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info
Hardcover Book
USD 169.99
Price excludes VAT (USA)
  • Durable hardcover 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

Notes

  1. 1.

    The implementations of SGE and DSGE are available at: SGE—https://github.com/nunolourenco/sge and DSGE—https://github.com/nunolourenco/dsge.

References

  1. F. Assunção, N. Lourenço, P. Machado, B. Ribeiro, Towards the evolution of multi-layered neural networks: a dynamic structured grammatical evolution approach, in Proceedings of the Genetic and Evolutionary Computation Conference, GECCO ’17 (ACM, New York, 2017), pp. 393–400. https://doi.org/10.1145/3071178.3071286

    Google Scholar 

  2. F. Assunção, N. Lourenço, P. Machado, B. Ribeiro, Automatic generation of neural networks with structured grammatical evolution, in 2017 IEEE Congress on Evolutionary Computation (CEC) (2017), pp. 1557–1564. https://doi.org/10.1109/CEC.2017.7969488

  3. J. Byrne, M. O’Neill, A. Brabazon, Structural and nodal mutation in grammatical evolution, in Proceedings of the 11th Annual Conference on Genetic and Evolutionary Computation, New York, 2009, pp. 1881–1882

    Google Scholar 

  4. J. Byrne, M. O’Neill, J. McDermott, A. Brabazon, An analysis of the behaviour of mutation in grammatical evolution, in Genetic Programming. Lecture Notes in Computer Science, vol. 6021 (Springer, Berlin, 2010), pp. 14–25

    Google Scholar 

  5. A. Field, Discovering Statistics Using IBM SPSS Statistics (Sage, Los Angeles, 2013)

    Google Scholar 

  6. R. Franz, Representations for Genetic and Evolutionary Algorithms (Springer, Berlin, 2006)

    Google Scholar 

  7. L. Fu, E. Medico, FLAME, a novel fuzzy clustering method for the analysis of DNA microarray data. BMC Bioinf. 8(1), 1 (2007)

    Google Scholar 

  8. R.P. Gorman, T.J. Sejnowski, Analysis of hidden units in a layered network trained to classify sonar targets. Neural Netw. 1(1), 75–89 (1988)

    Article  Google Scholar 

  9. R. Harper, Spatial co-evolution: quicker, fitter and less bloated, in Proceedings of the 14th Annual Conference on Genetic and Evolutionary Computation (ACM, New York, 2012), pp. 759–766

    Google Scholar 

  10. J.R. Koza, Genetic Programming: On the Programming of Computers by Means of Natural Selection, vol. 1 (MIT Press, Cambridge, 1992)

    MATH  Google Scholar 

  11. M. Lichman, UCI machine learning repository (2013). http://archive.ics.uci.edu/ml

  12. N. Lourenço, F.B. Pereira, E. Costa, Unveiling the properties of structured grammatical evolution. Genet. Program. Evolvable Mach. 17(3), 251–289 (2016)

    Article  Google Scholar 

  13. J. McDermott, D.R. White, S. Luke, L. Manzoni, M. Castelli, L. Vanneschi, W. Jaskowski, K. Krawiec, R. Harper, K. De Jong, U.M. O’Reilly, Genetic programming needs better benchmarks, in Proceedings of the 14th Annual Conference on Genetic and Evolutionary Computation (ACM, New York, 2012), pp. 791–798

    Google Scholar 

  14. R.I. Mckay, N.X. Hoai, P.A. Whigham, Y. Shan, M. O’Neill, Grammar-based genetic programming: a survey. Genet. Program. Evolvable Mach. 11(3–4), 365–396 (2010)

    Article  Google Scholar 

  15. M. O’Neill, C. Ryan, Grammatical evolution. IEEE Trans. Evol. Comput. 5(4), 349–358 (2001)

    Article  Google Scholar 

  16. M. O’Neill, C. Ryan, Grammatical Evolution: Evolutionary Automatic Programming in a Arbitrary Language. Genetic Programming, vol. 4 (Kluwer Academic, Boston, 2003)

    Google Scholar 

  17. F. Rothlauf, On the locality of representations, in Genetic and Evolutionary Computation Conference. Lecture Notes in Computer Science (2003), pp. 1608–1609

    Google Scholar 

  18. F. Rothlauf, M. Oetzel, On the locality of grammatical evolution, in European Conference on Genetic Programming (Springer, Berlin, 2006), pp. 320–330

    Google Scholar 

  19. C. Ryan, J. Collins, M.O. Neill, Grammatical evolution: evolving programs for an arbitrary language, in European Conference on Genetic Programming (Springer, Berlin, 1998), pp. 83–96

    Google Scholar 

  20. V.G. Sigillito, S.P. Wing, L.V. Hutton, K.B. Baker, Classification of radar returns from the ionosphere using neural networks. Johns Hopkins APL Tech. Dig. 10(3), 262–266 (1989)

    Google Scholar 

  21. W.N. Street, W.H. Wolberg, O.L. Mangasarian, Nuclear feature extraction for breast tumor diagnosis, in IS&T/SPIE’s Symposium on Electronic Imaging: Science and Technology (International Society for Optics and Photonics, Bellingham, 1993), pp. 861–870

    Google Scholar 

  22. P.A. Whigham, et al.: Grammatically-based genetic programming, in Proceedings of the Workshop on Genetic Programming: From Theory to Real-World Applications, vol. 16 (1995), pp. 33–41

    Google Scholar 

  23. P.A. Whigham, G. Dick, J. Maclaurin, C.A. Owen, Examining the best of both worlds of grammatical evolution, in Proceedings of the 2015 Annual Conference on Genetic and Evolutionary Computation (ACM, New York, 2015), pp. 1111–1118

    Google Scholar 

Download references

Acknowledgements

This research is partially funded by: Fundação para a Ciência e Tecnologia (FCT), Portugal, under the grant SFRH/BD/114865/2016. We gratefully acknowledge the support of NVIDIA Corporation for the donation of a Titan X GPU. We would also like to thank Tiago Martins for all the patience making the charts herein presented.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Nuno Lourenço .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2018 Springer International Publishing AG, part of Springer Nature

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

Cite this chapter

Lourenço, N., Assunção, F., Pereira, F.B., Costa, E., Machado, P. (2018). Structured Grammatical Evolution: A Dynamic Approach. In: Ryan, C., O'Neill, M., Collins, J. (eds) Handbook of Grammatical Evolution. Springer, Cham. https://doi.org/10.1007/978-3-319-78717-6_6

Download citation

  • DOI: https://doi.org/10.1007/978-3-319-78717-6_6

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-319-78716-9

  • Online ISBN: 978-3-319-78717-6

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics