Analytic combinatorics

In mathematics, analytic combinatorics is one of the many techniques of counting combinatorial objects. It uses the internal structure of the objects to derive formulas for their generating functions and then complex analysis techniques to get asymptotics. This particular theory was mostly developed by Philippe Flajolet, and is detailed in his book with Robert Sedgewick, Analytic Combinatorics. Earlier contributors to the key ideas and techniques include Leonhard Euler, Arthur Cayley, Srinivasa Ramanujan, George Pólya, and Donald Knuth.

Classes of combinatorial structures

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

Z(G)(f(z), f(z^2), \ldots, f(z^n)).\,

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

\frac{g(z)^n}{|G|}.

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, and on the second slot, E_3. We represent this by the following formal power series in X:

 X^2/E_2 \; + \; X^3/E_3

where the term X^n/G is used to denote the set of orbits under G and X^n = X \times \ldots \times X, 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 \; + \cdots.

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 \operatorname{Cl}(S_n) of the symmetric group S_n, 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 \mathcal{C}\in \mathbb{N}[\mathfrak{A}] of combinatorial structures is a formal series

\mathcal{C} = \sum_{n \ge 1} \sum_{G\in \operatorname{Cl}(S_n)} c_G (X^n/G)

where \mathfrak{A} (the "A" is for "atoms") is the set of primes of the UFD \{\operatorname{Cl}(S_n)\}_{n\ge 1} and c_G \in \mathbb{N}.

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

 E_2 + E_3 \mbox{  and  } C_1 + C_2 + C_3 + \cdots.

for the classes mentioned above.

The FlajoletSedgewick fundamental theorem

A theorem in the FlajoletSedgewick 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 \mathcal{C}\in\mathbb{N}[\mathfrak{A}] be a class of combinatorial structures. The OGF F(z) of \mathcal{C}(X) where X has OGF f(z) and the EGF G(z) of \mathcal{C}(X) where X is labelled with EGF g(z) are given by

F(z) = \sum_{n \ge 1} \sum_{G\in \operatorname{Cl}(S_n)} c_G Z(G)(f(z), f(z^2), \ldots, f(z^n))

and

G(z) = \sum_{n \ge 1} \left(\sum_{G\in \operatorname{Cl}(S_n)} \frac{c_G}{|G|}\right) g(z)^n.

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) to indicate the presence of one copy of the empty set. It is possible to assign meaning to both \mathcal{C}\in\mathbb{Z}[\mathfrak{A}] (the most common example is the case of unlabelled sets) and \mathcal{C}\in\mathbb{Q}[\mathfrak{A}]. 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 g(z) 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 \mathfrak{S}

This operator corresponds to the class

1 + E_1 + E_2 + E_3 + \cdots\,

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

 F(z) = 1 + \sum_{n\ge 1} Z(E_n)(f(z), f(z^2), \ldots, f(z^n)) =
1 + \sum_{n\ge 1} f(z)^n = \frac{1}{1-f(z)}

and

 G(z) = 1 + \sum_{n\ge 1} \left(\frac{1}{|E_n|}\right) g(z)^n = 
\frac{1}{1-g(z)}.

The cycle operator \mathfrak{C}

This operator corresponds to the class

C_1 + C_2 + C_3 + \cdots\,

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

 
F(z) = \sum_{n\ge 1} Z(C_n)(f(z), f(z^2), \ldots, f(z^n)) =
\sum_{n\ge 1} \frac{1}{n} \sum_{d|n} \varphi(d) f(z^d)^{n/d}

or


F(z) = \sum_{k\ge 1} \varphi(k) \sum_{m\ge 1} \frac{1}{km} f(z^k)^m =
\sum_{k\ge 1} \frac{\varphi(k)}{k} \log \frac{1}{1-f(z^k)}

and

 G(z) = \sum_{n\ge 1} \left(\frac{1}{|C_n|}\right) g(z)^n = 
\log \frac{1}{1-g(z)}.

This operator, together with the set operator \mathfrak{P}, 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 \mathfrak{C}_{\operatorname{even}} is

C_2 + C_4 + C_6 + \cdots\,

which yields

 G(z) = \sum_{n\ge 1} \left(\frac{1}{|C_{2n}|}\right) g(z)^{2n} = 
\frac{1}{2} \log \frac{1}{1-g(z)^2}.

This implies that the labelled odd cycle operator \mathfrak{C}_{\operatorname{odd}}

C_1 + C_3 + C_5 + \cdots

is given by

 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)}.

The multiset/set operator \mathfrak{M}/\mathfrak{P}

The series is

1 + S_1 + S_2 + S_3 + \cdots\,

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) = \sum_{n\ge 0} y^n Z(S_n)(f(z), f(z^2), \ldots, f(z^n))

so that

\mathfrak{M}(f(z)) = M(f(z), 1).\,

Evaluating M(f(z), 1) we obtain

 F(z) = \exp \left( \sum_{l\ge 1} \frac{f(z^l)}{l} \right).

For the labelled case we have

 G(z) =  1 + \sum_{n\ge 1} \left(\frac{1}{|S_n|}\right) g(z)^n = 
\sum_{n\ge 0} \frac{g(z)^n}{n!} = \exp g(z).

In the labelled case we denote the operator by \mathfrak{P}, and in the unlabelled case, by \mathfrak{M}.

Procedure

Typically, one starts with the neutral class \mathcal{E}, containing a single object of size 0 (the neutral object, often denoted by \epsilon), and one or more atomic classes \mathcal{Z}, 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 \mathcal{A} has generating function A(z)).

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 \mathcal{E} and \mathcal{Z} are E(z) = 1 and Z(z) = z, respectively. The disjoint union is also simple for disjoint sets \mathcal{B} and \mathcal{C}, \mathcal{A} = \mathcal{B} \cup \mathcal{C} implies A(z) = B(z) + C(z). 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

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 \mathcal{A} and \mathcal{B}, we mark members of each set with a distinct marker, for example \circ for members of \mathcal{A} and \bullet for members of \mathcal{B}. The combinatorial sum is then:

\mathcal{A} + \mathcal{B} = (\mathcal{A} \times \{\circ\}) \cup (\mathcal{B} \times \{\bullet\})

This is the operation that formally corresponds to addition.

Unlabelled structures

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

A(x)=\sum_{n=0}^{\infty}A_{n}x^{n}

Product

The product of two combinatorial classes \mathcal{A} and \mathcal{B} 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 \in \mathcal{A} and b \in \mathcal{B}, |(a,b)| = |a| + |b|. This should be a fairly intuitive definition. We now note that the number of elements in \mathcal{A} \times \mathcal{B} of size n is

\sum_{k=0}^{n}A_{k}B_{n-k}.

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

\mathcal{A} = \mathcal{B} \times \mathcal{C} implies A(z) = B(z) \cdot C(z).

Sequence

The sequence construction, denoted by \mathcal{A} = \mathfrak{G}\{\mathcal{B}\} is defined as

\mathfrak{G}\{\mathcal{B}\} = \mathcal{E} + \mathcal{B} + (\mathcal{B} \times \mathcal{B}) + (\mathcal{B} \times \mathcal{B} \times \mathcal{B}) + \cdots.

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

A(z) = 1 + B(z) + B(z)^{2} + B(z)^{3} + \cdots = \frac{1}{1 - B(z)}.

Set

The set (or powerset) construction, denoted by \mathcal{A} = \mathfrak{P}\{\mathcal{B}\} is defined as

\mathfrak{P}\{\mathcal{B}\} = \prod_{\beta \in \mathcal{B}}(\mathcal{E} + \{\beta\}),

which leads to the relation

\begin{align}A(z) &{} = \prod_{\beta \in \mathcal{B}}(1 + z^{|\beta|}) \\
 &{} = \prod_{n=1}^{\infty}(1 + z^{n})^{B_{n}} \\
 &{} = \exp \left ( \ln \prod_{n=1}^{\infty}(1 + z^{n})^{B_{n}} \right ) \\
 &{} = \exp \left ( \sum_{n = 1}^{\infty} B_{n} \ln(1 + z^{n}) \right ) \\
 &{} = \exp \left ( \sum_{n = 1}^{\infty} B_{n} \cdot \sum_{k = 1}^{\infty} \frac{(-1)^{k-1}z^{nk}}{k} \right ) \\
 &{} = \exp \left ( \sum_{k = 1}^{\infty} \frac{(-1)^{k-1}}{k} \cdot \sum_{n = 1}^{\infty}B_{n}z^{nk} \right ) \\
 &{} = \exp \left ( \sum_{k = 1}^{\infty} \frac{(-1)^{k-1} B(z^{k})}{k} \right),
\end{align}

where the expansion

\ln(1 + u) = \sum_{k = 1}^{\infty} \frac{(-1)^{k-1}u^{k}}{k}

was used to go from line 4 to line 5.

Multiset

The multiset construction, denoted \mathcal{A} = \mathfrak{M}\{\mathcal{B}\} 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,

\mathfrak{M}\{\mathcal{B}\} = \prod_{\beta \in \mathcal{B}} \mathfrak{G}\{\beta\}.

This leads to the relation

\begin{align} A(z) &{} = \prod_{\beta \in \mathcal{B}} (1 - z^{|\beta|})^{-1} \\
 &{} = \prod_{n = 1}^{\infty} (1 - z^{n})^{-B_{n}} \\
 &{} = \exp \left ( \ln \prod_{n = 1}^{\infty} (1 - z^{n})^{-B_{n}} \right ) \\
 &{} = \exp \left ( \sum_{n=1}^{\infty}-B_{n} \ln (1 - z^{n}) \right ) \\
 &{} = \exp \left ( \sum_{k=1}^{\infty} \frac{B(z^{k})}{k} \right ),
\end{align}

where, similar to the above set construction, we expand \ln (1 - z^{n}), swap the sums, and substitute for the OGF of \mathcal{B}.

Other elementary constructions

Other important elementary constructions are:

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

Construction Generating function
\mathcal{A} = \mathfrak{C}\{\mathcal{B}\} A(z) = \sum_{k=1}^{\infty} \frac{\phi(k)}{k} \ln \frac{1}{1 - B(z^{k})} (where \phi(k)\, is the Euler totient function)
\mathcal{A} = \Theta\mathcal{B} A(z) = z\frac{d}{dz}B(z)
\mathcal{A} = \mathcal{B} \circ \mathcal{C} A(z) = B(C(z))\,

Examples

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

\mathcal{G} = \mathcal{Z} \times \mathfrak{G}\{\mathcal{G}\}.

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

G(z) = \frac{z}{1 - G(z)}

we solve for G(z) by multiplying 1 - G(z) to get

G(z) - G(z)^2 = z

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

G(z) = \frac{1 - \sqrt{1 - 4z}}{2}.

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

\mathcal{I} = \mathcal{Z} \times \mathfrak{G}\{\mathcal{Z}\}

The OGF of \mathcal{I} is then

I(z) = \frac{z}{1 - z}.

Now, define the set of partitions \mathcal{P} as

\mathcal{P} = \mathfrak{M}\{\mathcal{I}\}.

The OGF of \mathcal{P} is

P(z) = \exp \left ( I(z) + \frac{1}{2} I(z^{2}) + \frac{1}{3} I(z^{3}) + \cdots \right ).

Unfortunately, there is no closed form for P(z); 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.

Labelled structures

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 [1 \ldots n]. 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} is defined as

A(x)=\sum_{n=0}^{\infty}A_{n}\frac{x^{n}}{n!}.

Product

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 \mathcal{A} \star \mathcal{B}.

For a pair \beta \in \mathcal{B} and \gamma \in \mathcal{C}, 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 \beta and \gamma. 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, \rho, that takes as its argument a (possibly weakly) labelled object \alpha and relabels its atoms in an order-consistent way so that \rho(\alpha) is well labelled. We then define the labelled product for two objects \alpha and \beta as

\alpha \star \beta = \{(\alpha',\beta'): (\alpha',\beta') \mbox{ is well-labelled, } \rho(\alpha') = \alpha, \rho(\beta') = \beta \}.

Finally, the labelled product of two classes \mathcal{A} and \mathcal{B} is

\mathcal{A} \star \mathcal{B} = \bigcup_{\alpha \in \mathcal{A}, \beta \in \mathcal{B}} (\alpha \star \beta).

The EGF can be derived by noting that for objects of size k and n-k, there are {n \choose k} ways to do the relabelling. Therefore, the total number of objects of size n is

\sum_{k=0}^{n}{n \choose k}A_{k}B_{n-k}.

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

A(z) \cdot B(z).\,

Sequence

The sequence construction \mathcal{A} = \mathfrak{G}\{\mathcal{B}\} is defined similarly to the unlabelled case:

\mathfrak{G}\{\mathcal{B}\} = \mathcal{E} + \mathcal{B} + (\mathcal{B} \star \mathcal{B}) + (\mathcal{B} \star \mathcal{B} \star \mathcal{B}) + \cdots

and again, as above,

A(z) = \frac{1}{1 - B(z)}

Set

In labelled structures, a set of k elements corresponds to exactly k! sequences. This is different from the unlabelled case, where some of the permutations may coincide. Thus for \mathcal{A} = \mathfrak{P}\{\mathcal{B}\}, we have

A(z) = \sum_{k = 0}^{\infty} \frac{B(z)^k}{k!} = \exp(B(z))

Cycle

Cycles are also easier than in the unlabelled case. A cycle of length k corresponds to k distinct sequences. Thus for \mathcal{A} = \mathfrak{C}\{\mathcal{B}\}, we have

A(z) = \sum_{k = 0}^{\infty} \frac{B(z)^k}{k} = \ln\left(\frac{1}{1-B(z)}\right).

Boxed product

In labelled structures, the min-boxed product \mathcal{A}_{min} = \mathcal{B}^{\square}\star \mathcal{C} is a variation of the original product which requires the element of \mathcal{B} in the product with the minimal label. Similarly, we can also define a max-boxed product, denoted by \mathcal{A}_{max} = \mathcal{B}^{\blacksquare}\star \mathcal{C}, by the same manner. Then we have,

A_{min}(z)=A_{max}(z)=\int^{z}_{0}B'(t)C(t)dt.

or equivalently,

A_{min}'(t)=A_{max}'(t)=B'(t)C(t).

Example

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 \mathcal{L} be the class of such trees. The recursive specification is now \mathcal{L}=\mathcal{Z}^\square\star SET(\mathcal{L}).

Other elementary constructions

The operators


\mathfrak{C}_{\operatorname{even}},
\mathfrak{C}_{\operatorname{odd}},
\mathfrak{P}_{\operatorname{even}},
\mbox{ and }
\mathfrak{P}_{\operatorname{odd}}

represent cycles of even and odd length, and sets of even and odd cardinality.

Example

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

 \mathfrak{P}(\mathfrak{P}_{\ge 1}(\mathcal{Z})).

The decomposition

 \mathfrak{P}(\mathfrak{C}(\mathcal{Z}))

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

References

This article is issued from Wikipedia - version of the Sunday, January 31, 2016. The text is available under the Creative Commons Attribution/Share Alike but additional terms may apply for the media files.