Derivation tree operations are needed for implementing grammar-based genetic programming and grammatical evolution: Generating a random derivation trees of a context-free grammar of bounded depth, decoding a derivation tree, choosing a random node in a derivation tree, extracting a tree whose root is a specified node, and inserting a subtree into a derivation tree at a specified node. These operations are necessary for the initialization and for decoders of a random population of programs, as well as for implementing crossover and mutation operators. Depth-bounds are guaranteed by switching to a grammar without recursive production rules. For executing the examples, the package 'BNF' is needed. The basic tree operations for generating, extracting, and inserting derivation trees as well as the conditions for guaranteeing complete derivation trees have been presented in Geyer-Schulz (1997, ISBN:978-3-7908-0830-X). The use of random integer vectors for the generation of derivation trees has been introduced in Ryan, C., Collins, J. J., and O'Neill, M. (1998) <doi:10.1007/BFb0055930> for grammatical evolution.
| Version: | 1.0.0.6 |
| Imports: | xegaBNF |
| Suggests: | testthat (≥ 3.0.0) |
| Published: | 2025-04-16 |
| DOI: | 10.32614/CRAN.package.xegaDerivationTrees |
| Author: | Andreas Geyer-Schulz
|
| Maintainer: | Andreas Geyer-Schulz <Andreas.Geyer-Schulz at kit.edu> |
| License: | MIT + file LICENSE |
| URL: | https://github.com/ageyerschulz/xegaDerivationTrees |
| NeedsCompilation: | no |
| Materials: | README, NEWS |
| CRAN checks: | xegaDerivationTrees results |
| Reference manual: | xegaDerivationTrees.html , xegaDerivationTrees.pdf |
| Package source: | xegaDerivationTrees_1.0.0.6.tar.gz |
| Windows binaries: | r-devel: xegaDerivationTrees_1.0.0.6.zip, r-release: xegaDerivationTrees_1.0.0.6.zip, r-oldrel: xegaDerivationTrees_1.0.0.6.zip |
| macOS binaries: | r-release (arm64): xegaDerivationTrees_1.0.0.6.tgz, r-oldrel (arm64): xegaDerivationTrees_1.0.0.6.tgz, r-release (x86_64): xegaDerivationTrees_1.0.0.6.tgz, r-oldrel (x86_64): xegaDerivationTrees_1.0.0.6.tgz |
| Old sources: | xegaDerivationTrees archive |
| Reverse imports: | xega, xegaGeGene, xegaGpGene |
Please use the canonical form https://CRAN.R-project.org/package=xegaDerivationTrees to link to this page.
Need a high-speed mirror for your open-source project?
Contact our mirror admin team at info@clientvps.com.
This archive is provided as a free public service to the community.
Proudly supported by infrastructure from VPSPulse , RxServers , BuyNumber , UnitVPS , OffshoreName and secure payment technology by ArionPay.