Maple Professionel
Maple Académique
Maple Edition Étudiant
Maple Personal Edition
Maple Player
Maple Player for iPad
MapleSim Professionel
MapleSim Académique
Maple T.A. - Suite d'examens de classement
Maple T.A. MAA Placement Test Suite
Möbius - Didacticiels de mathématiques en ligne
Machine Design / Industrial Automation
Aéronautique
Ingénierie des véhicules
Robotics
Energie
System Simulation and Analysis
Model development for HIL
Modélisation du procédé pour la conception de systèmes de contrôle
Robotics/Motion Control/Mechatronics
Other Application Areas
Enseignement des mathématiques
Enseignement de l’ingénierie
Enseignement secondaire et supérieur (CPGE, BTS)
Tests et évaluations
Etudiants
Modélisation financière
Recherche opérationnelle
Calcul haute performance
Physique
Webinaires en direct
Webinaires enregistrés
Agenda des évènements
Forum MaplePrimes
Blog Maplesoft
Membres Maplesoft
Maple Ambassador Program
MapleCloud
Livres blancs techniques
Bulletin électronique
Livres Maple
Math Matters
Portail des applications
Galerie de modèles MapleSim
Cas d'Etudes Utilisateur
Exploring Engineering Fundamentals
Concepts d’enseignement avec Maple
Centre d’accueil utilisateur Maplesoft
Centre de ressources pour enseignants
Centre d’assistance aux étudiants
Grammar Specification of a Combinatorial Class
Description
A combinatorial class is either an elementary class, or is built from simpler classes with "constructors." The elementary classes are Epsilon, which represents an object of size zero, and Atom, which represents an object of size one. The available constructors are listed in the following table.
Epsilon
object of size 0
Atom
object of size 1 (Z is a predefined atom)
Union(A,B,...)
disjointunion of the classes A,B, ...
Prod(A,B,...)
partitional product of the classes A, B, ...
Set(A)
all sets with repetitions whose elements are in A
PowerSet(A)
all sets without repetitions whose elements are in A
Sequence(A)
all sequences of elements of A
Cycle(A)
all directed cycles of elements of A
Subst(A,B)
B-objects whose atoms are replaced by A-objects
For the constructors Set, PowerSet, Sequence, and Cycle, it is possible to add restrictions on the cardinality. For example, means all nonempty sets whose elements are in , means all sequences of at most three elements of , and means all directed cycles of five elements from .
None of these constructors accept an object that generates Epsilon as an argument. In some cases, no cardinality restriction or with any constructor but PowerSet, such a grammar generates an infinite number of objects of size 0, whereas this system is for classes with a finite number of members of each size.
In the others, PowerSet or or , while there are only a finite number of objects of size 0, the current system does not handle grammars with such Epsilon productions.
In , neither nor may produce objects of size 0.
A specification is a set of productions of the form , where is the name of the class being defined, and is an expression involving elementary classes, constructors, and other classes. For example, the following table lists specifications of some well-known combinatorial classes.
When the labeling type is 'labeled'.
nonplane trees
plane binary trees
plane general trees
permutations
set partitions
nonplane ternary trees
hierarchies
3-balanced hierarchies
surjections
functional graphs
When the labeling type is 'unlabeled'.
integer partition
binary sequences
necklaces
rooted unlabeled trees
nonplane binary trees
unlabeled hierarchies
random mappings patterns
2-3 trees
integer partitions without
repetition
It is possible to use Epsilon as a way of marking certain objects without affecting their size.
There are also predefined structures, for example, combinations, built into the system. For more information, see combstruct[structures].
Examples
Generate words on two letters of the form .
If you do not need the derivation structure, remove it.
To model series and parallel circuits of resistors, a parallel circuit is made up of two or more resistors in series, and a series circuit is made up of two or more parallel circuits.
However, you cannot tell from this answer which resistors are in series and which are in parallel. In this case, you obtain more information about the derivation by using Epsilon tags.
Since Epsilon has size 0, taking the product with Epsilon does not change the number of objects of each size.
See Also
combstruct, combstruct[structures]
Download Help Document