combinat::lyndonWords::fromContent – Lyndon words with prescribed content
The combinatorial class of Lyndon words with prescribed content
Details:
This domain is a wrapper around combinat::necklaces::fromEvaluation to make it easy to generate necklaces by content; the available methods are the same, but take contents instead of evaluations as arguments.
To decide on the canonical representative of a Lyndon word, the letters appearing in the content are ordered as in sort.
Here are all the Lyndon words containing three a's, one b, and two d's:
combinat::lyndonWords::fromContent([a, a, a, b, d, d])
Changes in MuPAD 3.1
New Function.