Pólya enumeration theorem
From Wikipedia, the free encyclopedia
- "Enumeration theorem" redirects here. For its labelled counterpart, see Labelled enumeration theorem.
The Pólya enumeration theorem (also known as PET) is a theorem in combinatorics. Suppose you have a set of n slots and a set of objects being distributed into these slots and a generating function f(x, y, ...) of the objects by weight. Furthermore there is a permutation group G acting on the slots that creates equivalence classes of filled slot configurations (two configurations are equivalent if one may be obtained from the other by a permutation from G). Then the generating function of the equivalence classes by weight, where the weight of a configuration is the sum of the weights of the objects in the slots, is obtained by evaluating the cycle index Z(G) of G i.e.
at
The PET is used to create symbolic operators in the fundamental theorem of combinatorial enumeration.
[edit] Example computation: enumerating graphs on three and four vertices by the number of edges
The graphs on three vertices without taking symmetries into account are shown at right. There are i.e. eight of them.
We want to enumerate these graphs taking symmetries into account. There are only four nonisomorphic graphs, also shown at right.
In this problem the slots are the possible edges (vertex pairs) and the objects that go into them are 1 (size zero, edge not present) and z (size one, edge present), so the object generating function by weight is f(z) = z+1.
The computation of the cycle index of the permutation group G of the edges is shown here and it yields
It follows that the generating function g(z) of graphs on three vertices by the number of edges is
or
which says that there is one graph with three edges, one with two, one with one edge, and one with no edges.
An analogous computation yields the cycle index of the edge permutation group for graphs on four vertices, which has degree six (there are six edges) and order twenty-four (each vertex permutation of the four vertices induces an edge permutation):
Hence the generating function g(z) of graphs on four vertices by the number of edges is
or
These graphs are shown at right.
A program that computes the generating function of the nonisomorphic graphs on n vertices as well as a detailed description of the algorithm used maybe found in the GNUstep cookbook, which is here.
[edit] Example computation: enumerating rooted ternary trees
The set T3 of rooted ternary trees consists of rooted trees where every node has exactly three children. Small ternary trees are shown at right.
Unlike e.g. binary trees, these trees are not planar, i.e. two trees that can be obtained from one another by repeatedly permuting the children of some node are considered equivalent. In other words, the group that acts on the children of a node is the symmetric group S3 rather than the identity group E3. (The group that acts on the two children of a node in a binary tree is the identity group E2, and in a planar tree of degree k, the group is Ek.)
We use the following recursive decomposition of T3: an element of T3 is either a leaf of size zero, or a node with three children, where the order of the children is not important. The slots in this problem are the three slots where the children are attached to their parent node, and the objects that go into them are the elements of T3 itself. The group that acts on the slots is the symmetric group S3 with cycle index
It follows that the functional equation for the generating function T(z) of the set T3 of rooted ternary trees is
This translates into the following recurrence relation for the number tn of rooted ternary trees on n nodes:
and
where a, b and c are nonnegative integers.
The first few values are
More information about this sequence may be found in the OEIS, the link is here.
[edit] Example computation: necklaces with double colors
Suppose you have a necklace containing 2n beads of n different colors, where every color is present exactly twice. How many different necklaces are there where two necklaces are considered equivalent if there exists a sequence of rotations and/or reflections that transforms one into the other?
In this problem the slots are the 2n locations where beads may be placed on the necklace and the objects that go into them are the 2n beads. The group that acts on the slots is the dihedral group D2n. The three types of symmetries that may occur are illustrated at right for the case n = 4.
They are: rotations, reflections in an axis passing through opposite beads and reflections in an axis passing through opposite links.
The cycle index of the dihedral group is D2n is
where the sum represents the rotations, the second term the reflections in an axis passing through opposite beads, and the third term, the reflections in an axis passing through opposite links.
Let the variable c1 represent the first color, c2 the second, c3 the third and so on, up to cn. The number of necklaces is then given by
Considering the rotations first, we see that only d = 1 and d = 2 contribute, namely through
and
The reflections in an axis passing through opposite beads contribute
or
because there are n ways to choose a color from the first term, and (n − 1)! ways to choose the remaining colors from the second term (sum of squares raised to the n − 1th power).
Finally, the reflections in an axis passing through opposite links contribute
This yields the closed form expression for the number of necklaces containing n different colors exactly twice:
The first few terms are
This problem appeared on the newsgroup es.ciencia.matematicas and the article is here.
[edit] Example computation: Knights of the Round Table
In this problem we have ten knights seated at the round table. We consider configurations of four knights where two configurations are considered equivalent if one can be obtained from the other by a rotation. We choose one of these configurations at random (this is not the same as choosing four knights at random; there are fewer configurations here than the possible different choices of knights) and ask what the probability is that at least two knights are seated next to each other. A configuration where no pair of knights are seated next to each other is shown at right.
We first compute the complementary probability i.e. that no knights are seated next to each other. To do this we enumerate the configurations of four knights where no knights are next to each other and divide by the total number of configurations (again of four knights). In this problem the slots are the spaces between the knights and the objects that go into them are segments of one, two, three etc. knights when we count configurations where there are no adjacent knights and segments of zero, one, two etc. knights when we count all configurations. This gives the two object generating functions
The group that permutes the slots (i.e. the spaces between the four knights) is the cyclic group C4 and its cycle index is
It follows that the generating function g1(z) of configurations with no adjacent knights is
and
and the generating function g2(z) of all configurations is
and
We are counting configurations where the total number of knights is ten and there are six knights in the slots between the four we chose at the beginning.
Hence our complementary probability is
and the probability that at least two knights are adjacent to each other is 19 / 22.
This problem appeared on the newsgroup es.ciencia.matematicas in a different form; that problem asks for the probability without considering symmetries. The article is here.
[edit] Example computation: colored cubes
Suppose you have an ordinary cube in three-space whose faces may take on one of three colors and are being permuted by the automorphisms of the cube (rotations in three-space). Here the slots are the six faces and the objects that go into them are the three colors. The object generating function by weight is
which indicates that there are three colors and every color has weight one.
The computation of the cycle index of the permutation group C of the faces is shown here and it yields
It follows that the generating function of the equivalence classes i.e. colored cubes taking symmetries into account is
or
This says e.g. that there is one cube using color x on five faces and color z on the sixth, and there are six cubes using x, y, and z twice:
- the cube where opposite faces have the same color
- the three cubes where two opposite faces have the same color and the remaining two pairs of opposite faces do not
- the two cubes where opposite faces always have different colors.
It also says that there are three cubes using color x on three faces, color y on two faces and color z on the remaining face:
- the cube where all faces of color x share a vertex
- the cube where the two faces of color y are adjacent to all three faces of color x
- the cube where one face of color y is adjacent to only two faces of color x.
Note that and there are 57 distinct colored cubes in total when there are three colors.
[edit] Formal statement of the theorem
Let G be a group acting on a set A (the "slots") and consider the set BA of all functions from a set A to a weighted set B (the objects) with weight function ω (the "filled slot configurations"), where the weight of a function f is the sum of the weights of its range.
The Pólya enumeration theorem states that the sum of the weights of the orbits of G on BA (the equivalence classes of configurations induced by G) is given by
- .
When ω(b) is a monomial in the variables (including constants) we have
where
is the generating function of the set B by weight. Hence
and we obtain the alternate form
[edit] Proof of the theorem
The Pólya enumeration theorem follows from Burnside's lemma, which says that the number of orbits (equivalence classes of filled slot configurations) is the average of the number of elements of BA fixed by a permutation g of G over all permutations g.
Applying the lemma to orbits of weight ω, the number of orbits of this weight is
where Fixω(g) is the set of functions of weight ω fixed by g.
Summing over all possible weights we have
Let the cycle structure of g be represented by
If g fixes an element of BA then it must be constant on every cycle c of g. The generating function by weight of a cycle c of |c| identical elements from the set of objects enumerated by f(x, y, z, ...) is
It follows that the generating function by weight of the points fixed by g is the product of the above term over all cycles of g, i.e.
or
and the claim follows.
[edit] References
- J. M. Redfield, The theory of group-reduced distributions, Amer. J. Math., 49 (1927) 433-455.
- G. Pólya, Kombinatorische Anzahlbestimmungen für Gruppen, Graphen und chemische Verbindungen, Acta Math., 68 (1937) 145-254.
- G. Pólya and R. C. Read, Combinatorial Enumeration of Groups, Graphs, and Chemical Compounds, Springer, New York, 1987.
[edit] External links
- Marko Riedel, Pólya's enumeration theorem and the symbolic method.
- Marko Riedel, The GNUstep cookbook.
- León-Sotelo, Marko Riedel, Alicia en la corte del Rey Arturo, newsgroup es.ciencia.matematicas
- Marko Riedel, n-digonos, newsgroup es.ciencia.matematicas
- Online Encyclopedia of Integer Sequences, sequence A000598
- Not credited, Enumeration Discussion of enumeration techniques, in Spanish.
- Emilio Fernandez Moral and Mercedes Sanchez Benito, Pólya's enumeration theorem, historical review, includes proofs, in Spanish.