Package: xegaDerivationTrees 1.0.0.6

xegaDerivationTrees: Generating and Manipulating Derivation Trees

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.

Authors:Andreas Geyer-Schulz [aut, cre]

xegaDerivationTrees_1.0.0.6.tar.gz
xegaDerivationTrees_1.0.0.6.zip(r-4.7)xegaDerivationTrees_1.0.0.6.zip(r-4.6)xegaDerivationTrees_1.0.0.6.zip(r-4.5)
xegaDerivationTrees_1.0.0.6.tgz(r-4.6-any)xegaDerivationTrees_1.0.0.6.tgz(r-4.5-any)
xegaDerivationTrees_1.0.0.6.tar.gz(r-4.7-any)xegaDerivationTrees_1.0.0.6.tar.gz(r-4.6-any)
xegaDerivationTrees_1.0.0.6.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
xegaDerivationTrees/json (API)
NEWS

# Install 'xegaDerivationTrees' in R:
install.packages('xegaDerivationTrees', repos = c('https://ageyerschulz.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/ageyerschulz/xegaderivationtrees/issues

On CRAN:

Conda:

2.95 score 3 packages 4 scripts 248 downloads 39 exports 1 dependencies

Last updated from:82714c9538. Checks:4 ERROR, 2 OK, 3 WARNING. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64ERROR106
source / vignettesOK173
linux-release-x86_64ERROR101
macos-release-arm64ERROR115
macos-oldrel-arm64ERROR81
windows-develWARNING61
windows-releaseWARNING55
windows-oldrelWARNING62
wasm-releaseOK99

Exports:addEaddVbooleanGrammarchooseNodechooseRulechooseRulekcompatibleSubtreescompileBNFdecodeAndFixDTdecodeCDTdecodeDTdecodeDTsymdecodeSymVecdecodeTreefilterANLfilterANLidgenerateCDTgenerateDerivationTreeleavesIncompleteDTnewEnewVprintDerivationsrandomDerivationTreerndPartitionrndsubrndsubksubstituteSymboltestGenerateDerivationTreetreeANLtreeChildrentreeExtracttreeInserttreeLeavestreeListDepthtreeNodestreeProbabilitytreeRoottreeSizetreeToDataFrames

Dependencies:xegaBNF