Iterator[Trees]
Conjugate
compute the conjugate of a tree
Calling Sequence
Parameters
Options
Description
Examples
References
Compatibility
Conjugate(tree, format=fmt)
tree
-
seq(rtable)
fmt
(optional) A,C,D,E,LR,P,S,Z
format = A,C,D,E,LR,P,S,Z
Specifies the format of the tree. The default is LR. See Iterator[Trees] for a description of the formats.
The Conjugate command computes the conjugate of a tree. The conjugate of a forest consists of its left-to-right mirror reflection. The conjugate of a tree of a given format is computed by converting it to a forest, reflecting, then converting back to the specified format.
The tree parameter is the tree.
with⁡Iterator:-Trees:
Generate a random tree with four internal nodes in LR format.
L,R≔Random⁡4,format=LR
L,R≔2300,4000
Compute its conjugate.
Conjugate⁡L,R
0340,2000
Knuth, Donald Ervin. The Art of Computer Programming, volume 4, fascicle 4; generating all trees, sec. 7.2.1.6, generating all trees, exercise 11, p. 33.
The Iterator[Trees][Conjugate] command was introduced in Maple 2016.
For more information on Maple 2016 changes, see Updates in Maple 2016.
See Also
Iterator
Iterator[Trees][Random]
Download Help Document