Iterator[Trees]
Random
generate a random tree
Calling Sequence
Parameters
Options
Description
Examples
Compatibility
Random(n,format=fmt)
n
-
posint; number of internal nodes
format=fmt
format of the tree
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 Random command generates a random tree in the selected format.
with⁡Iterator:-Trees
Conjugate,Convert,Random,Transpose
Generate a random tree with thirty internal nodes in C format.
Random⁡30,format=C
012111111232333344555520122332
The Iterator[Trees][Random] command was introduced in Maple 2016.
For more information on Maple 2016 changes, see Updates in Maple 2016.
See Also
Iterator
Download Help Document