fbpx
Wikipedia

Symbolic method (combinatorics)

In combinatorics, the symbolic method is a technique for counting combinatorial objects. It uses the internal structure of the objects to derive formulas for their generating functions. The method is mostly associated with Philippe Flajolet and is detailed in Part A of his book with Robert Sedgewick, Analytic Combinatorics, while the rest of the book explains how to use complex analysis in order to get asymptotic and probabilistic results on the corresponding generating functions.

During two centuries, generating functions were popping up via the corresponding recurrences on their coefficients (as can be seen in the seminal works of Bernoulli, Euler, Arthur Cayley, Schröder, Ramanujan, Riordan, Knuth, Comtet [fr], etc.). It was then slowly realized that the generating functions were capturing many other facets of the initial discrete combinatorial objects, and that this could be done in a more direct formal way: The recursive nature of some combinatorial structures translates, via some isomorphisms, into noteworthy identities on the corresponding generating functions. Following the works of Pólya, further advances were thus done in this spirit in the 1970s with generic uses of languages for specifying combinatorial classes and their generating functions, as found in works by Foata and Schützenberger[1] on permutations, Bender and Goldman on prefabs,[2] and Joyal on combinatorial species.[3]

Note that this symbolic method in enumeration is unrelated to "Blissard's symbolic method", which is just another old name for umbral calculus.

The symbolic method in combinatorics constitutes the first step of many analyses of combinatorial structures, which can then lead to fast computation schemes, to asymptotic properties and limit laws, to random generation, all of them being suitable to automatization via computer algebra.

Classes of combinatorial structures edit

Consider the problem of distributing objects given by a generating function into a set of n slots, where a permutation group G of degree n acts on the slots to create an equivalence relation of filled slot configurations, and asking about the generating function of the configurations by weight of the configurations with respect to this equivalence relation, where the weight of a configuration is the sum of the weights of the objects in the slots. We will first explain how to solve this problem in the labelled and the unlabelled case and use the solution to motivate the creation of classes of combinatorial structures.

The Pólya enumeration theorem solves this problem in the unlabelled case. Let f(z) be the ordinary generating function (OGF) of the objects, then the OGF of the configurations is given by the substituted cycle index

 

In the labelled case we use an exponential generating function (EGF) g(z) of the objects and apply the Labelled enumeration theorem, which says that the EGF of the configurations is given by

 

We are able to enumerate filled slot configurations using either PET in the unlabelled case or the labelled enumeration theorem in the labelled case. We now ask about the generating function of configurations obtained when there is more than one set of slots, with a permutation group acting on each. Clearly the orbits do not intersect and we may add the respective generating functions. Suppose, for example, that we want to enumerate unlabelled sequences of length two or three of some objects contained in a set X. There are two sets of slots, the first one containing two slots, and the second one, three slots. The group acting on the first set is  , and on the second slot,  . We represent this by the following formal power series in X:

 

where the term   is used to denote the set of orbits under G and  , which denotes in the obvious way the process of distributing the objects from X with repetition into the n slots. Similarly, consider the labelled problem of creating cycles of arbitrary length from a set of labelled objects X. This yields the following series of actions of cyclic groups:

 

Clearly we can assign meaning to any such power series of quotients (orbits) with respect to permutation groups, where we restrict the groups of degree n to the conjugacy classes   of the symmetric group  , which form a unique factorization domain. (The orbits with respect to two groups from the same conjugacy class are isomorphic.) This motivates the following definition.

A class   of combinatorial structures is a formal series

 

where   (the "A" is for "atoms") is the set of primes of the UFD   and  

In the following we will simplify our notation a bit and write e.g.

 

for the classes mentioned above.

The Flajolet–Sedgewick fundamental theorem edit

A theorem in the Flajolet–Sedgewick theory of symbolic combinatorics treats the enumeration problem of labelled and unlabelled combinatorial classes by means of the creation of symbolic operators that make it possible to translate equations involving combinatorial structures directly (and automatically) into equations in the generating functions of these structures.

Let   be a class of combinatorial structures. The OGF   of   where X has OGF   and the EGF   of   where X is labelled with EGF   are given by

 

and

 

In the labelled case we have the additional requirement that X not contain elements of size zero. It will sometimes prove convenient to add one to   to indicate the presence of one copy of the empty set. It is possible to assign meaning to both   (the most common example is the case of unlabelled sets) and   To prove the theorem simply apply PET (Pólya enumeration theorem) and the labelled enumeration theorem.

The power of this theorem lies in the fact that it makes it possible to construct operators on generating functions that represent combinatorial classes. A structural equation between combinatorial classes thus translates directly into an equation in the corresponding generating functions. Moreover, in the labelled case it is evident from the formula that we may replace   by the atom z and compute the resulting operator, which may then be applied to EGFs. We now proceed to construct the most important operators. The reader may wish to compare with the data on the cycle index page.

The sequence operator SEQ edit

This operator corresponds to the class

 

and represents sequences, i.e. the slots are not being permuted and there is exactly one empty sequence. We have

 

and

 

The cycle operator CYC edit

This operator corresponds to the class

 

i.e., cycles containing at least one object. We have

 

or

 

and

 

This operator, together with the set operator SET, and their restrictions to specific degrees are used to compute random permutation statistics. There are two useful restrictions of this operator, namely to even and odd cycles.

The labelled even cycle operator CYCeven is

 

which yields

 

This implies that the labelled odd cycle operator CYCodd

 

is given by

 

The multiset/set operator MSET/SET edit

The series is

 

i.e., the symmetric group is applied to the slots. This creates multisets in the unlabelled case and sets in the labelled case (there are no multisets in the labelled case because the labels distinguish multiple instances of the same object from the set being put into different slots). We include the empty set in both the labelled and the unlabelled case.

The unlabelled case is done using the function

 

so that

 

Evaluating   we obtain

 

For the labelled case we have

 

In the labelled case we denote the operator by SET, and in the unlabelled case, by MSET. This is because in the labeled case there are no multisets (the labels distinguish the constituents of a compound combinatorial class) whereas in the unlabeled case there are multisets and sets, with the latter being given by

 

Procedure edit

Typically, one starts with the neutral class  , containing a single object of size 0 (the neutral object, often denoted by  ), and one or more atomic classes  , each containing a single object of size 1. Next, set-theoretic relations involving various simple operations, such as disjoint unions, products, sets, sequences, and multisets define more complex classes in terms of the already defined classes. These relations may be recursive. The elegance of symbolic combinatorics lies in that the set theoretic, or symbolic, relations translate directly into algebraic relations involving the generating functions.

In this article, we will follow the convention of using script uppercase letters to denote combinatorial classes and the corresponding plain letters for the generating functions (so the class   has generating function  ).

There are two types of generating functions commonly used in symbolic combinatorics—ordinary generating functions, used for combinatorial classes of unlabelled objects, and exponential generating functions, used for classes of labelled objects.

It is trivial to show that the generating functions (either ordinary or exponential) for   and   are   and  , respectively. The disjoint union is also simple — for disjoint sets   and  ,   implies  . The relations corresponding to other operations depend on whether we are talking about labelled or unlabelled structures (and ordinary or exponential generating functions).

Combinatorial sum edit

The restriction of unions to disjoint unions is an important one; however, in the formal specification of symbolic combinatorics, it is too much trouble to keep track of which sets are disjoint. Instead, we make use of a construction that guarantees there is no intersection (be careful, however; this affects the semantics of the operation as well). In defining the combinatorial sum of two sets   and  , we mark members of each set with a distinct marker, for example   for members of   and   for members of  . The combinatorial sum is then:

 

This is the operation that formally corresponds to addition.

Unlabelled structures edit

With unlabelled structures, an ordinary generating function (OGF) is used. The OGF of a sequence   is defined as

 

Product edit

The product of two combinatorial classes   and   is specified by defining the size of an ordered pair as the sum of the sizes of the elements in the pair. Thus we have for   and  ,  . This should be a fairly intuitive definition. We now note that the number of elements in   of size n is

 

Using the definition of the OGF and some elementary algebra, we can show that

  implies  

Sequence edit

The sequence construction, denoted by   is defined as

 

In other words, a sequence is the neutral element, or an element of  , or an ordered pair, ordered triple, etc. This leads to the relation

 

Set edit

The set (or powerset) construction, denoted by   is defined as

 

which leads to the relation

 

where the expansion

 

was used to go from line 4 to line 5.

Multiset edit

The multiset construction, denoted   is a generalization of the set construction. In the set construction, each element can occur zero or one times. In a multiset, each element can appear an arbitrary number of times. Therefore,

 

This leads to the relation

 

where, similar to the above set construction, we expand  , swap the sums, and substitute for the OGF of  .

Other elementary constructions edit

Other important elementary constructions are:

  • the cycle construction ( ), like sequences except that cyclic rotations are not considered distinct
  • pointing ( ), in which each member of B is augmented by a neutral (zero size) pointer to one of its atoms
  • substitution ( ), in which each atom in a member of B is replaced by a member of C.

The derivations for these constructions are too complicated to show here. Here are the results:

Construction Generating function
    (where   is the Euler totient function)
   
   

Examples edit

Many combinatorial classes can be built using these elementary constructions. For example, the class of plane trees (that is, trees embedded in the plane, so that the order of the subtrees matters) is specified by the recursive relation

 

In other words, a tree is a root node of size 1 and a sequence of subtrees. This gives

 

we solve for G(z) by multiplying   to get

 

subtracting z and solving for G(z) using the quadratic formula gives

 

Another example (and a classic combinatorics problem) is integer partitions. First, define the class of positive integers  , where the size of each integer is its value:

 

The OGF of   is then

 

Now, define the set of partitions   as

 

The OGF of   is

 

Unfortunately, there is no closed form for  ; however, the OGF can be used to derive a recurrence relation, or using more advanced methods of analytic combinatorics, calculate the asymptotic behavior of the counting sequence.

Specification and specifiable classes edit

The elementary constructions mentioned above allow us to define the notion of specification. This specification allows us to use a set of recursive equations, with multiple combinatorial classes.

Formally, a specification for a set of combinatorial classes   is a set of   equations  , where   is an expression, whose atoms are   and the  's, and whose operators are the elementary constructions listed above.

A class of combinatorial structures is said to be constructible or specifiable when it admits a specification.

For example, the set of trees whose leaves' depth is even (respectively, odd) can be defined using the specification with two classes   and  . Those classes should satisfy the equation   and  .

Labelled structures edit

An object is weakly labelled if each of its atoms has a nonnegative integer label, and each of these labels is distinct. An object is (strongly or well) labelled, if furthermore, these labels comprise the consecutive integers  . Note: some combinatorial classes are best specified as labelled structures or unlabelled structures, but some readily admit both specifications. A good example of labelled structures is the class of labelled graphs.

With labelled structures, an exponential generating function (EGF) is used. The EGF of a sequence   is defined as

 

Product edit

For labelled structures, we must use a different definition for product than for unlabelled structures. In fact, if we simply used the cartesian product, the resulting structures would not even be well labelled. Instead, we use the so-called labelled product, denoted  

For a pair   and  , we wish to combine the two structures into a single structure. In order for the result to be well labelled, this requires some relabelling of the atoms in   and  . We will restrict our attention to relabellings that are consistent with the order of the original labels. Note that there are still multiple ways to do the relabelling; thus, each pair of members determines not a single member in the product, but a set of new members. The details of this construction are found on the page of the Labelled enumeration theorem.

To aid this development, let us define a function,  , that takes as its argument a (possibly weakly) labelled object   and relabels its atoms in an order-consistent way so that   is well labelled. We then define the labelled product for two objects   and   as

 

Finally, the labelled product of two classes   and   is

 

The EGF can be derived by noting that for objects of size   and  , there are   ways to do the relabelling. Therefore, the total number of objects of size   is

 

This binomial convolution relation for the terms is equivalent to multiplying the EGFs,

 

Sequence edit

The sequence construction   is defined similarly to the unlabelled case:

 

and again, as above,

 

Set edit

In labelled structures, a set of   elements corresponds to exactly   sequences. This is different from the unlabelled case, where some of the permutations may coincide. Thus for  , we have

 

Cycle edit

Cycles are also easier than in the unlabelled case. A cycle of length   corresponds to   distinct sequences. Thus for  , we have

 

Boxed product edit

In labelled structures, the min-boxed product   is a variation of the original product which requires the element of   in the product with the minimal label. Similarly, we can also define a max-boxed product, denoted by  , by the same manner. Then we have,

 

or equivalently,

 

Example edit

An increasing Cayley tree is a labelled non-plane and rooted tree whose labels along any branch stemming from the root form an increasing sequence. Then, let   be the class of such trees. The recursive specification is now  

Other elementary constructions edit

The operators CYCeven, CYCodd, SETeven, and SETodd represent cycles of even and odd length, and sets of even and odd cardinality.

Example edit

Stirling numbers of the second kind may be derived and analyzed using the structural decomposition

 

The decomposition

 

is used to study unsigned Stirling numbers of the first kind, and in the derivation of the statistics of random permutations. A detailed examination of the exponential generating functions associated to Stirling numbers within symbolic combinatorics may be found on the page on Stirling numbers and exponential generating functions in symbolic combinatorics.

See also edit

References edit

  1. ^ Foata, Dominique; Schützenberger, Marcel-P. (1970). "Théorie géométrique des polynômes Eulériens". Lectures Notes in Mathematics. Lecture Notes in Mathematics. 138. arXiv:math/0508232. doi:10.1007/BFb0060799. ISBN 978-3-540-04927-2.
  2. ^ Bender, Edward A.; Goldman, Jay R. (1971). "Enumerative uses of generating functions". Indiana University Mathematics Journal. 20 (8): 753–764. doi:10.1512/iumj.1971.20.20060.
  3. ^ Joyal, André (1981). "Une théorie combinatoire des séries formelles". Advances in Mathematics. 42: 1–82. doi:10.1016/0001-8708(81)90052-9.
  • François Bergeron, Gilbert Labelle, Pierre Leroux, Théorie des espèces et combinatoire des structures arborescentes, LaCIM, Montréal (1994). English version: Combinatorial Species and Tree-like Structures, Cambridge University Press (1998).
  • Philippe Flajolet and Robert Sedgewick, Analytic Combinatorics, Cambridge University Press (2009). (available online: http://algo.inria.fr/flajolet/Publications/book.pdf)
  • Micha Hofri, Analysis of Algorithms: Computational Methods and Mathematical Tools, Oxford University Press (1995).

symbolic, method, combinatorics, this, article, about, method, analytic, combinatorics, method, invariant, theory, symbolic, method, combinatorics, symbolic, method, technique, counting, combinatorial, objects, uses, internal, structure, objects, derive, formu. This article is about the method in analytic combinatorics For the method in invariant theory see Symbolic method In combinatorics the symbolic method is a technique for counting combinatorial objects It uses the internal structure of the objects to derive formulas for their generating functions The method is mostly associated with Philippe Flajolet and is detailed in Part A of his book with Robert Sedgewick Analytic Combinatorics while the rest of the book explains how to use complex analysis in order to get asymptotic and probabilistic results on the corresponding generating functions During two centuries generating functions were popping up via the corresponding recurrences on their coefficients as can be seen in the seminal works of Bernoulli Euler Arthur Cayley Schroder Ramanujan Riordan Knuth Comtet fr etc It was then slowly realized that the generating functions were capturing many other facets of the initial discrete combinatorial objects and that this could be done in a more direct formal way The recursive nature of some combinatorial structures translates via some isomorphisms into noteworthy identities on the corresponding generating functions Following the works of Polya further advances were thus done in this spirit in the 1970s with generic uses of languages for specifying combinatorial classes and their generating functions as found in works by Foata and Schutzenberger 1 on permutations Bender and Goldman on prefabs 2 and Joyal on combinatorial species 3 Note that this symbolic method in enumeration is unrelated to Blissard s symbolic method which is just another old name for umbral calculus The symbolic method in combinatorics constitutes the first step of many analyses of combinatorial structures which can then lead to fast computation schemes to asymptotic properties and limit laws to random generation all of them being suitable to automatization via computer algebra Contents 1 Classes of combinatorial structures 2 The Flajolet Sedgewick fundamental theorem 2 1 The sequence operator SEQ 2 2 The cycle operator CYC 2 3 The multiset set operator MSET SET 3 Procedure 4 Combinatorial sum 5 Unlabelled structures 5 1 Product 5 2 Sequence 5 3 Set 5 4 Multiset 5 5 Other elementary constructions 5 6 Examples 5 7 Specification and specifiable classes 6 Labelled structures 6 1 Product 6 2 Sequence 6 3 Set 6 4 Cycle 6 5 Boxed product 6 6 Example 6 7 Other elementary constructions 6 8 Example 7 See also 8 ReferencesClasses of combinatorial structures editConsider the problem of distributing objects given by a generating function into a set of n slots where a permutation group G of degree n acts on the slots to create an equivalence relation of filled slot configurations and asking about the generating function of the configurations by weight of the configurations with respect to this equivalence relation where the weight of a configuration is the sum of the weights of the objects in the slots We will first explain how to solve this problem in the labelled and the unlabelled case and use the solution to motivate the creation of classes of combinatorial structures The Polya enumeration theorem solves this problem in the unlabelled case Let f z be the ordinary generating function OGF of the objects then the OGF of the configurations is given by the substituted cycle index Z G f z f z 2 f z n displaystyle Z G f z f z 2 ldots f z n nbsp In the labelled case we use an exponential generating function EGF g z of the objects and apply the Labelled enumeration theorem which says that the EGF of the configurations is given by g z n G displaystyle frac g z n G nbsp We are able to enumerate filled slot configurations using either PET in the unlabelled case or the labelled enumeration theorem in the labelled case We now ask about the generating function of configurations obtained when there is more than one set of slots with a permutation group acting on each Clearly the orbits do not intersect and we may add the respective generating functions Suppose for example that we want to enumerate unlabelled sequences of length two or three of some objects contained in a set X There are two sets of slots the first one containing two slots and the second one three slots The group acting on the first set is E 2 displaystyle E 2 nbsp and on the second slot E 3 displaystyle E 3 nbsp We represent this by the following formal power series in X X 2 E 2 X 3 E 3 displaystyle X 2 E 2 X 3 E 3 nbsp where the term X n G displaystyle X n G nbsp is used to denote the set of orbits under G and X n X X displaystyle X n X times cdots times X nbsp which denotes in the obvious way the process of distributing the objects from X with repetition into the n slots Similarly consider the labelled problem of creating cycles of arbitrary length from a set of labelled objects X This yields the following series of actions of cyclic groups X C 1 X 2 C 2 X 3 C 3 X 4 C 4 displaystyle X C 1 X 2 C 2 X 3 C 3 X 4 C 4 cdots nbsp Clearly we can assign meaning to any such power series of quotients orbits with respect to permutation groups where we restrict the groups of degree n to the conjugacy classes Cl S n displaystyle operatorname Cl S n nbsp of the symmetric group S n displaystyle S n nbsp which form a unique factorization domain The orbits with respect to two groups from the same conjugacy class are isomorphic This motivates the following definition A class C N A displaystyle mathcal C in mathbb N mathfrak A nbsp of combinatorial structures is a formal series C n 1 G Cl S n c G X n G displaystyle mathcal C sum n geq 1 sum G in operatorname Cl S n c G X n G nbsp where A displaystyle mathfrak A nbsp the A is for atoms is the set of primes of the UFD Cl S n n 1 displaystyle operatorname Cl S n n geq 1 nbsp and c G N displaystyle c G in mathbb N nbsp In the following we will simplify our notation a bit and write e g E 2 E 3 and C 1 C 2 C 3 displaystyle E 2 E 3 text and C 1 C 2 C 3 cdots nbsp for the classes mentioned above The Flajolet Sedgewick fundamental theorem editA theorem in the Flajolet Sedgewick theory of symbolic combinatorics treats the enumeration problem of labelled and unlabelled combinatorial classes by means of the creation of symbolic operators that make it possible to translate equations involving combinatorial structures directly and automatically into equations in the generating functions of these structures Let C N A displaystyle mathcal C in mathbb N mathfrak A nbsp be a class of combinatorial structures The OGF F z displaystyle F z nbsp of C X displaystyle mathcal C X nbsp where X has OGF f z displaystyle f z nbsp and the EGF G z displaystyle G z nbsp of C X displaystyle mathcal C X nbsp where X is labelled with EGF g z displaystyle g z nbsp are given by F z n 1 G Cl S n c G Z G f z f z 2 f z n displaystyle F z sum n geq 1 sum G in operatorname Cl S n c G Z G f z f z 2 ldots f z n nbsp and G z n 1 G Cl S n c G G g z n displaystyle G z sum n geq 1 left sum G in operatorname Cl S n frac c G G right g z n nbsp In the labelled case we have the additional requirement that X not contain elements of size zero It will sometimes prove convenient to add one to G z displaystyle G z nbsp to indicate the presence of one copy of the empty set It is possible to assign meaning to both C Z A displaystyle mathcal C in mathbb Z mathfrak A nbsp the most common example is the case of unlabelled sets and C Q A displaystyle mathcal C in mathbb Q mathfrak A nbsp To prove the theorem simply apply PET Polya enumeration theorem and the labelled enumeration theorem The power of this theorem lies in the fact that it makes it possible to construct operators on generating functions that represent combinatorial classes A structural equation between combinatorial classes thus translates directly into an equation in the corresponding generating functions Moreover in the labelled case it is evident from the formula that we may replace g z displaystyle g z nbsp by the atom z and compute the resulting operator which may then be applied to EGFs We now proceed to construct the most important operators The reader may wish to compare with the data on the cycle index page The sequence operator SEQ edit This operator corresponds to the class 1 E 1 E 2 E 3 displaystyle 1 E 1 E 2 E 3 cdots nbsp and represents sequences i e the slots are not being permuted and there is exactly one empty sequence We have F z 1 n 1 Z E n f z f z 2 f z n 1 n 1 f z n 1 1 f z displaystyle F z 1 sum n geq 1 Z E n f z f z 2 ldots f z n 1 sum n geq 1 f z n frac 1 1 f z nbsp and G z 1 n 1 1 E n g z n 1 1 g z displaystyle G z 1 sum n geq 1 left frac 1 E n right g z n frac 1 1 g z nbsp The cycle operator CYC edit This operator corresponds to the class C 1 C 2 C 3 displaystyle C 1 C 2 C 3 cdots nbsp i e cycles containing at least one object We have F z n 1 Z C n f z f z 2 f z n n 1 1 n d n f d f z d n d displaystyle F z sum n geq 1 Z C n f z f z 2 ldots f z n sum n geq 1 frac 1 n sum d mid n varphi d f z d n d nbsp or F z k 1 f k m 1 1 k m f z k m k 1 f k k log 1 1 f z k displaystyle F z sum k geq 1 varphi k sum m geq 1 frac 1 km f z k m sum k geq 1 frac varphi k k log frac 1 1 f z k nbsp and G z n 1 1 C n g z n log 1 1 g z displaystyle G z sum n geq 1 left frac 1 C n right g z n log frac 1 1 g z nbsp This operator together with the set operator SET and their restrictions to specific degrees are used to compute random permutation statistics There are two useful restrictions of this operator namely to even and odd cycles The labelled even cycle operator CYCeven is C 2 C 4 C 6 displaystyle C 2 C 4 C 6 cdots nbsp which yields G z n 1 1 C 2 n g z 2 n 1 2 log 1 1 g z 2 displaystyle G z sum n geq 1 left frac 1 C 2n right g z 2n frac 1 2 log frac 1 1 g z 2 nbsp This implies that the labelled odd cycle operator CYCodd C 1 C 3 C 5 displaystyle C 1 C 3 C 5 cdots nbsp is given by G z log 1 1 g z 1 2 log 1 1 g z 2 1 2 log 1 g z 1 g z displaystyle G z log frac 1 1 g z frac 1 2 log frac 1 1 g z 2 frac 1 2 log frac 1 g z 1 g z nbsp The multiset set operator MSET SET edit The series is 1 S 1 S 2 S 3 displaystyle 1 S 1 S 2 S 3 cdots nbsp i e the symmetric group is applied to the slots This creates multisets in the unlabelled case and sets in the labelled case there are no multisets in the labelled case because the labels distinguish multiple instances of the same object from the set being put into different slots We include the empty set in both the labelled and the unlabelled case The unlabelled case is done using the function M f z y n 0 y n Z S n f z f z 2 f z n displaystyle M f z y sum n geq 0 y n Z S n f z f z 2 ldots f z n nbsp so that M f z M f z 1 displaystyle mathfrak M f z M f z 1 nbsp Evaluating M f z 1 displaystyle M f z 1 nbsp we obtain F z exp ℓ 1 f z ℓ ℓ displaystyle F z exp left sum ell geq 1 frac f z ell ell right nbsp For the labelled case we have G z 1 n 1 1 S n g z n n 0 g z n n exp g z displaystyle G z 1 sum n geq 1 left frac 1 S n right g z n sum n geq 0 frac g z n n exp g z nbsp In the labelled case we denote the operator by SET and in the unlabelled case by MSET This is because in the labeled case there are no multisets the labels distinguish the constituents of a compound combinatorial class whereas in the unlabeled case there are multisets and sets with the latter being given by F z exp ℓ 1 1 ℓ 1 f z ℓ ℓ displaystyle F z exp left sum ell geq 1 1 ell 1 frac f z ell ell right nbsp Procedure editTypically one starts with the neutral class E displaystyle mathcal E nbsp containing a single object of size 0 the neutral object often denoted by ϵ displaystyle epsilon nbsp and one or more atomic classes Z displaystyle mathcal Z nbsp each containing a single object of size 1 Next set theoretic relations involving various simple operations such as disjoint unions products sets sequences and multisets define more complex classes in terms of the already defined classes These relations may be recursive The elegance of symbolic combinatorics lies in that the set theoretic or symbolic relations translate directly into algebraic relations involving the generating functions In this article we will follow the convention of using script uppercase letters to denote combinatorial classes and the corresponding plain letters for the generating functions so the class A displaystyle mathcal A nbsp has generating function A z displaystyle A z nbsp There are two types of generating functions commonly used in symbolic combinatorics ordinary generating functions used for combinatorial classes of unlabelled objects and exponential generating functions used for classes of labelled objects It is trivial to show that the generating functions either ordinary or exponential for E displaystyle mathcal E nbsp and Z displaystyle mathcal Z nbsp are E z 1 displaystyle E z 1 nbsp and Z z z displaystyle Z z z nbsp respectively The disjoint union is also simple for disjoint sets B displaystyle mathcal B nbsp and C displaystyle mathcal C nbsp A B C displaystyle mathcal A mathcal B cup mathcal C nbsp implies A z B z C z displaystyle A z B z C z nbsp The relations corresponding to other operations depend on whether we are talking about labelled or unlabelled structures and ordinary or exponential generating functions Combinatorial sum editThe restriction of unions to disjoint unions is an important one however in the formal specification of symbolic combinatorics it is too much trouble to keep track of which sets are disjoint Instead we make use of a construction that guarantees there is no intersection be careful however this affects the semantics of the operation as well In defining the combinatorial sum of two sets A displaystyle mathcal A nbsp and B displaystyle mathcal B nbsp we mark members of each set with a distinct marker for example displaystyle circ nbsp for members of A displaystyle mathcal A nbsp and displaystyle bullet nbsp for members of B displaystyle mathcal B nbsp The combinatorial sum is then A B A B displaystyle mathcal A mathcal B mathcal A times circ cup mathcal B times bullet nbsp This is the operation that formally corresponds to addition Unlabelled structures editWith unlabelled structures an ordinary generating function OGF is used The OGF of a sequence A n displaystyle A n nbsp is defined as A x n 0 A n x n displaystyle A x sum n 0 infty A n x n nbsp Product edit The product of two combinatorial classes A displaystyle mathcal A nbsp and B displaystyle mathcal B nbsp is specified by defining the size of an ordered pair as the sum of the sizes of the elements in the pair Thus we have for a A displaystyle a in mathcal A nbsp and b B displaystyle b in mathcal B nbsp a b a b displaystyle a b a b nbsp This should be a fairly intuitive definition We now note that the number of elements in A B displaystyle mathcal A times mathcal B nbsp of size n is k 0 n A k B n k displaystyle sum k 0 n A k B n k nbsp Using the definition of the OGF and some elementary algebra we can show that A B C displaystyle mathcal A mathcal B times mathcal C nbsp implies A z B z C z displaystyle A z B z cdot C z nbsp Sequence edit The sequence construction denoted by A G B displaystyle mathcal A mathfrak G mathcal B nbsp is defined as G B E B B B B B B displaystyle mathfrak G mathcal B mathcal E mathcal B mathcal B times mathcal B mathcal B times mathcal B times mathcal B cdots nbsp In other words a sequence is the neutral element or an element of B displaystyle mathcal B nbsp or an ordered pair ordered triple etc This leads to the relation A z 1 B z B z 2 B z 3 1 1 B z displaystyle A z 1 B z B z 2 B z 3 cdots frac 1 1 B z nbsp Set edit The set or powerset construction denoted by A P B displaystyle mathcal A mathfrak P mathcal B nbsp is defined as P B b B E b displaystyle mathfrak P mathcal B prod beta in mathcal B mathcal E beta nbsp which leads to the relation A z b B 1 z b n 1 1 z n B n exp ln n 1 1 z n B n exp n 1 B n ln 1 z n exp n 1 B n k 1 1 k 1 z n k k exp k 1 1 k 1 k n 1 B n z n k exp k 1 1 k 1 B z k k displaystyle begin aligned A z amp prod beta in mathcal B 1 z beta amp prod n 1 infty 1 z n B n amp exp left ln prod n 1 infty 1 z n B n right amp exp left sum n 1 infty B n ln 1 z n right amp exp left sum n 1 infty B n cdot sum k 1 infty frac 1 k 1 z nk k right amp exp left sum k 1 infty frac 1 k 1 k cdot sum n 1 infty B n z nk right amp exp left sum k 1 infty frac 1 k 1 B z k k right end aligned nbsp where the expansion ln 1 u k 1 1 k 1 u k k displaystyle ln 1 u sum k 1 infty frac 1 k 1 u k k nbsp was used to go from line 4 to line 5 Multiset edit The multiset construction denoted A M B displaystyle mathcal A mathfrak M mathcal B nbsp is a generalization of the set construction In the set construction each element can occur zero or one times In a multiset each element can appear an arbitrary number of times Therefore M B b B G b displaystyle mathfrak M mathcal B prod beta in mathcal B mathfrak G beta nbsp This leads to the relation A z b B 1 z b 1 n 1 1 z n B n exp ln n 1 1 z n B n exp n 1 B n ln 1 z n exp k 1 B z k k displaystyle begin aligned A z amp prod beta in mathcal B 1 z beta 1 amp prod n 1 infty 1 z n B n amp exp left ln prod n 1 infty 1 z n B n right amp exp left sum n 1 infty B n ln 1 z n right amp exp left sum k 1 infty frac B z k k right end aligned nbsp where similar to the above set construction we expand ln 1 z n displaystyle ln 1 z n nbsp swap the sums and substitute for the OGF of B displaystyle mathcal B nbsp Other elementary constructions edit Other important elementary constructions are the cycle construction C B displaystyle mathfrak C mathcal B nbsp like sequences except that cyclic rotations are not considered distinct pointing 8 B displaystyle Theta mathcal B nbsp in which each member of B is augmented by a neutral zero size pointer to one of its atoms substitution B C displaystyle mathcal B circ mathcal C nbsp in which each atom in a member of B is replaced by a member of C The derivations for these constructions are too complicated to show here Here are the results Construction Generating function A C B displaystyle mathcal A mathfrak C mathcal B nbsp A z k 1 ϕ k k ln 1 1 B z k displaystyle A z sum k 1 infty frac phi k k ln frac 1 1 B z k nbsp where ϕ k displaystyle phi k nbsp is the Euler totient function A 8 B displaystyle mathcal A Theta mathcal B nbsp A z z d d z B z displaystyle A z z frac d dz B z nbsp A B C displaystyle mathcal A mathcal B circ mathcal C nbsp A z B C z displaystyle A z B C z nbsp Examples edit Many combinatorial classes can be built using these elementary constructions For example the class of plane trees that is trees embedded in the plane so that the order of the subtrees matters is specified by the recursive relation G Z SEQ G displaystyle mathcal G mathcal Z times operatorname SEQ mathcal G nbsp In other words a tree is a root node of size 1 and a sequence of subtrees This gives G z z 1 G z displaystyle G z frac z 1 G z nbsp we solve for G z by multiplying 1 G z displaystyle 1 G z nbsp to getG z G z 2 z displaystyle G z G z 2 z nbsp subtracting z and solving for G z using the quadratic formula gives G z 1 1 4 z 2 displaystyle G z frac 1 sqrt 1 4z 2 nbsp Another example and a classic combinatorics problem is integer partitions First define the class of positive integers I displaystyle mathcal I nbsp where the size of each integer is its value I Z SEQ Z displaystyle mathcal I mathcal Z times operatorname SEQ mathcal Z nbsp The OGF of I displaystyle mathcal I nbsp is then I z z 1 z displaystyle I z frac z 1 z nbsp Now define the set of partitions P displaystyle mathcal P nbsp as P MSET I displaystyle mathcal P operatorname MSET mathcal I nbsp The OGF of P displaystyle mathcal P nbsp is P z exp I z 1 2 I z 2 1 3 I z 3 displaystyle P z exp left I z frac 1 2 I z 2 frac 1 3 I z 3 cdots right nbsp Unfortunately there is no closed form for P z displaystyle P z nbsp however the OGF can be used to derive a recurrence relation or using more advanced methods of analytic combinatorics calculate the asymptotic behavior of the counting sequence Specification and specifiable classes edit The elementary constructions mentioned above allow us to define the notion of specification This specification allows us to use a set of recursive equations with multiple combinatorial classes Formally a specification for a set of combinatorial classes A 1 A r displaystyle mathcal A 1 dots mathcal A r nbsp is a set of r displaystyle r nbsp equations A i F i A 1 A r displaystyle mathcal A i Phi i mathcal A 1 dots mathcal A r nbsp where F i displaystyle Phi i nbsp is an expression whose atoms are E Z displaystyle mathcal E mathcal Z nbsp and the A i displaystyle mathcal A i nbsp s and whose operators are the elementary constructions listed above A class of combinatorial structures is said to be constructible or specifiable when it admits a specification For example the set of trees whose leaves depth is even respectively odd can be defined using the specification with two classes A even displaystyle mathcal A text even nbsp and A odd displaystyle mathcal A text odd nbsp Those classes should satisfy the equation A odd Z Seq 1 A even displaystyle mathcal A text odd mathcal Z times operatorname Seq geq 1 mathcal A text even nbsp and A even Z Seq A odd displaystyle mathcal A text even mathcal Z times operatorname Seq mathcal A text odd nbsp Labelled structures editAn object is weakly labelled if each of its atoms has a nonnegative integer label and each of these labels is distinct An object is strongly or well labelled if furthermore these labels comprise the consecutive integers 1 n displaystyle 1 ldots n nbsp Note some combinatorial classes are best specified as labelled structures or unlabelled structures but some readily admit both specifications A good example of labelled structures is the class of labelled graphs With labelled structures an exponential generating function EGF is used The EGF of a sequence A n displaystyle A n nbsp is defined as A x n 0 A n x n n displaystyle A x sum n 0 infty A n frac x n n nbsp Product edit For labelled structures we must use a different definition for product than for unlabelled structures In fact if we simply used the cartesian product the resulting structures would not even be well labelled Instead we use the so called labelled product denoted A B displaystyle mathcal A star mathcal B nbsp For a pair b B displaystyle beta in mathcal B nbsp and g C displaystyle gamma in mathcal C nbsp we wish to combine the two structures into a single structure In order for the result to be well labelled this requires some relabelling of the atoms in b displaystyle beta nbsp and g displaystyle gamma nbsp We will restrict our attention to relabellings that are consistent with the order of the original labels Note that there are still multiple ways to do the relabelling thus each pair of members determines not a single member in the product but a set of new members The details of this construction are found on the page of the Labelled enumeration theorem To aid this development let us define a function r displaystyle rho nbsp that takes as its argument a possibly weakly labelled object a displaystyle alpha nbsp and relabels its atoms in an order consistent way so that r a displaystyle rho alpha nbsp is well labelled We then define the labelled product for two objects a displaystyle alpha nbsp and b displaystyle beta nbsp as a b a b a b is well labelled r a a r b b displaystyle alpha star beta alpha beta alpha beta text is well labelled rho alpha alpha rho beta beta nbsp Finally the labelled product of two classes A displaystyle mathcal A nbsp and B displaystyle mathcal B nbsp is A B a A b B a b displaystyle mathcal A star mathcal B bigcup alpha in mathcal A beta in mathcal B alpha star beta nbsp The EGF can be derived by noting that for objects of size k displaystyle k nbsp and n k displaystyle n k nbsp there are n k displaystyle n choose k nbsp ways to do the relabelling Therefore the total number of objects of size n displaystyle n nbsp is k 0 n n k A k B n k displaystyle sum k 0 n n choose k A k B n k nbsp This binomial convolution relation for the terms is equivalent to multiplying the EGFs A z B z displaystyle A z cdot B z nbsp Sequence edit The sequence construction A G B displaystyle mathcal A mathfrak G mathcal B nbsp is defined similarly to the unlabelled case G B E B B B B B B displaystyle mathfrak G mathcal B mathcal E mathcal B mathcal B star mathcal B mathcal B star mathcal B star mathcal B cdots nbsp and again as above A z 1 1 B z displaystyle A z frac 1 1 B z nbsp Set edit In labelled structures a set of k displaystyle k nbsp elements corresponds to exactly k displaystyle k nbsp sequences This is different from the unlabelled case where some of the permutations may coincide Thus for A P B displaystyle mathcal A mathfrak P mathcal B nbsp we have A z k 0 B z k k exp B z displaystyle A z sum k 0 infty frac B z k k exp B z nbsp Cycle edit Cycles are also easier than in the unlabelled case A cycle of length k displaystyle k nbsp corresponds to k displaystyle k nbsp distinct sequences Thus for A C B displaystyle mathcal A mathfrak C mathcal B nbsp we have A z k 0 B z k k ln 1 1 B z displaystyle A z sum k 0 infty frac B z k k ln left frac 1 1 B z right nbsp Boxed product edit In labelled structures the min boxed product A min B C displaystyle mathcal A min mathcal B square star mathcal C nbsp is a variation of the original product which requires the element of B displaystyle mathcal B nbsp in the product with the minimal label Similarly we can also define a max boxed product denoted by A max B C displaystyle mathcal A max mathcal B blacksquare star mathcal C nbsp by the same manner Then we have A min z A max z 0 z B t C t d t displaystyle A min z A max z int 0 z B t C t dt nbsp or equivalently A min t A max t B t C t displaystyle A min t A max t B t C t nbsp Example edit An increasing Cayley tree is a labelled non plane and rooted tree whose labels along any branch stemming from the root form an increasing sequence Then let L displaystyle mathcal L nbsp be the class of such trees The recursive specification is now L Z SET L displaystyle mathcal L mathcal Z square star operatorname SET mathcal L nbsp Other elementary constructions edit The operators CYCeven CYCodd SETeven and SETodd represent cycles of even and odd length and sets of even and odd cardinality Example edit Stirling numbers of the second kind may be derived and analyzed using the structural decomposition SET SET 1 Z displaystyle operatorname SET operatorname SET geq 1 mathcal Z nbsp The decomposition SET CYC Z displaystyle operatorname SET operatorname CYC mathcal Z nbsp is used to study unsigned Stirling numbers of the first kind and in the derivation of the statistics of random permutations A detailed examination of the exponential generating functions associated to Stirling numbers within symbolic combinatorics may be found on the page on Stirling numbers and exponential generating functions in symbolic combinatorics See also editCombinatorial speciesReferences edit Foata Dominique Schutzenberger Marcel P 1970 Theorie geometrique des polynomes Euleriens Lectures Notes in Mathematics Lecture Notes in Mathematics 138 arXiv math 0508232 doi 10 1007 BFb0060799 ISBN 978 3 540 04927 2 Bender Edward A Goldman Jay R 1971 Enumerative uses of generating functions Indiana University Mathematics Journal 20 8 753 764 doi 10 1512 iumj 1971 20 20060 Joyal Andre 1981 Une theorie combinatoire des series formelles Advances in Mathematics 42 1 82 doi 10 1016 0001 8708 81 90052 9 Francois Bergeron Gilbert Labelle Pierre Leroux Theorie des especes et combinatoire des structures arborescentes LaCIM Montreal 1994 English version Combinatorial Species and Tree like Structures Cambridge University Press 1998 Philippe Flajolet and Robert Sedgewick Analytic Combinatorics Cambridge University Press 2009 available online http algo inria fr flajolet Publications book pdf Micha Hofri Analysis of Algorithms Computational Methods and Mathematical Tools Oxford University Press 1995 Retrieved from https en wikipedia org w index php title Symbolic method combinatorics amp oldid 1183922697, wikipedia, wiki, book, books, library,

article

, read, download, free, free download, mp3, video, mp4, 3gp, jpg, jpeg, gif, png, picture, music, song, movie, book, game, games.